Skip to content

Add validation for agent selection and dependency references in planner#207

Open
jack-pfeifer wants to merge 1 commit intoIBM:mainfrom
jack-pfeifer:planning-validation
Open

Add validation for agent selection and dependency references in planner#207
jack-pfeifer wants to merge 1 commit intoIBM:mainfrom
jack-pfeifer:planning-validation

Conversation

@jack-pfeifer
Copy link

This change improves robustness in the planning workflow by adding validation in two areas:

  1. Agent selection
    After a plan is generated, each step is checked to ensure the referenced agent exists in the available agent list. If an unknown agent is returned by the planner, the system now raises a clear error instead of continuing with an invalid step.

  2. Dependency validation
    Step dependencies (#S1, #S2, etc.) are now validated during plan parsing to ensure they reference valid earlier steps. Invalid or forward references now raise an error before execution.

These checks help prevent malformed LLM-generated plans from progressing into the execution stage and make debugging planning issues easier as more agents and planning logic are added.

@jack-pfeifer jack-pfeifer force-pushed the planning-validation branch 3 times, most recently from 6d901c0 to 180a424 Compare March 13, 2026 05:43
Signed-off-by: Jack Pfeifer <jpfeifer@albany.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants