Skip to content

Commit af2fb00

Browse files
fix: Add mandatory agent inclusion guidelines to plan rules
1 parent 4e28dfd commit af2fb00

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/backend/orchestration/plan_review_helpers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ def get_magentic_prompt_kwargs(*, has_user_responses: bool = False) -> dict:
7676
- Steps are HIGH-LEVEL task assignments — one step per agent. Do NOT prescribe
7777
sub-tasks, parameters, or data retrieval. Agents discover their own processes.
7878
""" + clarification_policy + """
79+
MANDATORY AGENT INCLUSION (CRITICAL):
80+
- Your plan MUST include EVERY agent from the team list above. No exceptions.
81+
- Even if an agent's role seems redundant or overlapping with your own capabilities,
82+
you MUST include it in the plan. Each agent has unique tools and domain knowledge
83+
that only they can access.
84+
- Do NOT skip an agent because its description sounds similar to another agent.
85+
- The plan must assign at least one step to EVERY available agent.
86+
7987
OUTPUT FORMAT (CRITICAL — use EXACTLY this JSON structure, nothing else):
8088
```json
8189
[

0 commit comments

Comments
 (0)