Skip to content

fix(platform): repair the tests and rule ids the agent worker merge broke - #4615

Merged
yannickmonney merged 3 commits into
mainfrom
fix/agent-worker-test-ids
Oct 9, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
fix/agent-worker-test-ids

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Main's server unit suite and the domain-spec guard are red since #4603 (agent workers), which was merged without CI. Every merge group fails Unit until this lands.

  • Spec guard: SBX-R17 is stated twice. fix(sandbox): keep agent workspaces through lost sandboxes #4560 took SBX-R17 ('a workspace outlives its sandbox') first, so the agent worker rules move to SBX-R18–R21 in the sandbox spec, the tasks spec and the tests that hold them.
  • service.ops-indicators.test.ts (3 failing): a top-level ./agent-runs.ts import, which import sorting puts ahead of the service, bound the service to the real project service. The predicates are now loaded where the test compares them.
  • display.test.ts: the refusal walk expected an agent_busy refusal that no writer records any more (a busy agent's run waits for a worker now). The task_circuit_breaker anchor stays; the label stays for older rows.

Verified on main + this change: the spec guard, sandbox and tasks domain tests and ops indicators (29 files, 564 tests), and display.test.ts (4/4).

Imported at the top of the board ops test, agent-runs.ts was sorted
ahead of the service and bound it to the real project service, so the
mocked project lookup never ran and all three cases failed. The test
loads the two predicates where it compares them.
The sandbox spec stated SBX-R17 twice: the rule that a workspace outlives
its sandbox landed first, and the agent worker rules took R17 to R20 in
a branch beside it. The worker rules are SBX-R18 to SBX-R21 now, in the
spec, the tasks spec and the tests that hold them.
A start for a busy agent waits for a worker now, so no task writer
records an agent_busy refusal any more; the walk's sanity anchor is the
circuit breaker alone. The label stays for the rows older runs left.
@yannickmonney
yannickmonney merged commit 12eb189 into main Oct 9, 2026
26 checks passed
@yannickmonney
yannickmonney deleted the fix/agent-worker-test-ids branch October 9, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant