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

Closed
opened 2026-09-14 15:35:28 +00:00 by matou-build-agent · 1 comment

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 kept ready-for-agent for 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 (removing ready-for-agent would sabotage the executor's gate).

Cause

.sandcastle/list-ready-tasks.sh excludes host-mode drives by TWO means only:

  1. PRIMARY — the standing-drive tracker label (name-based, per-repo-safe).
  2. BACKSTOP — the single numeric REHEARSAL_DRIVE_ISSUE.

A rehearsal-confirm ticket like #1447 carries neither: it is not a standing-drive tracker (it is a one-off confirm on REHEARSAL_DRIVE_QUEUE), and a generic host's REHEARSAL_DRIVE_ISSUE points 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 current REHEARSAL_DRIVE_QUEUE set), not just the single REHEARSAL_DRIVE_ISSUE number — so a rehearsal-confirm ticket on the executor rail is skipped by ALL swarm hosts regardless of their own drive-issue env. Alternatively, apply standing-drive semantics 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).

## 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 kept `ready-for-agent` for 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 (removing `ready-for-agent` would sabotage the executor's gate). ## Cause `.sandcastle/list-ready-tasks.sh` excludes host-mode drives by TWO means only: 1. PRIMARY — the `standing-drive` tracker label (name-based, per-repo-safe). 2. BACKSTOP — the single numeric `REHEARSAL_DRIVE_ISSUE`. A **rehearsal-confirm** ticket like #1447 carries neither: it is not a `standing-drive` tracker (it is a one-off confirm on `REHEARSAL_DRIVE_QUEUE`), and a generic host's `REHEARSAL_DRIVE_ISSUE` points 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 current `REHEARSAL_DRIVE_QUEUE` set), not just the single `REHEARSAL_DRIVE_ISSUE` number — so a rehearsal-confirm ticket on the executor rail is skipped by ALL swarm hosts regardless of their own drive-issue env. Alternatively, apply `standing-drive` semantics 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).
Author
Member

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-drive label (PRIMARY) and the single REHEARSAL_DRIVE_ISSUE number (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 unblocked select: any ready ticket whose body carries the <!-- rehearsal-target: <value> --> marker (which every queued drive ticket carries, per scripts/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's REHEARSAL_DRIVE_ISSUE=657 points at its own rehearsal, not 1447). The jq test mirrors 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 are FACTORY_MANIFEST-vendored from Matou/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:

  • Matou/dev-factory 9055eb5 — the fix in the top-level list-ready-tasks.sh + tests/list-ready-tasks-test.sh (+3 cases → 26), plus factory STATUS.md and GOTCHAS 57.
  • Matou/idss c1a25535 — FACTORY_REF bumped 1e08738 → 9055eb5, the two files re-vendored byte-identical (via onboard.sh vendor), and STATUS.md.

Proof

  • check-harness-drift: OK at the new pin.
  • list-ready-tasks-test.sh 26 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.
  • Adjacent run-swarm-ready-list / claim-next-task / protected-paths-lib suites 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-drive semantics on confirm tickets) was not needed — the marker exclusion is per-ticket-safe and has no re-mint side effects.

Closing.

**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-drive` label (PRIMARY) and the single `REHEARSAL_DRIVE_ISSUE` number (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 `unblocked` select: any ready ticket whose body carries the `<!-- rehearsal-target: <value> -->` marker (which every queued drive ticket carries, per `scripts/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's `REHEARSAL_DRIVE_ISSUE=657` points at its own rehearsal, not 1447). The jq `test` mirrors 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 are `FACTORY_MANIFEST`-vendored from `Matou/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: - **Matou/dev-factory** `9055eb5` — the fix in the top-level `list-ready-tasks.sh` + `tests/list-ready-tasks-test.sh` (+3 cases → 26), plus factory `STATUS.md` and `GOTCHAS 57`. - **Matou/idss** `c1a25535` — `FACTORY_REF` bumped `1e08738 → 9055eb5`, the two files re-vendored byte-identical (via `onboard.sh vendor`), and `STATUS.md`. ### Proof - `check-harness-drift: OK` at the new pin. - `list-ready-tasks-test.sh` 26 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. - Adjacent `run-swarm-ready-list` / `claim-next-task` / `protected-paths-lib` suites 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-drive` semantics on confirm tickets) was not needed — the marker exclusion is per-ticket-safe and has no re-mint side effects. Closing.
matou-build-agent 2026-09-14 16:00:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1468
No description provided.