list-ready-tasks.sh defaults REHEARSAL_DRIVE_ISSUE=492 — a product's issue number baked into a harness file #11

Closed
opened 2026-08-22 11:35:02 +00:00 by ben · 5 comments
Owner

Part of the agent-driven install-session arc (Ben, 2026-08-21/22; docs/superpowers/specs/2026-08-21-vendor-command-design.md §Context records the decomposition: 2 vendor ✅ → 1 policy layer + prompt rendering → 3 host enrolment → 4 the install session). Worked by the factory's own swarm (STATUS.md 2026-08-22 — SELF-HOSTED).

Symptom

list-ready-tasks.sh:56 has : "${REHEARSAL_DRIVE_ISSUE:=492}" and line 78 excludes that number from the claimable queue. 492 is Matou/idss's retired phase-2 drive issue. Every other consumer (matou-app, this repo) silently loses whichever ticket happens to be numbered 492 — this repo dodges it today only by pinning REHEARSAL_DRIVE_ISSUE=0 in .sandcastle/.env.example. CLAUDE.md: no repo names, hosts, or product-specific paths in harness files; if you need a per-repo value, source it — never default it to any product.

Fix

  • Drop the default. Empty/unset REHEARSAL_DRIVE_ISSUE must exclude nothing (the standing-drive label exclusion on the same line stays — it is the name-based, per-repo-safe half).
  • A set value still excludes exactly that number.
  • tests/list-ready-tasks-test.sh (add a case if the test doesn't exist yet): (a) unset → an issue numbered 492 is listed; (b) REHEARSAL_DRIVE_ISSUE=492 → it is not. Offline, shimmed curl.
  • Remove the REHEARSAL_DRIVE_ISSUE=0 workaround and its comment from .sandcastle/.env.example is out of scope (protected path — note it in the close report; the re-vendor commit will do it).

Acceptance

  • Given no REHEARSAL_DRIVE_ISSUE in the env, when list-ready-tasks.sh runs against a shimmed queue containing #492, then #492 is listed.
  • Given REHEARSAL_DRIVE_ISSUE=492, then #492 is excluded.
  • grep -n 492 list-ready-tasks.sh is empty; full offline suite green.

This is also sub-project 0's acceptance run: the first ticket the factory's own swarm works end to end.

_Part of the agent-driven install-session arc (Ben, 2026-08-21/22; `docs/superpowers/specs/2026-08-21-vendor-command-design.md` §Context records the decomposition: 2 vendor ✅ → 1 policy layer + prompt rendering → 3 host enrolment → 4 the install session). Worked by the factory's own swarm (STATUS.md 2026-08-22 — SELF-HOSTED)._ ## Symptom `list-ready-tasks.sh:56` has `: "${REHEARSAL_DRIVE_ISSUE:=492}"` and line 78 excludes that number from the claimable queue. 492 is `Matou/idss`'s retired phase-2 drive issue. Every other consumer (matou-app, this repo) silently loses whichever ticket happens to be numbered 492 — this repo dodges it today only by pinning `REHEARSAL_DRIVE_ISSUE=0` in `.sandcastle/.env.example`. CLAUDE.md: *no repo names, hosts, or product-specific paths in harness files; if you need a per-repo value, source it — never default it to any product.* ## Fix - Drop the default. Empty/unset `REHEARSAL_DRIVE_ISSUE` must exclude **nothing** (the `standing-drive` label exclusion on the same line stays — it is the name-based, per-repo-safe half). - A set value still excludes exactly that number. - `tests/list-ready-tasks-test.sh` (add a case if the test doesn't exist yet): (a) unset → an issue numbered 492 is listed; (b) `REHEARSAL_DRIVE_ISSUE=492` → it is not. Offline, shimmed `curl`. - Remove the `REHEARSAL_DRIVE_ISSUE=0` workaround and its comment from `.sandcastle/.env.example` is **out of scope** (protected path — note it in the close report; the re-vendor commit will do it). ## Acceptance - Given no `REHEARSAL_DRIVE_ISSUE` in the env, when `list-ready-tasks.sh` runs against a shimmed queue containing #492, then #492 is listed. - Given `REHEARSAL_DRIVE_ISSUE=492`, then #492 is excluded. - `grep -n 492 list-ready-tasks.sh` is empty; full offline suite green. _This is also sub-project 0's acceptance run: the first ticket the factory's own swarm works end to end._

swarm-claim host=elitebook-distributed-server-03 run=70
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=70 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #11 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 11,
  "status": "success",
  "commits": [
    "732cb35"
  ],
  "changed_files": [
    "STATUS.md",
    "list-ready-tasks.sh",
    "tests/list-ready-tasks-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/list-ready-tasks-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given no REHEARSAL_DRIVE_ISSUE in the env, #492 is listed": "list-ready-tasks.sh:60 defaults the knob to empty; the jq guard '(.number|tostring) != $drive' is vacuously true against \"\" so nothing is excluded by number. Verified by tests/list-ready-tasks-test.sh case 1 (env -u REHEARSAL_DRIVE_ISSUE -> #492 surfaces).",
    "Given REHEARSAL_DRIVE_ISSUE=492, #492 is excluded": "A set value flows into --arg drive and excludes exactly that number. Verified by tests/list-ready-tasks-test.sh case 1c (=492 -> #492 absent, #500 still surfaces).",
    "grep -n 492 list-ready-tasks.sh is empty; full offline suite green": "grep exits 1 (no match); all 44 offline test files pass, list-ready-tasks-test.sh reports PASS (10 cases)."
  },
  "summary": "Dropped the REHEARSAL_DRIVE_ISSUE=492 product-number default from list-ready-tasks.sh so an unset knob excludes nothing by number, leaving the standing-drive label as the sole automatic exclusion.",
  "blockers": []
}
**close-report** for #11 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 11, "status": "success", "commits": [ "732cb35" ], "changed_files": [ "STATUS.md", "list-ready-tasks.sh", "tests/list-ready-tasks-test.sh" ], "tests": [ { "command": "bash tests/list-ready-tasks-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 } ], "criteria": { "Given no REHEARSAL_DRIVE_ISSUE in the env, #492 is listed": "list-ready-tasks.sh:60 defaults the knob to empty; the jq guard '(.number|tostring) != $drive' is vacuously true against \"\" so nothing is excluded by number. Verified by tests/list-ready-tasks-test.sh case 1 (env -u REHEARSAL_DRIVE_ISSUE -> #492 surfaces).", "Given REHEARSAL_DRIVE_ISSUE=492, #492 is excluded": "A set value flows into --arg drive and excludes exactly that number. Verified by tests/list-ready-tasks-test.sh case 1c (=492 -> #492 absent, #500 still surfaces).", "grep -n 492 list-ready-tasks.sh is empty; full offline suite green": "grep exits 1 (no match); all 44 offline test files pass, list-ready-tasks-test.sh reports PASS (10 cases)." }, "summary": "Dropped the REHEARSAL_DRIVE_ISSUE=492 product-number default from list-ready-tasks.sh so an unset knob excludes nothing by number, leaving the standing-drive label as the sole automatic exclusion.", "blockers": [] } ``` </details>

close-report for #11 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 11,
  "status": "success",
  "commits": [
    "732cb35"
  ],
  "changed_files": [
    "STATUS.md",
    "list-ready-tasks.sh",
    "tests/list-ready-tasks-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/list-ready-tasks-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given no REHEARSAL_DRIVE_ISSUE in the env, #492 is listed": "list-ready-tasks.sh:60 defaults the knob to empty; the jq guard '(.number|tostring) != $drive' is vacuously true against \"\" so nothing is excluded by number. Verified by tests/list-ready-tasks-test.sh case 1 (env -u REHEARSAL_DRIVE_ISSUE -> #492 surfaces).",
    "Given REHEARSAL_DRIVE_ISSUE=492, #492 is excluded": "A set value flows into --arg drive and excludes exactly that number. Verified by tests/list-ready-tasks-test.sh case 1c (=492 -> #492 absent, #500 still surfaces).",
    "grep -n 492 list-ready-tasks.sh is empty; full offline suite green": "grep exits 1 (no match); all 44 offline test files pass, list-ready-tasks-test.sh reports PASS (10 cases)."
  },
  "summary": "Dropped the REHEARSAL_DRIVE_ISSUE=492 product-number default from list-ready-tasks.sh so an unset knob excludes nothing by number, leaving the standing-drive label as the sole automatic exclusion.",
  "blockers": []
}
**close-report** for #11 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 11, "status": "success", "commits": [ "732cb35" ], "changed_files": [ "STATUS.md", "list-ready-tasks.sh", "tests/list-ready-tasks-test.sh" ], "tests": [ { "command": "bash tests/list-ready-tasks-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 } ], "criteria": { "Given no REHEARSAL_DRIVE_ISSUE in the env, #492 is listed": "list-ready-tasks.sh:60 defaults the knob to empty; the jq guard '(.number|tostring) != $drive' is vacuously true against \"\" so nothing is excluded by number. Verified by tests/list-ready-tasks-test.sh case 1 (env -u REHEARSAL_DRIVE_ISSUE -> #492 surfaces).", "Given REHEARSAL_DRIVE_ISSUE=492, #492 is excluded": "A set value flows into --arg drive and excludes exactly that number. Verified by tests/list-ready-tasks-test.sh case 1c (=492 -> #492 absent, #500 still surfaces).", "grep -n 492 list-ready-tasks.sh is empty; full offline suite green": "grep exits 1 (no match); all 44 offline test files pass, list-ready-tasks-test.sh reports PASS (10 cases)." }, "summary": "Dropped the REHEARSAL_DRIVE_ISSUE=492 product-number default from list-ready-tasks.sh so an unset knob excludes nothing by number, leaving the standing-drive label as the sole automatic exclusion.", "blockers": [] } ``` </details>
Author
Owner

