swarm queue: the phase-2 rehearsal drive #492 leaks into the swarm ready list — REHEARSAL_DRIVE_ISSUE unset swarm-side defaults to 378 #493

Closed
opened 2026-08-12 21:33:43 +00:00 by ben · 1 comment
Owner

Symptom

A swarm iteration (run 5352, host 1408e1e7f6e7) was handed the standing rehearsal drive issue #492 as a claimable ready-for-agent ticket and claimed it. The swarm structurally cannot run the drive (no /dev/kvm, no DO/broker secrets — Ben's #380 ruling that DO/broker credentials stay off the swarm containers). This is exactly the hot-loop state list-ready-tasks.sh's drive-issue exclusion is meant to prevent.

Root cause

.sandcastle/list-ready-tasks.sh (and its sibling host-mode scripts rehearsal-report.sh, scripts/rehearsal-executor.sh) exclude the standing drive issue via : "${REHEARSAL_DRIVE_ISSUE:=378}". The phase-2 arming (spec 2026-08-12-183-phase-2-nextcloud-rehearsal-design.md) moved the live drive issue from #378 to #492 and set REHEARSAL_DRIVE_ISSUE=492 only on the executor host's .sandcastle/.env. The swarm containers export no REHEARSAL_DRIVE_ISSUE (verified: unset in this sandbox; not present in swarm.config, run-swarm.sh, or any checked-in .env), so list-ready-tasks.sh falls back to the hardcoded default 378 and excludes the old, now-closed drive issue while the live #492 leaks straight into the swarm ready queue.

The exclusion mechanism is correct; only its input value is stale on the swarm side.

Proposed fix (a human rules — protected path)

Pick one:

  1. Export REHEARSAL_DRIVE_ISSUE=492 into the swarm container env (the same knob the executor host already sets), so list-ready-tasks.sh excludes the live drive. Cleanest — keeps the number in one place per host and survives future re-arming if the swarm env is updated in lockstep with the executor's .sandcastle/.env.
  2. Bump the shared default :=378 → :=492 in .sandcastle/list-ready-tasks.sh (and, for consistency, rehearsal-report.sh + scripts/rehearsal-executor.sh). Simpler but re-introduces the same drift the next time the drive issue is re-minted.

Whichever is chosen, the arming runbook for future drive-issue re-mints should update the swarm-side value too, not only the executor host's .env.

Do NOT change #492's tracker state as the fix

#492's labels/dependencies are correct for the executor (ready-for-agent, unblocked = armed). Removing ready-for-agent would disarm the live standing drive; wiring a bogus dependency would pause Ben's functional executor drive over a swarm-only plumbing bug. The fix is entirely swarm-side env/config — leave #492's arming untouched.

Found while working

#492 (this run claimed it, discovered it structurally can't run it, and filed this). Reported blocked; claim released; #492's arming left intact for the executor.

## Symptom A swarm iteration (run 5352, host `1408e1e7f6e7`) was handed the **standing rehearsal drive issue #492** as a claimable `ready-for-agent` ticket and claimed it. The swarm structurally **cannot** run the drive (no `/dev/kvm`, no DO/broker secrets — Ben's #380 ruling that DO/broker credentials stay off the swarm containers). This is exactly the hot-loop state `list-ready-tasks.sh`'s drive-issue exclusion is meant to prevent. ## Root cause `.sandcastle/list-ready-tasks.sh` (and its sibling host-mode scripts `rehearsal-report.sh`, `scripts/rehearsal-executor.sh`) exclude the standing drive issue via `: "${REHEARSAL_DRIVE_ISSUE:=378}"`. The phase-2 arming (spec `2026-08-12-183-phase-2-nextcloud-rehearsal-design.md`) **moved the live drive issue from #378 to #492** and set `REHEARSAL_DRIVE_ISSUE=492` **only on the executor host's `.sandcastle/.env`**. The swarm containers export **no** `REHEARSAL_DRIVE_ISSUE` (verified: unset in this sandbox; not present in `swarm.config`, `run-swarm.sh`, or any checked-in `.env`), so `list-ready-tasks.sh` falls back to the hardcoded default `378` and excludes the **old, now-closed** drive issue while the **live #492 leaks straight into the swarm ready queue**. The exclusion mechanism is correct; only its input value is stale on the swarm side. ## Proposed fix (a human rules — protected path) Pick one: 1. **Export `REHEARSAL_DRIVE_ISSUE=492` into the swarm container env** (the same knob the executor host already sets), so `list-ready-tasks.sh` excludes the live drive. Cleanest — keeps the number in one place per host and survives future re-arming if the swarm env is updated in lockstep with the executor's `.sandcastle/.env`. 2. **Bump the shared default** `:=378` → `:=492` in `.sandcastle/list-ready-tasks.sh` (and, for consistency, `rehearsal-report.sh` + `scripts/rehearsal-executor.sh`). Simpler but re-introduces the same drift the next time the drive issue is re-minted. Whichever is chosen, the arming runbook for future drive-issue re-mints should update **the swarm-side value too**, not only the executor host's `.env`. ## Do NOT change #492's tracker state as the fix #492's labels/dependencies are **correct for the executor** (`ready-for-agent`, unblocked = armed). Removing `ready-for-agent` would **disarm** the live standing drive; wiring a bogus dependency would **pause** Ben's functional executor drive over a swarm-only plumbing bug. The fix is entirely swarm-side env/config — leave #492's arming untouched. ## Found while working #492 (this run claimed it, discovered it structurally can't run it, and filed this). Reported blocked; claim released; #492's arming left intact for the executor.
ben closed this issue 2026-08-13 03:00:48 +00:00
Author
Owner

Ben's rulings 2026-08-13 (session walk): option 1 + 2 layered, then made structural.

  • Primary exclusion = the new standing-drive label (id 105, now on #492): list-ready-tasks.sh skips any ready issue wearing it — re-minting the drive issue is one tracker action (PUT/POST /labels, never issue-PATCH).
  • Backstop = the number knob: .env.example now declares REHEARSAL_DRIVE_ISSUE=492 (Actions refreshes worker .env from it every run) and the three host-mode defaults bumped 378→492. A forgotten label and a stale number must both happen before a leak.
  • #492's ready-for-agent + deps untouched, per this issue's non-fix warning.

Landed in a6cf4ef; re-mint steps in docs/operator-app/rehearsal-drive.md; GOTCHAS #23; offline tests cover both paths (9 cases).

**Ben's rulings 2026-08-13** (session walk): option 1 + 2 layered, then made structural. - **Primary exclusion = the new `standing-drive` label** (id 105, now on #492): `list-ready-tasks.sh` skips any ready issue wearing it — re-minting the drive issue is one tracker action (`PUT`/`POST /labels`, never issue-PATCH). - **Backstop = the number knob**: `.env.example` now declares `REHEARSAL_DRIVE_ISSUE=492` (Actions refreshes worker `.env` from it every run) and the three host-mode defaults bumped 378→492. A forgotten label and a stale number must both happen before a leak. - #492's `ready-for-agent` + deps untouched, per this issue's non-fix warning. Landed in `a6cf4ef`; re-mint steps in `docs/operator-app/rehearsal-drive.md`; GOTCHAS #23; offline tests cover both paths (9 cases).
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#493
No description provided.