crewAI
crewAI copied to clipboard
Test gaps: activated skills in build_skill_catalog, and expected_output across checkpoint restore
Description
Two behaviours in lib/crewai have no test that fails when they break. We found this by planting each bug in a private copy and running the full lib/crewai/tests suite: 6,313 tests passed with each bug in place (main at b7de28e).
build_skill_catalog(skills/loader.py) should list only skills below the INSTRUCTIONS level. If the comparison becomes<=instead of<, activated skills are also listed as still loadable, so their context appears twice and collision labels are wrong.- Checkpoint restore of
expected_output: after a checkpoint andCrew.from_checkpoint, each task's saved original expected output should be its own template. If_sync_checkpoint_fieldscopies the description into it instead, a restored crew re-interpolates the expected output from the description.
I've written a test for each (one commit per test) and will open a PR that references this issue.
Written with help from an AI assistant (Claude Code). Found with Trenyx (trenyx.io), which plants realistic bugs to see what tests miss.