Skip to content

Commit 0748869

Browse files
committed
test(coding-agent): machine-form swarm executor tests
Cover the state-machine semantics end to end with the fake host: a three-round review loop (guarded switch approved=false twice then true; 3 reviewing entries, 2 fixing entries, done), a mutually exclusive guard switch where only the matching branch enters, fan-out from one settle, max_entries blocking recorded as transition_blocked events with a quiescent done, a self-loop re-entering until its guard fails, wait-state settles from a completed path watch and from the injectable-clock timeout (event object bound into the dependent prompt), a max_transitions pause reported once and resumed, and stop() cancelling an active watch.
1 parent f157069 commit 0748869

2 files changed

Lines changed: 371 additions & 0 deletions

File tree

‎prime-agent-runtime/src/rlm/swarm.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ async def _evaluate_settles(self, run: SwarmRun) -> None:
14181418
f"state {target.state_id!r} is at max_entries "
14191419
f"{target.max_entries}; transition {state_id!r} -> {target.state_id!r} blocked"
14201420
),
1421+
**{"from": state_id, "to": target.state_id},
14211422
)
14221423
continue
14231424
if run.transitions_fired >= run.max_transitions and not run.max_transitions_reported:

0 commit comments

Comments
 (0)