rehearsal: provision the swarm substrate to drive the droplet target — the #378 cycle run by the swarm #380

Closed
opened 2026-08-10 00:46:24 +00:00 by ben · 2 comments
Owner

Part of the #183 rehearsal ratchet. #377 proved the substrate cannot run the LOCAL-GUEST drive (no kvm, no init, below the 6144 floor) and confirmed ADR 0132's boundary. The droplet target is a different animal: no local guest, floor = 2048 MiB (the container's observed 4.4 GiB clears it), payload = control-plane + dashboard only. With #379 landed, the remaining distance to a swarm-driven #378 cycle is provisioning, not architecture.

Blocked by #379 (the unconditional systemctl gate refuses in the container today).

Provisioning checklist (the container/runner the drive jobs use)

  • nix develop .#e2e works in the container (brings xvfb-run; nix 2.35.1 already present per #377 host facts)
  • electron binary: pnpm approve-builds in app/ + reinstall (pnpm denies its postinstall by design)
  • playwright chromium: pnpm --filter app exec playwright install chromium
  • fresh 2-artifact payload (control-plane, dashboard) + OURCLOUD_PAYLOAD_DIR — the staleness gate refuses a payload older than the newest tree commit, so the job must rebuild or refresh it
  • env: OURCLOUD_BROKER_URL, DIGITALOCEAN_ACCESS_TOKEN (already in .sandcastle/.env on the workstation per scripts/lib/rehearsal-droplet.sh:17), REHEARSAL_DRIVE_ISSUE=378
  • clan-lab CLI present at .claude/skills/clan-lab/clan-lab in the job's checkout, and the workstation's SSH key registered on the DO account (rehearsal-droplet.sh:39)
  • memory: floor is 2048 MiB for droplet — container observed 4.4 GiB available; keep the allocation ≥ 4 GiB so electron+chromium never brush the floor

Then: the declaration

When the checklist holds and a droplet --dry-run passes from the substrate, flipping #378 to ready-for-agent is the declaration of readiness (Ben's call, per #378's lifecycle). The first drives are EXPECTED to red at the pairing frontier until #368 lands — that red is the ratchet working: the reporter (#373) files/blocks, blockers close, the cycle re-drives. A swarm that can run this drive is the swarm running e2e.

