swarm lister: rehearsal-CONFIRM tickets (REHEARSAL_DRIVE_QUEUE, no standing-drive label) are not skipped by generic swarm hosts — #1447 hot-loop mis-claim #1468
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1468
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
A generic swarm host (
bens-mac-04,REHEARSAL_DRIVE_ISSUE=657, run 23886) hot-loop mis-claimed #1447, a one-off rehearsal-CONFIRM ticket (<!-- rehearsal-target: rented -->,<!-- rehearsal-confirm: 1 -->) that Ben's session put on the workstation executor rail (REHEARSAL_DRIVE_QUEUE=1447) and deliberately keptready-for-agentfor the executor's gate. A swarm sandbox structurally cannot run the founding live drives (no/dev/kvm, no DO/broker credentials — #377), so every such claim is wasted and the sandbox cannot honour the blocked-path (removingready-for-agentwould sabotage the executor's gate).Cause
.sandcastle/list-ready-tasks.shexcludes host-mode drives by TWO means only:standing-drivetracker label (name-based, per-repo-safe).REHEARSAL_DRIVE_ISSUE.A rehearsal-confirm ticket like #1447 carries neither: it is not a
standing-drivetracker (it is a one-off confirm onREHEARSAL_DRIVE_QUEUE), and a generic host'sREHEARSAL_DRIVE_ISSUEpoints at that host's own rehearsal (657), not 1447. So it passes every filter and any generic swarm host will hot-loop on it while the executor runs it.Proposed fix (protected path — needs a session, #445 / ADR 0174)
Have the swarm lister also exclude tickets bearing the
rehearsal-target:/rehearsal-confirm:body markers (or the currentREHEARSAL_DRIVE_QUEUEset), not just the singleREHEARSAL_DRIVE_ISSUEnumber — so a rehearsal-confirm ticket on the executor rail is skipped by ALL swarm hosts regardless of their own drive-issue env. Alternatively, applystanding-drivesemantics to confirm tickets while queued (side effects on the re-mint tracker logic unclear — a session should rule).Found while
Working #1447 (founding e2e caller re-sequence). Its code is fully landed on
origin/main; only the AC1/AC2 live drives remain, which are the executor rail's job. Filed per Rule 9 (do not edit protected.sandcastle/paths).Ruled by agent under ADR 0174 — veto anytime. Landed the proposed fix (option A: body-marker exclusion). Two-way door: a revertible lister filter proven by an offline shim test; not on the one-way-door list.
What the fix is
The swarm lister excluded host-mode drives by only TWO means — the
standing-drivelabel (PRIMARY) and the singleREHEARSAL_DRIVE_ISSUEnumber (BACKSTOP). A rehearsal-CONFIRM ticket on the executor rail (REHEARSAL_DRIVE_QUEUE, this ticket's #1447 example) carries neither, so it passed every filter and any generic swarm host hot-loop mis-claimed it.Added a THIRD exclusion in the lister's
unblockedselect: any ready ticket whose body carries the<!-- rehearsal-target: <value> -->marker (which every queued drive ticket carries, perscripts/lib/rehearsal-queue-lib.sh:rehearsal_issue_marker) is skipped. The marker travels with the ticket, so ALL swarm hosts skip it regardless of their own drive-issue env — which is exactly what the symptom needed (bens-mac-04'sREHEARSAL_DRIVE_ISSUE=657points at its own rehearsal, not 1447). The jqtestmirrors the lib's parser (requires a real value after the key) so a prose mention doesn't falsely swallow ordinary backlog; a repo with no rehearsal drives carries no marker, so its emitted queue is byte-identical.Where it landed (the file is factory-owned, not an idss protected path)
.sandcastle/list-ready-tasks.sh+ its test areFACTORY_MANIFEST-vendored fromMatou/dev-factory— a direct idss edit trips the #932 drift gate. So the canonical fix landed upstream in the factory, then idss re-vendored by bumping the pin:9055eb5— the fix in the top-levellist-ready-tasks.sh+tests/list-ready-tasks-test.sh(+3 cases → 26), plus factorySTATUS.mdandGOTCHAS 57.c1a25535—FACTORY_REFbumped1e08738 → 9055eb5, the two files re-vendored byte-identical (viaonboard.sh vendor), andSTATUS.md.Proof
check-harness-drift: OKat the new pin.list-ready-tasks-test.sh26 cases green — the confirm ticket is excluded with the backstop unset and with it pointed at 657 (the exact bens-mac-04 shape), while a prose-only mention still surfaces.run-swarm-ready-list/claim-next-task/protected-paths-libsuites green.Once hosts pull idss
main(new pin), every generic swarm host skips #1447 and its siblings. Scope was kept to this ticket; the alternative (standing-drivesemantics on confirm tickets) was not needed — the marker exclusion is per-ticket-safe and has no re-mint side effects.Closing.