founding seam + Go: CONNECT and PRE-CHECK a device where it is chosen — the four ops have no live half #1413
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.
Blocks
Reference
Matou/idss#1413
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?
What is missing
DDR 0240 (Ben's ruling 2026-09-11) moved the connect and the pre-check to the screen where a device is CHOSEN. The v2 renderer is built and drives four seam ops against the TS fake —
connect-device,offer-dial-in,await-dial-in,check-device(app/src/lib/founding.ts,app/src/components/founding/FoundingConnectDevice.vue, branchfounding-ui-two-colour-rail-ceremony). The Go half does not exist. Against the bridge every one of them fails at the op switch.Today the two operator-supplied paths take the operator's word:
Orchestrator.UseOwnVPS(internal/founding/access.go) trims the address, refuses only an empty one, recordsAccessChoice{Kind: own-vps, IP: ip}and advances. Nothing touches the box. The first packet is the stand-up worker'sconnectleg (ownvpspath.go), four screens and a commitment later.Orchestrator.RunPreChecktakes no device and measures the line the APP is on — its own comment says so. DDR 0139 made that honest in copy, not in fact.What to build
Four ops in
internal/founding, wired throughstdio.go:connect-device—{ip, user?, device?}→ConnectResult{ok, link, facts?, error?, remedy?, dial_in?}. Calls the existingOwnVPSCarrier.Connect(ADR 0152's seam, already written and tested) at SELECTION rather than at stand-up. A refused box returnsok:falsewith a remedy and the dial-in door — Ben's ruling: if VPS dial-out doesn't work then tell the user to try CLI dial-in. It must never return a thrown error for an unreachable box, and it must record nothing on a refusal.offer-dial-in—{device?}→DialIn{code, command, expires_in}. Mints the enrollment code (ADR 0054) and its one-line install command; the same code serves the app's join-with-a-code door.await-dial-in—{code}→DialInStatus{state: waiting|connected, facts?}. One poll; the renderer polls at ~1.2s.check-device—{device?}→DeviceChecks{checks[], passed}. The pre-checks run on the connected device: it answers, visitors can reach it (CGNAT the one blocking case), enough memory, enough room on disk. Afailblocks; awarndoes not (ADR 0015).DeviceFacts{host, os, arch, cores, mem_mb, disk_gb, host_key}is every field a REAL read off the machine — nothing invented, nothing borrowed from a rental offer's preset (ADR 0100). The gateway's facts land onDraft.Access(facts,checks_passed); an added machine's land on itsPlacementDevice(#1391), flippingmem_sourcetomeasured.Acceptance criteria
connect-deviceagainst a reachable box returns its real facts; the same call against an unreachable one returnsok:falsewith a remedy and adial_in, and leaves the draft untouched.check-devicemeasures the CONNECTED device, not the host the app runs on. A CGNAT verdict on the device blocks; the same verdict about the app's own line does not appear anywhere.offer-dial-inmints a single-use, expiring, revocable code (ADR 0054);await-dial-inreturnswaitinguntil the machine pairs and never hangs.BridgeFoundingClientmethods (already written) succeed end to end against the real helper.Contract
DDR 0240 decisions 1–6; wireframe
docs/ux/wireframes/p1-founding/p1-s4d-connect-the-gateway.html(thedata-field/data-action/data-statusnames the built component emits); flowdocs/ux/flows/p1-founding.mermaidS4d.Triage Notes
Category: enhancement. State:
needs-design(missing-design gate).What we've established:
connect-device,offer-dial-in,await-dial-in,check-device) genuinely does not exist ininternal/founding— confirmed the v2 renderer (app/src/components/founding/FoundingConnectDevice.vue,app/src/lib/founding.ts) lives only on branchfounding-ui-two-colour-rail-ceremonyand every op fails at the bridge's op switch. This is net-new work, not already implemented onmain.OwnVPSCarrier.Connect(ADR 0152) — exists. ADRs 0054, 0015, 0100, 0139 all exist. Not the blocker.Why
needs-design, notready-for-agent: the design contract the agent would build against is not in the repo:mainis 0239. The ruling has not been written up.docs/ux/wireframes/p1-founding/p1-s4d-connect-the-gateway.htmldoes not exist — that folder holds onlyp1-s4b-connection-pre-check.html. The issue names it as the source of thedata-field/data-action/data-statuscontract the built component emits.docs/ux/flows/p1-founding.mermaid— the flow has S4b, not S4d.Per the design-to-agent system's missing-design gate (
docs/agents/triage-labels.md,docs/PROCESS.md), this routes back towireframe/ the DDR write-up for the p1-founding S4d screen before an agent can build against it. Once DDR 0240 is recorded and the S4d flow node + wireframe land, re-triage toready-for-agent(the acceptance criteria here are otherwise concrete and driveable).Not
ready-for-human: nothing here is a one-way door — the residue is a missing design artifact, which is the design tier's job, not Ben's hands/eyes.Build reference — the design is built; the fake is the executable spec
DDR 0240 (accepted) + wireframes
p1-s4d-connect-the-gateway.html/p2-s1c-connect-and-check.html+ flow nodes S4d/S1c are onfounding-ui-two-colour-rail-ceremony; once merged,needs-designcomes off (triage'sgate ran against main).
app/src/components/founding/FoundingConnectDevice.vue— doors decided byplace(own-vps→ dial-out first,self-hosted→ dial-in first, rented/private →noneand the section is skipped byfoundingStack.ts sectionApplies). The dialogmounts it
embeddedwithdevice=<name>andcontinueLabel.FakeFoundingClient.connectDevice / offerDialIn / awaitDialIn / checkDevice / landFacts / mintDialIn(app/src/lib/founding.ts:3305-3428).Wire shapes (camel ↔ snake through the bridge)
connect-device{ip, user?, device?}→Response.connect: {ok, link:"dial-out", facts?, error?, remedy?, dial_in?};facts = {host:"root@<ip>", os, arch, cores, mem_mb, disk_gb, host_key}— every field fromOwnVPSCarrier.Connect'sCarrierFacts(Probe.OS/Arch/CPUCores/MemBytes/DiskBytes,SSHHostKey→fingerprint) — the same carrier (
internal/fleetwire/carrier.go:117), called atSELECTION.
ok:falsecarriesremedy+dial_in(mint the code right there) andrecords NOTHING. A thrown error is only for a broken seam, never an unreachable box.
offer-dial-in{device?}→Response.dial_in: {code, command, expires_in}—enroll.MintCode(manualpath.go:206, role gateway for the community's own box,helper for an added one) +
installCommand(code).await-dial-in{code}→Response.dial_in_status: {state:"waiting"|"connected", facts?}— one poll of the ledger for the code's request (redeemed + probe present →connected, facts offProbeReport); never blocks.check-device{device?}→Response.device_checks: {checks:[{key,label,state, detail}], passed}with keysreachable,visitors,memory,disk:visitors= the outside-inReachability.Probe(standup.go:111) against thedevice's public IP (
CarrierFacts.Network.Addresson dial-out; the agent'sNetworkFactson dial-in) — CGNAT is the onefail;memorywarnbelow therole's
SpecFloor;diskfromProbe.DiskBytes.passed= nofail(ADR 0015).Where the facts LAND
device→ the gateway:Draft.Access.Facts+Draft.Access.ChecksPassed(new fields on
AccessChoice,draft.go:159), andGatewayMemMBoverwritten bymem_mb(the bench measures against the machine, DDR 0240 decision 5). The v2journey re-reads the draft with
resumeright after (FoundingJourney.vue onConnected), so the landing must be committed, not in-memory.device=<name>→ held on the orchestrator keyed by NAME (the dialog does not have anid yet — the bench mints
dev-Nat add time), and joined into the plan bysave-placement(#1416).validatePlacementmust refuse two machines with one name.One residue — the dial-in TRANSPORT before a community exists (proposed default ruling, ADR 0174)
The box has no control plane to call before the gateway exists; ADR 0181 ruled the
self-hosted founding enrolment rides an SSH remote-forward the helper opens TO the box
(
relaycarrier.go), and today the box address comes from the drive-onlyOC_E2E_DROPLET_IP(WithSelfHostedBoxAddress). The built dial-in door shows acommand + code and nothing else — the helper cannot open the forward.
Proposed default:
offer-dial-intakes{device?, address?}; the dial-in doorgains "the machine's address on your network" (the same
[data-action="device-address"]field the dial-out door has) and
ensureRelayopens the forward to it. Two-way:revertible if a broker rendezvous replaces the relay later. Ben vetoes async.
What this session already did (2026-09-12, commits
06105d24and the founding-page replacement onfounding-ui-two-colour-rail-ceremony)AppShell.vuemountsFoundingPage.vue; the wizard is deleted. No env switch — there is one surface.FakeFoundingClientinapp/src/lib/founding.ts—connectDevice(a refusal registers the device for its dial-in code and records nothing; a correction typed on Connect replacesaccess.ip),offerDialIn/awaitDialIn(waiting | connected | expired),checkDevice,savePlacement(PlacementDevicenow carriesplace,ip,preset,region,memSource: 'ordered' | 'measured'),deviceSnapshots()(every carrier splicesdevice:<id>:reach|enrol|deploybeforefinish;deviceFailsAtreds ONE machine's row and leaves the gateway's standing).FoundingStandup.vuefleetAsBuilt): a machine isliveonly when itsdevice:<id>:deployrow is done, else WAITING with no doors.tests/unit/foundingConnectDevice.test.ts,foundingBuildFleet.test.ts,foundingPage.test.ts,foundingHandOff.test.ts.Label
needs-designstays untilfounding-ui-two-colour-rail-ceremonymerges tomain: the DDRs, the frames and the TS half this ticket builds against live on that branch, and a swarm worker builds frommain. At the merge, flip toready-for-agent— nothing else gates it.The branch merged to
main(fcf1c5b2): DDR 0240/0241, the S4d/S1c frames and the built TS half are onmainnow, soneeds-designcomes off and this isready-for-agent— gated only by its native dependencies.swarm-claim host=matou-dev-server-01 run=22593
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=22596
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1413 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope