Skip to content

Commit 45c6e66

Browse files
committed
test(agent_spec): add semantic invariant checks for planner recon_seeds contract
1 parent f0de900 commit 45c6e66

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/core/test_agent_spec.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,11 @@ def test_load_default_agent_spec():
464464
"""
465465
}
466466
)
467+
# Semantic invariants for the recon_seeds protocol contract.
468+
_planner_role = subagent_specs["planner"].system_prompt_args["ROLE_ADDITIONAL"]
469+
assert "<recon_seeds>" in _planner_role
470+
assert "ONLY" in _planner_role or "no preamble" in _planner_role.lower()
471+
assert "distinct" in _planner_role.lower() and "non-overlapping" in _planner_role.lower()
467472
assert subagent_specs["planner"].when_to_use == snapshot(
468473
"""\
469474
Use this agent before spawning N parallel workers on a large or open-ended task.

0 commit comments

Comments
 (0)