rehearsal phase 4 standing drive: rented gateway — GREEN is the only close #652
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Depends on
#668 rent-fails-clean: broker 400s ssh_pubkey is required before the provision fault fires
Matou/idss
#670 rent-fails-clean: duplicate of already-closed #668 (fix at HEAD, needs re-drive not new work)
Matou/idss
#671 rent-fails-clean: rehearsal-rentfail slug stuck claimed, provision fault unreachable
Matou/idss
#674 rent-fails-clean: rent-error shows raw DigitalOcean 404 instead of stage="provision" message
Matou/idss
#680 wizard-rent reds on raw DigitalOcean 404 during S4a rent-create (recurrence of #678)
Matou/idss
#692 rented carrier: supply SSHes with the guest-trust key before the box is ever taught to trust it
Matou/idss
Reference
Matou/idss#652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Destination
One unattended drive founds a community on the rented-gateway path (S4a,
AccessRented): the live Matou broker rents a DigitalOcean droplet from the gateway image (NixOS,idss-agentpre-installed, ADR 0048) → IP auto-filled → claim → create → the folded S7 rented checklist opens with install/consent/pairing pre-marked done → the carrier pairs the pre-provisioned box over SSH → point → deploy with no kexec/disko (clan.VMMode) → activation → founded → S12 →heartbeat-repoint→ the broker's ownreleasetears the box down. Twelve legs, ceilings per the spec table:rent-fails-clean(5m) ·wizard-rent(8m) ·claim(3m) ·create(3m) ·image-boot(5m) ·pair(5m) ·point(5m) ·deploy(15m) ·activation(15m) ·founded(5m) ·heartbeat-repoint(15m) ·release(5m)Spec:
docs/superpowers/specs/2026-08-21-183-phase-4-rented-gateway-rehearsal-design.mdPlan:
docs/superpowers/plans/2026-08-21-183-phase-4-rented-gateway-rehearsal.mdRulings: ADR 0189 (free while alpha, TTL-reaped, pubkey in, release on abandon) + DDR 0190 (S4a without a payment edge) — #645.
Rules
rent-fails-clean) is a RED, same as a broken one.releaseleg or the executor'sdoctlfallback reap (tagidss-gateway) — a leaked box is a RED finding even on a green journey.Pre-arming checklist (all must be true)
scripts/gateway-image/latest.shprints anidss-gateway-<sha>id (first build = Ben's!with the DO token).$IDSS_BROKER_URLis redeployed withIDSS_DO_TOKEN(Ben's!on the mail droplet) andcurl -s $IDSS_BROKER_URL/v1/gateways/offerreturns 200 with"price":"".Arming ritual (Ben's
!— one standing drive at a time)In
.sandcastle/.envon the executor host (the runbook's knob home; not secrets — thestanding-drivelabel here is the swarm-side exclusion, GOTCHAS #23):REHEARSAL_DRIVE_ISSUE=652andREHEARSAL_DRIVE_TARGET=rented.#523 closed GREEN 2026-08-22 (13/13) — the one-at-a-time gate is already cleared. Until both knobs are set, nothing fires; #523 stays phase 3's record.
!)Pre-arming item 3 DONE (2026-08-22 06:21Z): broker redeployed on the mail droplet at
f4c4b94(0.2.0-alpha-rentals), real DigitalOcean provider configured via a dedicated scopedidss-brokertoken (systemdLoadCredential,/etc/idss-broker/do-token), rental ledger/var/lib/ourcloud-broker/rentals.json, reaper running. Verified from outside:GET /v1/gateways/offer200 (price:"",ttl:24h),POST /v1/gateways/rent400/401/403 on unclaimed / no bearer / wrong secret — nothing provisioned.Landmine found + fixed while deploying:
/etc/ourcloud/broker.envcarriedOURCLOUD_CLOUDFLARE_TOKEN; the post-rebrand binary readsIDSS_CLOUDFLARE_TOKEN, so the first restart booted with NO zone binding (point/offboard would have 502'd every drive). Renamed in place;real Cloudflare idss.nz zone binding configuredconfirmed. GOTCHAS candidate: any pre-rebrand host env file needs itsOURCLOUD_*keys renamed before a post-rebrand binary lands.Remaining before arming: item 2 (first
scripts/gateway-image/build.shrun → anidss-gateway-<sha>snapshot), items 1/4.deploy, image stays generic #655deploy, image stays generic #655Pre-arming item 2 DONE (2026-08-22 11:15Z): Ben ran
scripts/gateway-image/build.shfrom8585a95→ DO snapshotidss-gateway-8585a9546dd3(id242199179, 80 GB). Image contract proven live at build (idss-agent.service active), build droplet deleted,latest.shresolves it. Item 1 (#645–#651) is also DONE — the DAG drained. Remaining: item 4 (phase-1/2 confirmation drives release the #577 host lock) → arm:REHEARSAL_DRIVE_ISSUE=652+REHEARSAL_DRIVE_TARGET=rentedinmatou-workstation:/home/dev/swarm/rehearsal-env.sh(Ben!). Note the snapshot pins the agent at8585a95; #656 (image-staleness preflight) guards later agent changes.Host decision (Ben, 2026-08-22): this drive will run on a SECOND executor host so it does not queue behind the workstation's widened phase-3 drive — #659 provisions elitebook-03 (Ben's sudo/secrets half + a swarm half). Arming ritual is unchanged except the file lives at
elitebook-03:/home/swarm/swarm/rehearsal-env.sh. Pre-arming items 1–3 remain DONE; item 4 (host lock) is moot on a dedicated host.elitebook-03 executor is LIVE (2026-08-22 11:58Z). Warm run passed in 7 min (e2e devshell, pnpm, chromium-1234,
go buildok — hot cache).*/2executor cron installed forswarmsourcing/home/swarm/swarm/rehearsal-env.shwithREHEARSAL_DRIVE_ISSUE=652+REHEARSAL_DRIVE_TARGET=rented— #652 is ARMED on elitebook-03; the workstation keeps the phase-3 widened drive (#657). Evidence for rented drives lives atelitebook-03:/home/swarm/swarm/Matou/idss/test-results/drive-rented/<stamp>/— note the reporter/healer copy still says "on matou-workstation" (#659 swarm half: stamp the hostname).Tick 3 on elitebook-03 (≈12:10Z): PARKED by #656's gate, correctly —
gateway image stale: built at 8585a9546dd3, agent changed in 91685055dd5b (4 agent-commits since). Registry confirms 4 neweridss-agentartifacts, so the snapshot's baked agent is genuinely behind. No droplet spent. Ticks 1–2 were host-prep reds (nix-profile race; chromium shared libs) — both fixed, see #659. Needs: a snapshot rebuild frommain(Ben,scripts/gateway-image/build.sh— #654 makes HEAD buildable) → the next tick drives. Filed #661 so the executor rebuilds the snapshot itself next time.drive
20260822T125436ZRED — now blocked by: #665 (evidence on each). The drive re-fires when the last blocker closes.Snapshot advanced
8585a95→idss-gateway-7b842332f718(DO id 242212310, Ben,build.shfrommainvia #654's pin resolution; build droplet reaped). The #656 gate should pass on elitebook-03's next tick → first real rented drive.drive
20260822T125436ZRED — now blocked by: #668 (evidence on each). The drive re-fires when the last blocker closes.drive
20260822T125436ZRED — now blocked by: #670 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
7b84233→cc654f1dc994by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260822T164303ZRED — now blocked by: #671 (evidence on each). The drive re-fires when the last blocker closes.drive
20260822T170850ZRED — now blocked by: #672 (evidence on each). The drive re-fires when the last blocker closes.drive
20260822T173839ZRED — now blocked by: #674 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
cc654f1→6a1b0cb9b811by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260822T175941ZRED — now blocked by: #675 (evidence on each). The drive re-fires when the last blocker closes.drive
20260822T181240ZRED — now blocked by: #677 (evidence on each). The drive re-fires when the last blocker closes.drive
20260822T185236ZRED — now blocked by: #680 (evidence on each). The drive re-fires when the last blocker closes.provision — DigitalOcean refused: Not Founddrive
20260822T192646ZRED — now blocked by: #682 (evidence on each). The drive re-fires when the last blocker closes.provision — DigitalOcean refused: Not Found#682gateway-image: snapshot advanced
988c726→df8bfecd742fby elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.rehearsal healer: drive
20260823T025606Zred atwizard-rent(sig 3b0b824f61b8) self-fixed — commit7c99231d668443e1d801327c08f9f0f2f4fe794a(2 files changed, 53 insertions(+)); checks: CGO_ENABLED=0 go test ./internal/founding/... — PASS (including new TestSaveDetails_RenameDropsStaleSubdomainAddress); CGO_ENABLED=0 go build ./... — clean. The drive stays armed; the next tick re-drives.gateway-image: snapshot advanced
df8bfec→4bae9111257bby elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.rehearsal healer: drive
20260823T032037Zred atclaim(sig d213ffc8c0ad) self-fixed — commit626a0a517073e74f2d7367ce6f981c76cebf275d(4 files changed, 88 insertions(+), 34 deletions(-)); checks: GOWORK=$(pwd)/go.work CGO_ENABLED=0 go test ./internal/founding/... — PASS (including new TestClaimSubdomain_ReclaimingRentAutoClaimedSlugIsNoOp, verified to fail without the fix); GOWORK=$(pwd)/go.work CGO_ENABLED=0 go build ./... — clean. The drive stays armed; the next tick re-drives.gateway-image: snapshot advanced
4bae911→626a0a517073by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T033712ZRED — now blocked by: #686 (evidence on each). The drive re-fires when the last blocker closes.rehearsal healer: drive
20260823T042838Zred atimage-boot(sig a25a6c0aae50) self-fixed — commit72f18a1269382040eada27267c056be72132e927(7 files changed, 132 insertions(+), 7 deletions(-)); checks: pnpm exec vitest run tests/e2e/fixtures/rented.test.ts — PASS (15/15, including new regression test asserting PARTLABEL usage and replaying this run's exact LABEL-only dump as a failing case); pnpm exec tsc --noEmit -p . shows only 2 pre-existing unrelated errors (confirmed present on main before this change via git stash). The drive stays armed; the next tick re-drives.drive
20260823T043642ZRED — now blocked by: #691 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
626a0a5→fed89c81c4d9by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.rehearsal healer: drive
20260823T053237Zred atimage-boot(sig a25a6c0aae50) self-fixed — commit5f4b3935f8005cddeec1572a825c5db8a641a5dd(2 files changed, 29 insertions(+), 7 deletions(-)); checks: pnpm exec vitest run tests/e2e/fixtures/rented.test.ts — PASS (16/16); pnpm exec tsc --noEmit -p . shows only the 2 pre-existing unrelated .vue-module errors also present on main.. The drive stays armed; the next tick re-drives.drive
20260823T054045ZRED — now blocked by: #692 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
fed89c8→af942243a2b4by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T071501ZRED — now blocked by: #693 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
af94224→5a53b04c0d1aby elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.pairleg's 300s ceiling is unvalidated against a from-source Caddy-with-plugins compile atenroll-builddrive
20260823T075823ZRED — now blocked by: #697 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
5a53b04→29b9cbc848b9by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T085132ZRED — now blocked by: #698 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
29b9cbc→da21ec14e3d4by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T092947ZRED — now blocked by: #700 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
da21ec1→734e466c27fdby elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700)drive
20260823T104013ZRED — now blocked by: #702 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
734e466→01eedc890405by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T115746ZRED — now blocked by: #704 (evidence on each). The drive re-fires when the last blocker closes.drive
20260823T132050ZRED — now blocked by: #707 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
01eedc8→d62a7252e610by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T160641ZRED — now blocked by: #709 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
d62a725→c21a86f4faccby elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T170734ZRED — now blocked by: #711 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
c21a86f→27880caac2f2by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.drive
20260823T193424ZRED — now blocked by: #713 (evidence on each). The drive re-fires when the last blocker closes.gateway-image: snapshot advanced
27880ca→4abdd8e39619by elitebook-distributed-server-03 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed.enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviourdrive
20260823T213536ZRED — now blocked by: #716 (evidence on each). The drive re-fires when the last blocker closes.enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviourdrive
20260823T234437ZGREEN end to end — evidence (legs.json, durations, trace, host facts) intest-results/drive-rented/20260823T234437Z/on the executor host; a representative screenshot is attached here if one was captured (#596). Closing per the standing instructions: the rented journey passes, #183 is ready to be boring.