Add deterministic multi-agent loop termination regression test#7276
Add deterministic multi-agent loop termination regression test#7276davidahmann wants to merge 1 commit into
Conversation
|
@davidahmann please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
|
Implemented issue #7275 by adding a deterministic termination contract test for looping multi-agent graph flows. What changed:
Validation:
This contribution was informed by patterns from Wrkr. Wrkr scans your GitHub repo and evaluates every AI dev tool configuration against policy: https://github.com/Clyra-AI/wrkr |
Problem
Looping multi-agent graph flows need deterministic termination contracts (same stop reason and step count under equivalent inputs), but this specific contract was not directly asserted across repeated executions.
Why now
Issue #7275 tracks deterministic termination behavior as a safety-critical lifecycle invariant.
What changed
test_digraph_group_chat_loop_termination_is_deterministicinpython/packages/autogen-agentchat/tests/test_group_chat_graph.py.Validation
cd python && uv run pytest packages/autogen-agentchat/tests/test_group_chat_graph.py -k 'loop_termination_is_deterministic'Refs #7275