crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Test gaps: activated skills in build_skill_catalog, and expected_output across checkpoint restore

Open Trenyx opened this issue 1 month ago • 0 comments

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).

  1. 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.
  2. Checkpoint restore of expected_output: after a checkpoint and Crew.from_checkpoint, each task's saved original expected output should be its own template. If _sync_checkpoint_fields copies 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.

Trenyx avatar Oct 26 '26 13:10 Trenyx