Closed by hand (Ben's session): 732cb35 verified on main (CI 82 green; grep 492 list-ready-tasks.sh empty). The gate's close PATCH failed for the same machines-team permission gap as #19/#20 (fix pending on the org). The .sandcastle/.env.example REHEARSAL_DRIVE_ISSUE=0 workaround comes out at the next self-pin bump.

Closed by hand (Ben's session): `732cb35` verified on main (CI 82 green; `grep 492 list-ready-tasks.sh` empty). The gate's close PATCH failed for the same `machines`-team permission gap as #19/#20 (fix pending on the org). The `.sandcastle/.env.example` `REHEARSAL_DRIVE_ISSUE=0` workaround comes out at the next self-pin bump.
ben closed this issue 2026-08-22 14:46:50 +00:00

Work complete and merged — blocked only on the tracker-write permission gap (#20 / GOTCHAS 6).

The fix for this ticket is done and on origin/main:

  • commit 732cb35 — drops : "${REHEARSAL_DRIVE_ISSUE:=492}" from list-ready-tasks.sh; an unset/empty knob now excludes nothing by number, the standing-drive label is the sole automatic exclusion, and a set value still excludes exactly that number.
  • tests/list-ready-tasks-test.sh gains the two acceptance cases (unset → #492 surfaces; =492 → #492 excluded) and drops its global 492 pin.
  • grep -n 492 list-ready-tasks.sh is empty; full offline suite green.
  • The close-report gates PASSED (see the envelope comment above — every claim verified against main).

Why this issue is still open: the final state PATCH 403d. swarm-bot on Matou/dev-factory has repo.code (push/pull) but not repo.issues — comment POSTs land, every label/state write 403s. This is precisely the hazard #20 made loud, but that fix (preflight write-probe + close-then-verify) is not yet vendored into the running .sandcastle copy (pinned pre-#20 — GOTCHAS 4: a root fix changes nothing the swarm runs until a human re-vendors). I also cannot swap this issue’s labels for the same 403.

Human action needed: grant the machines team repo.issues (+ repo.pulls) on Matou/dev-factory (per #20 STATUS / GOTCHAS 6), then close this issue — the work is already merged — and re-vendor .sandcastle past #20 so this cannot recur silently.

**Work complete and merged — blocked only on the tracker-write permission gap (#20 / GOTCHAS 6).** The fix for this ticket is done and on `origin/main`: - commit `732cb35` — drops `: "${REHEARSAL_DRIVE_ISSUE:=492}"` from `list-ready-tasks.sh`; an unset/empty knob now excludes nothing by number, the `standing-drive` label is the sole automatic exclusion, and a set value still excludes exactly that number. - `tests/list-ready-tasks-test.sh` gains the two acceptance cases (unset → #492 surfaces; `=492` → #492 excluded) and drops its global 492 pin. - `grep -n 492 list-ready-tasks.sh` is empty; full offline suite green. - The **close-report gates PASSED** (see the envelope comment above — every claim verified against `main`). **Why this issue is still open:** the final state PATCH `403`d. swarm-bot on `Matou/dev-factory` has `repo.code` (push/pull) but **not `repo.issues`** — comment POSTs land, every label/state write 403s. This is precisely the hazard #20 made loud, but that fix (preflight write-probe + close-then-verify) is not yet vendored into the running `.sandcastle` copy (pinned pre-#20 — GOTCHAS 4: a root fix changes nothing the swarm runs until a human re-vendors). I also cannot swap this issue’s labels for the same 403. **Human action needed:** grant the `machines` team `repo.issues` (+ `repo.pulls`) on `Matou/dev-factory` (per #20 STATUS / GOTCHAS 6), then close this issue — the work is already merged — and re-vendor `.sandcastle` past #20 so this cannot recur silently.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/dev-factory#11
No description provided.