Explicitly out of scope

  • The Task-3 gate / #377: that is the LOCAL-GUEST drive re-proving GREEN (private branch, standup-private landing) and still needs one KVM-capable, ≥6144-MiB host — the droplet journey branches to own-VPS at S4 and cannot substitute.
  • Any grant of kvm/systemd/memory to the substrate for local-guest drives (that would be an ADR 0132 amendment; #377 comment 5152 maps those three grants if ever wanted).

Evidence trail: #377 comment 5152, #378 comment 5188.

Part of the #183 rehearsal ratchet. #377 proved the substrate cannot run the LOCAL-GUEST drive (no kvm, no init, below the 6144 floor) and confirmed ADR 0132's boundary. The droplet target is a different animal: no local guest, floor = 2048 MiB (the container's observed 4.4 GiB clears it), payload = `control-plane` + `dashboard` only. With #379 landed, the remaining distance to a swarm-driven #378 cycle is provisioning, not architecture. Blocked by #379 (the unconditional `systemctl` gate refuses in the container today). ## Provisioning checklist (the container/runner the drive jobs use) - [ ] `nix develop .#e2e` works in the container (brings xvfb-run; nix 2.35.1 already present per #377 host facts) - [ ] electron binary: `pnpm approve-builds` in `app/` + reinstall (pnpm denies its postinstall by design) - [ ] playwright chromium: `pnpm --filter app exec playwright install chromium` - [ ] fresh 2-artifact payload (`control-plane`, `dashboard`) + `OURCLOUD_PAYLOAD_DIR` — the staleness gate refuses a payload older than the newest tree commit, so the job must rebuild or refresh it - [ ] env: `OURCLOUD_BROKER_URL`, `DIGITALOCEAN_ACCESS_TOKEN` (already in `.sandcastle/.env` on the workstation per `scripts/lib/rehearsal-droplet.sh:17`), `REHEARSAL_DRIVE_ISSUE=378` - [ ] clan-lab CLI present at `.claude/skills/clan-lab/clan-lab` in the job's checkout, and the workstation's SSH key registered on the DO account (`rehearsal-droplet.sh:39`) - [ ] memory: floor is 2048 MiB for droplet — container observed 4.4 GiB available; keep the allocation ≥ 4 GiB so electron+chromium never brush the floor ## Then: the declaration When the checklist holds and a droplet `--dry-run` passes from the substrate, flipping #378 to `ready-for-agent` is the declaration of readiness (Ben's call, per #378's lifecycle). The first drives are EXPECTED to red at the pairing frontier until #368 lands — that red is the ratchet working: the reporter (#373) files/blocks, blockers close, the cycle re-drives. A swarm that can run this drive is the swarm running e2e. ## Explicitly out of scope - The Task-3 gate / #377: that is the LOCAL-GUEST drive re-proving GREEN (private branch, `standup-private` landing) and still needs one KVM-capable, ≥6144-MiB host — the droplet journey branches to own-VPS at S4 and cannot substitute. - Any grant of kvm/systemd/memory to the substrate for local-guest drives (that would be an ADR 0132 amendment; #377 comment 5152 maps those three grants if ever wanted). Evidence trail: #377 comment 5152, #378 comment 5188.
Author
Owner

Parked (Ben's ruling, 2026-08-10): the cycle runs on the host cron.
scripts/rehearsal-executor.sh on matou-workstation's crontab is #378's
executor — DO/broker secrets stay on the workstation host, outside the swarm
containers. Labelling no-triage.

This ticket stays as the swarm-native alternative if the loop ever wants it:
its checklist is current, and #377's re-scoped run will land the
browser/electron items in the container anyway. Re-arm by flipping
ready-for-agent — nothing here blocks the ratchet.

**Parked (Ben's ruling, 2026-08-10): the cycle runs on the host cron.** `scripts/rehearsal-executor.sh` on matou-workstation's crontab is #378's executor — DO/broker secrets stay on the workstation host, outside the swarm containers. Labelling `no-triage`. This ticket stays as the swarm-native alternative if the loop ever wants it: its checklist is current, and #377's re-scoped run will land the browser/electron items in the container anyway. Re-arm by flipping `ready-for-agent` — nothing here blocks the ratchet.

Closing as superseded (Ben, 2026-08-23).

The 2026-08-10 ruling that parked this — the cycle runs on a host cron, DO/broker secrets stay outside the swarm containers — has since been entrenched rather than eroded:

  • #659 made the executor per-host (rehearsal-env.sh is host-scoped; two boxes drive two standing drives).
  • dev-factory ADR 0004 explicitly classifies the rehearsal executor as a product-owned host loop that stays outside the factory-managed crontab block.
  • The loop has proven itself unattended: the phase-4 rented drive (#652) turned a four-bug ratchet (#703/#707/#709/#710) in one day with no human in the loop.

The one thing that changed since filing — --target rented needs no /dev/kvm — doesn't move the secrets argument: a swarm-native executor puts a DigitalOcean token and the broker claim secret inside a sandbox worker, which is a security-posture widening (ADR 0174 one-way door), not a convenience. ADR 0132's "a slice, not CI" ruling stands.

Re-open if the host crons are ever retired. The narrower, posture-neutral ask — registering the executor in dev-factory's host registry so it gets the same backstop/observability as healer/triage — is a dev-factory ticket, not this one.

Closing as superseded (Ben, 2026-08-23). The 2026-08-10 ruling that parked this — the cycle runs on a host cron, DO/broker secrets stay outside the swarm containers — has since been entrenched rather than eroded: - #659 made the executor per-host (`rehearsal-env.sh` is host-scoped; two boxes drive two standing drives). - dev-factory ADR 0004 explicitly classifies the rehearsal executor as a product-owned host loop that stays outside the factory-managed crontab block. - The loop has proven itself unattended: the phase-4 rented drive (#652) turned a four-bug ratchet (#703/#707/#709/#710) in one day with no human in the loop. The one thing that changed since filing — `--target rented` needs no `/dev/kvm` — doesn't move the secrets argument: a swarm-native executor puts a DigitalOcean token and the broker claim secret inside a sandbox worker, which is a security-posture widening (ADR 0174 one-way door), not a convenience. ADR 0132's "a slice, not CI" ruling stands. Re-open if the host crons are ever retired. The narrower, posture-neutral ask — registering the executor in dev-factory's host registry so it gets the same backstop/observability as `healer`/`triage` — is a dev-factory ticket, not this one.
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#380
No description provided.