TWO-MACHINE BUILD drive: a rented gateway plus one added machine, Build it unattended, both live on the hand-off — by leg list #1451
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
Reference
Matou/idss#1451
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?
Surface
The packaged app against the real helper + live broker,
--target rented(specjourney.v2-fleet.spec.ts). Variant A (the default, fullyunattended, cheapest): rented gateway + one ADDED RENTED device. Variant B: rented
gateway + one ADDED OWN-VPS droplet (the takeover leg). Teardown releases every box
(reuse
releaseOnTeardown,dropletExistsByTag).Legs
v2-walk— identity + services (files + docs-editing).access-rent— the rent card; recordrented-at: s4auntil #1404, thenbuild.bench-add-device—[data-action="add-a-device"]→ rented preset (A) / own-VPSdroplet IP + connect (B) → second
[data-field="device-card"].place-across-machines— files on the gateway, docs-editing tapped onto the addedmachine;
[data-field="device-memory"]on the added card says ORDERED (A) /measured (B) — never a bare number.
placement-saved-and-resumes— Continue; quit + relaunch; the bench comes back withboth machines and both placements (#1416 AC1 against the bridge).
confirm-names-the-takeover(B only) —[data-field="confirm-device"]for theadded VPS states the disk wipe before Build it (#1417 AC3).
build-it—[data-action="build"]→[data-status="founding-deploy"]; the rail showsdevice:<id>:reach,:enrol,:deployrows for the added machine beforefinish.gateway-live— the existing rented legs by name:point,deploy,activation.device-reach— (A) the broker rented the device (doctlshows a second droplettagged for the community) and it called in on its code; (B) the drive-out connected
with the host key selection pinned.
device-enrol— the node is in the community's clan inventory(
clan machines listover the gateway) and the mesh (netbird statuspeer).device-deploy— docs-editing answers athttps://docs.<apex>from OUTSIDE and thecontrol panel's Fleet tab lists the node with that service.
finish-after-devices—finishran only afterdevice:*:deploy(event order inthe state file).
hand-off-fleet—[data-field="fleet-device"]×2 from the seam (T1): gatewaylivewith files RUNNING + OPEN href = its Address; added machinelivewithdocs-editing;
[data-action="open-members-portal"][disabled].device-fails-gateway-stands— variant run: rent the added device into a region thesnapshot does not span (GOTCHAS #220 makes this deterministic) →
device:*:reachred with the broker's refusal, the gateway rows green,
finishruns, the hand-offshows the failed card with its fault and no RUNNING pill; the community is usable
(
sign-inleg from the rented drive).nothing-waited— the drive pressed nothing between Build it and the hand-off:assert no
[data-action]click was issued by the driver in that window and noinstall/consent op appears in the frame log.release— both boxes released;dropletExistsByTagfalse.Failure branches
14 (an extra machine's leg reds without redding the gateway's); the rented-device
call-in timing out →
device:*:reachred with a remedy, not a hang.Progress report — the v2-fleet drive is AUTHORED; the live green is the frontier (advances #1451)
Ruled by agent under ADR 0174 — veto anytime. Committed in
4fba9862(sandcastle: #1451 — the TWO-MACHINE BUILD drive is authored).What I found first
Two mapping passes confirmed the product is already complete for a two-machine founding build in both variants, so this was a fixtures + harness gap, not a product gap:
FoundingDevicePlacement.vue([data-action="add-a-device"],[data-field="device-card"],[data-field="device-memory"]→memory-sourceORDERED/measured) +adddevice/*(rented preset carddevice-rent/add-device; own-VPSdevice-address→takeover-note→connect-next→FoundingConnectDevice).FoundingConfirm.vue([data-field="confirm-device"][data-device],[data-field="takeover"]).device:<id>:{reach,enrol,deploy}beforefinish(internal/founding/deviceprovision.go, #1417/DDR 0241).FoundingFleetSummary.vue([data-field="fleet-device"],[data-action="open-members-portal"][disabled], #1448).What landed (all two-way-door, revertible)
app/tests/e2e/fixtures/foundingFleet.ts— the founding-fleet fixtures the ticket needs:addRentedDeviceOnBench(A),addOwnVpsDeviceOnBench(B),placeServiceOnMachine(the drag that steers a service to a specific machine — a plain tap auto-routes),assertConfirmNamesFleet(two machines + takeover),assertHandOffFleet(bothfleet-devicecards + disabled members' door), and the purev2FleetOrder/deviceRow/expectedMemoryTagseams.foundingFleet.test.ts— the pure logic offline, red→green, 8/8: the added machine's rail rows splice immediately beforefinish(mirrorswithDeviceRows); a rented preset reads ORDERED, an own-VPS MEASURED.app/tests/e2e/journey.v2-fleet.spec.ts— variant A (rented gateway + one added rented device) as the full 16-leg drive (v2-walk → access-rent → bench-add-device → place-across-machines → placement-saved-and-resumes → build-it → gateway-live → device-reach/enrol/deploy → finish-after-devices → hand-off-fleet → nothing-waited → release), with teardown releasing every box (releaseOnTeardown/dropletExistsByTag+ a doctl reap of the added device by IP).scripts/smoke-private-path.sh— av2-fleettarget (allowlist +uses_droplet_machinery+ a dual-box teardown that releases the rented gateway and reaps the added device bydevice-ip.txt, reusing the provenoc_rented_cleanup+ rented-device belt), pinned byscripts/tests/rehearsal-v2-fleet-target-test.sh(4 checks).Proof:
vue-tsc -p tsconfig.json --noEmit+ eslint clean;playwright --listcollects the spec (1 drive + 2 honest fixmes);rehearsal-v2-fleet-target-test.sh(4) +rehearsal-rented-target-test.sh(25) green;bash -nOK;foundingFleet.test.ts8/8.Two findings that need a ruling
--target rentedpremise is incompatible with the harness. Spec selection is derivational (drive_spec="journey.$target.spec.ts"), so--target rentedcan only ever drivejourney.rented.spec.ts. I adopted a default under ADR 0174: the drive is--target v2-fleet(its own target, its own spec). Veto if you'd rather fold it differently.device-fails-gateway-stands) contradicts GOTCHAS #220. The ticket says "rent the added device into a region the snapshot does not span (GOTCHAS #220 makes this deterministic)" — but #220's own rule makes an out-of-span region a claim-stage refusal the founding picker never offers (offer.regions= the snapshot's own span; syd1 alone today, so the picker often doesn't render). So an out-of-span region can't be selected through the UI to drive adevice:*:reachfailure. A deterministic device-reach failure needs a broker device-fault hook — the twin of the gatewayrehearsal-rentfailslug — which is a broker (Go) + deploy change, out of this drive's scope. Filed as a follow-up (see below). Leg 14 is carried as an honesttest.fixmenaming exactly this.Why this is NOT closed
This is a live drive (#377 — no sandbox-green claim): the acceptance bar is a GREEN with eyeballed screenshots over the real helper + live broker + DO + KVM, ~1–2 h, two boxes. A one-shot unattended session cannot run that (ADR 0174 rule 7 — no background work survives the final message), so the live green is the executor-rail frontier, not this session's to produce. Left
ready-for-session.Remaining work (the next session's list)
--target v2-fleetdrive on a KVM+broker+DO host (variant A) and eyeball it green.addOwnVpsDeviceOnBench+ the takeover assert); it needs a real own-VPS carrier box (OC_E2E_OWN_VPS_IP, like the droplet drive's) + its reap wired into teardown.Finding 2 (leg 14 broker device-fault hook) filed as #1473. Leg 14 is carried as a
test.fixmeinjourney.v2-fleet.spec.tspointing there. Ticket staysready-for-session: the remaining work is the live executor-rail drive (variant A), #1473 (leg 14), and variant B's own-VPS carrier — none runnable in a one-shot unattended session.Ruling — the v2-fleet authoring is DONE and sound; the remaining Destination is a SPEND one-way door →
ready-for-human(advances #1451)Ruled by agent under ADR 0174 — veto anytime. Session on
bens-mac-04; the swarm claim (run=3493590) landed this ticket here.What this session found (re-verified the prior session's landing on
origin/main)The two-way-door software deliverable is already on
origin/mainin4fba9862(fixtures + spec +v2-fleetharness target). I re-ran its offline proofs on this host and they are green:app/tests/e2e/fixtures/foundingFleet.test.ts— 8/8 (the pure sequencing: the added machine'sdevice:*rows splice beforefinish; rented preset → ORDERED, own-VPS → MEASURED).scripts/tests/rehearsal-v2-fleet-target-test.sh— 4/4 (--target v2-fleetaccepted + joins droplet machinery,--driverefused beside it, founding slug claimed not the standing one).bash -n scripts/smoke-private-path.sh— OK.So the authoring is sound. Nothing in it is broken and there is no additional two-way-door software increment left on this ticket.
Why this is not
ready-for-session(the prior routing) butready-for-humanThe ticket's Destination — "Build it unattended, both live on the hand-off" — is a LIVE GREEN two-machine drive. By design that is the executor-rail frontier's job (
scripts/rehearsal-executor.shdrives targets armed intoREHEARSAL_DRIVE_QUEUEby an operator; STATUS.md records the live green as "the executor-rail frontier"), not a one-shot session. Running it means renting two real droplets (rented gateway + an added rented device) for ~1–2h on a drive that has never run live before. That is non-routine spend — a one-way door under ADR 0174 rule 2 — and unbounded for a session that dies with its final message (rule 7). A one-shotready-for-sessionagent cannot honestly take it; only an operator can arm the spend.## Why humanExactly one residue needs Ben's ruling — the spend to arm the live green:
target: v2-fleetbody marker toREHEARSAL_DRIVE_QUEUEsorehearsal-executor.shfiressmoke-private-path.sh --target v2-fleetlive. This rents two boxes per fire; teardown reaps both (releaseOnTeardown+ the device-ip reap already wired into the target). Operator spend decision — nothing else blocks it.Two further items are already tracked and are not this ticket's residue (noted for completeness):
2. Variant B (own-VPS takeover) — carried as an honest
test.fixme; needs a pre-provisioned own-VPS carrier box handed in asOC_E2E_OWN_VPS_IP(this target's harness rents only variant A's box).3. Leg 14 (device-fails-gateway-stands) — carried as
test.fixme, blocked on the broker device-fault hook filed as #1473 (a Go/broker change; GOTCHAS #220 makes the ticket's "out-of-span region" a claim-stage refusal the picker never offers, so a deterministic device-reach red needs the broker twin of the rented rentfail slug).No commit this session (the software is already landed and proven; STATUS.md already carries the row). Two-way part complete; the one-way spend part is handed to a human per ADR 0174.
Leg list updated by #1595 — the v2-fleet variant-A drive (
journey.v2-fleet.spec.ts) gains a docs-editing REMOVAL tail, inserted BEFORE thereleaseleg (release tears both boxes down, so the removal must be proven while they are alive). Two newrunRecordedLeglegs, each with its own<name>-dash.pngframe (theinstallLegCapturedashRef getter now flows here):sign-in— the Services tab lives in the control-panel SPA atadmin.<apex>, not the Electron app, so the drive reaches it via the sharedsignInOperator(the warm ceremony page is thedash; the kanidm heading wearscommunityNameForSlug(slug), the #1115 slug-steered precedent).uninstall-from-card-docs-editing— the reused #1590uninstallServiceFromCardwalker on a MEMBER DEVICE placement (leg 4 placeddocs-editingon the added machine), then IN THE SAME LEG (the #1351 pattern, #1591's scoped ordering) the on-the-box proof: on the member devicecoolwsdreadsLoadState=not-foundthrough the gateway relay (thedocs-editing.nixmodule left the box); on the gateway front doordocs-editing.<apex>now answers the unserved-host catch-all 404 (the address leg 11 proved answering) whilefiles.<apex>still answers (only the WOPI coupling was switched off — #1589).So the drive's live green bar now names
… nothing-waited → sign-in → uninstall-from-card-docs-editing → release. Authored + seam-proven under #1595 (harness pins infixtures/docsEditingRemoval.test.ts); the two legs' live green rides #1451's next live fire (the KVM + live broker + DO executor frontier), not claimed here.Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.