rehearsal-9 Task 6: Executor target rented-services (smoke allowlist + machinery + rented teardown belt + cycle freshness gate), offline pin, rehearsal-drive.md markers, then ARM the drive issue on the workstation queue #1490

Closed
opened 2026-09-15 13:14:34 +00:00 by ben · 2 comments
Owner

Phase 9 (provision on founding) task 6 of 6. Spec: docs/superpowers/specs/2026-09-15-183-phase-9-provision-on-founding-rehearsal-design.md. Plan (read the header, Global Constraints and plan-time inventory first — the Interfaces block below is how tasks learn each other's names): docs/superpowers/plans/2026-09-15-183-phase-9-provision-on-founding-rehearsal.md.

Acceptance = every checkbox step below done, its verification commands green, one commit in the repo's voice. A blocked_by edge on this ticket names the task whose Interfaces it consumes.


Task 6: Executor target rented-services, offline pins, docs, the drive issue, arm

Files:

  • Modify: scripts/smoke-private-path.sh:99-100, 146, 1000 (allowlist + refusal text; uses_droplet_machinery; teardown rented|rented-services)
  • Modify: scripts/rehearsal-cycle.sh:431 (rented|rented-services|device)
  • Create: scripts/tests/rehearsal-rented-services-target-test.sh (copy of rehearsal-v2-fleet-target-test.sh, target renamed)
  • Modify: docs/operator-app/rehearsal-drive.md:260-262 (marker list current: rented-device | v2-fleet | local-brands | rented-services)
  • Tracker: the standing-drive issue; STATUS.md header line at arm.

Interfaces: Consumes Task 5's spec file name (journey.rented-services.spec.ts derives from the target, smoke-private-path.sh:256). The drive is the test.

  • Step 1: Offline pin first — write the test (copy v2-fleet's four checks; check 3 must show the FOUNDING slug claimed; check 4 the spec exists). Run bash scripts/tests/rehearsal-rented-services-target-test.sh → fails on check 1 (unknown --target).

  • Step 2: Wire the three smoke-private-path.sh sites and the cycle's freshness gate. The teardown: elif [[ "$target" == "rented" || "$target" == "rented-services" ]]; then at :1000 (the box is released by the spec's release leg + afterAll; oc_rented_cleanup is the harness belt, exactly rented's). Also the other "$target" == "rented" sites at :544, :621, :666, :843 — read each; those that gate rented PREFLIGHT/announce apply to rented-services too (same box, same slug ownership); mirror them with the same ||. Run the new test → 4/4; run scripts/tests/rehearsal-rented-target-test.sh and rehearsal-v2-fleet-target-test.sh → unchanged green; --dry-run --target rented-services prints the founding slug announce.

  • Step 3: Docs — rehearsal-drive.md marker list; one line under "The standing community" noting phase 9 is a FOUNDING target (own slug, no standing community).

  • Step 4: Commit — sandcastle: phase 9 — the rented-services executor target (allowlist, droplet machinery, rented teardown belt, gateway-image freshness) + its offline pin; rehearsal-drive.md marker list brought current.

  • Step 5: The drive issue (mint at plan → tickets time, body carries): title standing drive: PROVISION ON FOUNDING — journey.rented-services.spec.ts: Files placed on a RENTED gateway at the founding page, the founding's own Nextcloud proven (services-row → hand-off-card → sign-in → files-healthy → door → branded-login → oidc-admin → branded-chrome → release); GREEN is the only close; markers <!-- rehearsal-target: rented-services --> <!-- rehearsal-confirm: 1 -->; the leg table; the expected-first-reds list from the spec; the three frames Ben eyeballs (artifacts/hand-off-files-card.png, artifacts/nextcloud/login.png, the admin frame from oidc-admin); labels standing-drive, priority, no-triage until Tasks 1–6 close; native blocked_by on all six task tickets (forgejo_add_dependency, body {index, owner, repo}).

  • Step 6: Arm (session, after Task 6's commit is on main and the workstation runner clone is at it): append the issue number to REHEARSAL_DRIVE_QUEUE in the workstation's ~/swarm/idss-env.sh (never leave the var empty — GOTCHAS: an empty queue var is not a pause); drop no-triage; STATUS header "phase 9 ARMED". Watch the first fire: the pick-files/place-files legs are the first new UI walked live; activation is the first suspect if the Nextcloud closure runs long.


Phase 9 (provision on founding) task 6 of 6. Spec: `docs/superpowers/specs/2026-09-15-183-phase-9-provision-on-founding-rehearsal-design.md`. Plan (read the header, Global Constraints and plan-time inventory first — the Interfaces block below is how tasks learn each other's names): `docs/superpowers/plans/2026-09-15-183-phase-9-provision-on-founding-rehearsal.md`. Acceptance = every checkbox step below done, its verification commands green, one commit in the repo's voice. A blocked_by edge on this ticket names the task whose Interfaces it consumes. --- ### Task 6: Executor target `rented-services`, offline pins, docs, the drive issue, arm **Files:** - Modify: `scripts/smoke-private-path.sh:99-100, 146, 1000` (allowlist + refusal text; `uses_droplet_machinery`; teardown `rented|rented-services`) - Modify: `scripts/rehearsal-cycle.sh:431` (`rented|rented-services|device`) - Create: `scripts/tests/rehearsal-rented-services-target-test.sh` (copy of `rehearsal-v2-fleet-target-test.sh`, target renamed) - Modify: `docs/operator-app/rehearsal-drive.md:260-262` (marker list current: `rented-device | v2-fleet | local-brands | rented-services`) - Tracker: the standing-drive issue; `STATUS.md` header line at arm. **Interfaces:** Consumes Task 5's spec file name (`journey.rented-services.spec.ts` derives from the target, `smoke-private-path.sh:256`). The drive is the test. - [ ] **Step 1: Offline pin first** — write the test (copy v2-fleet's four checks; check 3 must show the FOUNDING slug claimed; check 4 the spec exists). Run `bash scripts/tests/rehearsal-rented-services-target-test.sh` → fails on check 1 (`unknown --target`). - [ ] **Step 2: Wire** the three `smoke-private-path.sh` sites and the cycle's freshness gate. The teardown: `elif [[ "$target" == "rented" || "$target" == "rented-services" ]]; then` at `:1000` (the box is released by the spec's `release` leg + afterAll; `oc_rented_cleanup` is the harness belt, exactly `rented`'s). Also the other `"$target" == "rented"` sites at `:544, :621, :666, :843` — read each; those that gate rented PREFLIGHT/announce apply to `rented-services` too (same box, same slug ownership); mirror them with the same `||`. Run the new test → 4/4; run `scripts/tests/rehearsal-rented-target-test.sh` and `rehearsal-v2-fleet-target-test.sh` → unchanged green; `--dry-run --target rented-services` prints the founding slug announce. - [ ] **Step 3: Docs** — `rehearsal-drive.md` marker list; one line under "The standing community" noting phase 9 is a FOUNDING target (own slug, no standing community). - [ ] **Step 4: Commit** — `sandcastle: phase 9 — the rented-services executor target (allowlist, droplet machinery, rented teardown belt, gateway-image freshness) + its offline pin; rehearsal-drive.md marker list brought current`. - [ ] **Step 5: The drive issue (mint at plan → tickets time, body carries):** title `standing drive: PROVISION ON FOUNDING — journey.rented-services.spec.ts: Files placed on a RENTED gateway at the founding page, the founding's own Nextcloud proven (services-row → hand-off-card → sign-in → files-healthy → door → branded-login → oidc-admin → branded-chrome → release); GREEN is the only close`; markers `<!-- rehearsal-target: rented-services -->` `<!-- rehearsal-confirm: 1 -->`; the leg table; the expected-first-reds list from the spec; the three frames Ben eyeballs (`artifacts/hand-off-files-card.png`, `artifacts/nextcloud/login.png`, the admin frame from `oidc-admin`); labels `standing-drive`, `priority`, `no-triage` until Tasks 1–6 close; native `blocked_by` on all six task tickets (`forgejo_add_dependency`, body `{index, owner, repo}`). - [ ] **Step 6: Arm** (session, after Task 6's commit is on main and the workstation runner clone is at it): append the issue number to `REHEARSAL_DRIVE_QUEUE` in the workstation's `~/swarm/idss-env.sh` (never leave the var empty — GOTCHAS: an empty queue var is not a pause); drop `no-triage`; STATUS header "phase 9 ARMED". Watch the first fire: the `pick-files`/`place-files` legs are the first new UI walked live; `activation` is the first suspect if the Nextcloud closure runs long. ---

Ruled by agent under ADR 0174 — veto anytime. Session on bens-mac-04 (the standing-session drainer picked up this ready-for-session ticket here; the prompt preamble's "matou-workstation" is the generic template — the real host is bens-mac-04).

What landed (Steps 1–5) — two-way door, offline-proven

The rented-services executor target (phase 9). rented-services founds on a wizard-rented gateway exactly as #1447's rented drive does (runRentedPrefix; the journey spec references no OC_E2E_DROPLET_IP), so it mirrors rented's whole box lifecycle at every gating site rather than the harness-create path:

  • scripts/smoke-private-path.sh: allowlist + refusal text (:98-101), uses_droplet_machinery (:146), pre-rent preflight oc_rented_preflight (:544), gateway-image-staleness park #656 (:621), dry-run announce (:666), oc_rented_certs_arm (:843), and the wizard-rent teardown belt oc_rented_cleanup by droplet-ip.txt (:1000).
  • :760 oc_droplet_create EXCLUSION — && "$target" != "rented-services". This is the one site the ticket's == "rented" list did not name (it's a != site). I read it and mirrored it anyway: without it a wizard-rent target would harness-create a second, unused droplet beside the wizard's (double spend + leak). The spec's "exactly as #1447's rented drive" and the plan's Global Constraint require it. Noted here as the one deviation from the ticket's explicit site list — a two-way door, revertible.
  • scripts/rehearsal-cycle.sh:431: gateway-image freshness rebuild joins rented|rented-services|device.
  • Slug routing needs no edit: swarm-identity's *) case sends every founding target to REHEARSAL_SLUG_FOUNDING (#1401).

Proof (offline): new scripts/tests/rehearsal-rented-services-target-test.sh 4/4 (target accepted + joined uses_droplet_machinery; --drive refused beside it; unknown target still rejected by name; the FOUNDING slug claimed, never the standing one; journey.rented-services.spec.ts on disk). Regression-green and unchanged: rehearsal-rented (25), v2-fleet (4), device (21), local-archive (8), local-brands (6), vm-mode (7), rehearsal-queue-test.sh. bash -n clean on both scripts.

Docs (docs/operator-app/rehearsal-drive.md): marker list brought current (rented-device | v2-fleet | rented-services | local-brands) + a note that phase 9 is a FOUNDING target (own slug, no standing community).

Drive issue #1491 (Step 5) was already minted at plan→tickets time and its body is complete (markers rehearsal-target: rented-services + confirm: 1, the 19-leg table, expected-first-reds, the three frames Ben eyeballs, labels standing-drive/priority/no-triage, native blocked_by on all six task tickets). It is now blocked only by this ticket.

Commits: 97705cb6 (target + pin + docs), 084fe3bd (STATUS).

Why human — Step 6 (arm) is not done

The arm (Step 6) must append #1491 to REHEARSAL_DRIVE_QUEUE in matou-workstation's ~/swarm/idss-env.sh — ruling 4's carrier ("the workstation's rented executor rail"). This session cannot do it:

  1. Wrong host, no door. This ran on bens-mac-04, whose idss-env.sh is intentionally DISARMED and records GOTCHAS 53 ("one standing drive, ONE host; matou-workstation = the rented/founding carrier; never point this at a number a peer already drives"). Host env files are per-host, hand-maintained, "never in a repo"; bens-mac-04 has no SSH door to matou-workstation. Arming bens-mac-04's own queue instead would reassign the carrier against ruling 4 and against the drive-exclusive host registry — a spend + host-assignment decision, not a clean two-way door.
  2. Operator-spend executor frontier. Arming queues an unattended live founding drive that rents a DO gateway and walks — for the first time live — the new pick-files/place-files UI legs; a GREEN closes #1491 only once its screenshots are eyeballed (ruling 4). This is the founding-live-green executor frontier a one-shot session does not run.

The arm, for a matou-workstation session/operator: with 97705cb6 on the workstation's clone, append 1491 to REHEARSAL_DRIVE_QUEUE in ~/swarm/idss-env.sh (never leave the var empty — an empty queue var is not a pause), drop no-triage from #1491, set the STATUS header to "phase 9 ARMED", and watch the first fire (activation is the first suspect if the Nextcloud closure runs long).

Routing this ready-for-human (not left ready-for-session) so it doesn't loop back onto a wrong/DISARMED host: the residue is a host-pinned arm + operator spend, best placed by hand or re-pinned to a matou-workstation session.

**Ruled by agent under ADR 0174 — veto anytime.** Session on **bens-mac-04** (the standing-session drainer picked up this `ready-for-session` ticket here; the prompt preamble's "matou-workstation" is the generic template — the real host is bens-mac-04). ## What landed (Steps 1–5) — two-way door, offline-proven The `rented-services` executor target (phase 9). `rented-services` founds on a **wizard-rented** gateway exactly as #1447's `rented` drive does (`runRentedPrefix`; the journey spec references no `OC_E2E_DROPLET_IP`), so it **mirrors `rented`'s whole box lifecycle** at every gating site rather than the harness-create path: - `scripts/smoke-private-path.sh`: allowlist + refusal text (`:98-101`), `uses_droplet_machinery` (`:146`), pre-rent preflight `oc_rented_preflight` (`:544`), gateway-image-staleness park #656 (`:621`), dry-run announce (`:666`), `oc_rented_certs_arm` (`:843`), and the wizard-rent teardown belt `oc_rented_cleanup` by `droplet-ip.txt` (`:1000`). - **`:760` `oc_droplet_create` EXCLUSION** — `&& "$target" != "rented-services"`. This is the one site the ticket's `== "rented"` list did **not** name (it's a `!=` site). I read it and mirrored it anyway: without it a wizard-rent target would harness-create a **second, unused droplet** beside the wizard's (double spend + leak). The spec's "exactly as #1447's rented drive" and the plan's Global Constraint require it. Noted here as the one deviation from the ticket's explicit site list — a two-way door, revertible. - `scripts/rehearsal-cycle.sh:431`: gateway-image freshness rebuild joins `rented|rented-services|device`. - Slug routing needs no edit: `swarm-identity`'s `*)` case sends every founding target to `REHEARSAL_SLUG_FOUNDING` (#1401). **Proof (offline):** new `scripts/tests/rehearsal-rented-services-target-test.sh` 4/4 (target accepted + joined `uses_droplet_machinery`; `--drive` refused beside it; unknown target still rejected by name; the FOUNDING slug claimed, never the standing one; `journey.rented-services.spec.ts` on disk). Regression-green and unchanged: `rehearsal-rented` (25), `v2-fleet` (4), `device` (21), `local-archive` (8), `local-brands` (6), `vm-mode` (7), `rehearsal-queue-test.sh`. `bash -n` clean on both scripts. Docs (`docs/operator-app/rehearsal-drive.md`): marker list brought current (`rented-device | v2-fleet | rented-services | local-brands`) + a note that phase 9 is a FOUNDING target (own slug, no standing community). Drive issue **#1491** (Step 5) was already minted at plan→tickets time and its body is complete (markers `rehearsal-target: rented-services` + `confirm: 1`, the 19-leg table, expected-first-reds, the three frames Ben eyeballs, labels `standing-drive`/`priority`/`no-triage`, native `blocked_by` on all six task tickets). It is now blocked only by this ticket. **Commits:** `97705cb6` (target + pin + docs), `084fe3bd` (STATUS). ## Why human — Step 6 (arm) is not done The arm (Step 6) must append **#1491** to `REHEARSAL_DRIVE_QUEUE` in **matou-workstation's** `~/swarm/idss-env.sh` — ruling 4's carrier ("the workstation's rented executor rail"). This session **cannot** do it: 1. **Wrong host, no door.** This ran on bens-mac-04, whose `idss-env.sh` is intentionally **DISARMED** and records **GOTCHAS 53** ("one standing drive, ONE host; matou-workstation = the rented/founding carrier; never point this at a number a peer already drives"). Host env files are per-host, hand-maintained, "never in a repo"; bens-mac-04 has no SSH door to matou-workstation. Arming bens-mac-04's own queue instead would reassign the carrier against ruling 4 and against the drive-exclusive host registry — a spend + host-assignment decision, not a clean two-way door. 2. **Operator-spend executor frontier.** Arming queues an **unattended live founding drive** that rents a DO gateway and walks — for the first time live — the new `pick-files`/`place-files` UI legs; a GREEN closes #1491 **only once its screenshots are eyeballed** (ruling 4). This is the founding-live-green executor frontier a one-shot session does not run. **The arm, for a matou-workstation session/operator:** with `97705cb6` on the workstation's clone, append `1491` to `REHEARSAL_DRIVE_QUEUE` in `~/swarm/idss-env.sh` (never leave the var empty — an empty queue var is not a pause), drop `no-triage` from #1491, set the STATUS header to "phase 9 ARMED", and watch the first fire (`activation` is the first suspect if the Nextcloud closure runs long). Routing this `ready-for-human` (not left `ready-for-session`) so it doesn't loop back onto a wrong/DISARMED host: the residue is a host-pinned arm + operator spend, best placed by hand or re-pinned to a matou-workstation session.
Author
Owner

Step 6 (arm) done from the laptop, 2026-09-15 — 1491 appended to REHEARSAL_DRIVE_QUEUE in matou-workstation ~/swarm/idss-env.sh (after the closed #1447; backup in env-backups/), no-triage dropped and ready-for-agent added on #1491. The executor ticks every 2 min; the gateway-image freshness gate rebuilds the snapshot first if stale. Closing — this ticket was the last open blocker on #1491.

**Step 6 (arm) done from the laptop, 2026-09-15** — `1491` appended to `REHEARSAL_DRIVE_QUEUE` in matou-workstation `~/swarm/idss-env.sh` (after the closed #1447; backup in `env-backups/`), `no-triage` dropped and `ready-for-agent` added on #1491. The executor ticks every 2 min; the gateway-image freshness gate rebuilds the snapshot first if stale. Closing — this ticket was the last open blocker on #1491.
ben 2026-09-15 15:13:46 +00:00
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/idss#1490
No description provided.