founding seam + Go: CONNECT and PRE-CHECK a device where it is chosen — the four ops have no live half #1413

Closed
opened 2026-09-12 04:46:43 +00:00 by ben · 6 comments
Owner

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, branch founding-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, records AccessChoice{Kind: own-vps, IP: ip} and advances. Nothing touches the box. The first packet is the stand-up worker's connect leg (ownvpspath.go), four screens and a commitment later.
  • Orchestrator.RunPreCheck takes 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 through stdio.go:

  1. connect-device — {ip, user?, device?} → ConnectResult{ok, link, facts?, error?, remedy?, dial_in?}. Calls the existing OwnVPSCarrier.Connect (ADR 0152's seam, already written and tested) at SELECTION rather than at stand-up. A refused box returns ok:false with 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.
  2. 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.
  3. await-dial-in — {code} → DialInStatus{state: waiting|connected, facts?}. One poll; the renderer polls at ~1.2s.
  4. 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. A fail blocks; a warn does 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 on Draft.Access (facts, checks_passed); an added machine's land on its PlacementDevice (#1391), flipping mem_source to measured.

Acceptance criteria

  • AC1 — connect-device against a reachable box returns its real facts; the same call against an unreachable one returns ok:false with a remedy and a dial_in, and leaves the draft untouched.
  • AC2 — the facts land on the draft and survive a resume (against the bridge, not the fake).
  • AC3 — check-device measures 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.
  • AC4 — offer-dial-in mints a single-use, expiring, revocable code (ADR 0054); await-dial-in returns waiting until the machine pairs and never hangs.
  • AC5 — the TS BridgeFoundingClient methods (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 (the data-field/data-action/data-status names the built component emits); flow docs/ux/flows/p1-founding.mermaid S4d.

## 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`, branch `founding-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, records `AccessChoice{Kind: own-vps, IP: ip}` and advances. Nothing touches the box. The first packet is the stand-up worker's `connect` leg (`ownvpspath.go`), four screens and a commitment later. - `Orchestrator.RunPreCheck` takes 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 through `stdio.go`: 1. `connect-device` — `{ip, user?, device?}` → `ConnectResult{ok, link, facts?, error?, remedy?, dial_in?}`. Calls the existing `OwnVPSCarrier.Connect` (ADR 0152's seam, already written and tested) at SELECTION rather than at stand-up. A refused box returns `ok:false` with 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. 2. `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. 3. `await-dial-in` — `{code}` → `DialInStatus{state: waiting|connected, facts?}`. One poll; the renderer polls at ~1.2s. 4. `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. A `fail` blocks; a `warn` does 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 on `Draft.Access` (`facts`, `checks_passed`); an added machine's land on its `PlacementDevice` (#1391), flipping `mem_source` to `measured`. ## Acceptance criteria - AC1 — `connect-device` against a reachable box returns its real facts; the same call against an unreachable one returns `ok:false` with a remedy and a `dial_in`, and leaves the draft untouched. - AC2 — the facts land on the draft and survive a resume (against the bridge, not the fake). - AC3 — `check-device` measures 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. - AC4 — `offer-dial-in` mints a single-use, expiring, revocable code (ADR 0054); `await-dial-in` returns `waiting` until the machine pairs and never hangs. - AC5 — the TS `BridgeFoundingClient` methods (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` (the `data-field`/`data-action`/`data-status` names the built component emits); flow `docs/ux/flows/p1-founding.mermaid` S4d.

This was generated by AI during triage.

Triage Notes

Category: enhancement. State: needs-design (missing-design gate).

What we've established:

  • The Go half of the four SELECTION-time ops (connect-device, offer-dial-in, await-dial-in, check-device) genuinely does not exist in internal/founding — confirmed the v2 renderer (app/src/components/founding/FoundingConnectDevice.vue, app/src/lib/founding.ts) lives only on branch founding-ui-two-colour-rail-ceremony and every op fails at the bridge's op switch. This is net-new work, not already implemented on main.
  • The reused seam it builds on — OwnVPSCarrier.Connect (ADR 0152) — exists. ADRs 0054, 0015, 0100, 0139 all exist. Not the blocker.

Why needs-design, not ready-for-agent: the design contract the agent would build against is not in the repo:

  • DDR 0240 does not exist. The whole spec rests on "DDR 0240 (Ben's ruling 2026-09-11) decisions 1–6", but the highest DDR/ADR on main is 0239. The ruling has not been written up.
  • Wireframe docs/ux/wireframes/p1-founding/p1-s4d-connect-the-gateway.html does not exist — that folder holds only p1-s4b-connection-pre-check.html. The issue names it as the source of the data-field/data-action/data-status contract the built component emits.
  • Flow node S4d does not exist in 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 to wireframe / 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 to ready-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.

> *This was generated by AI during triage.* ## Triage Notes **Category:** enhancement. **State:** `needs-design` (missing-design gate). **What we've established:** - The Go half of the four SELECTION-time ops (`connect-device`, `offer-dial-in`, `await-dial-in`, `check-device`) genuinely does not exist in `internal/founding` — confirmed the v2 renderer (`app/src/components/founding/FoundingConnectDevice.vue`, `app/src/lib/founding.ts`) lives only on branch `founding-ui-two-colour-rail-ceremony` and every op fails at the bridge's op switch. This is net-new work, not already implemented on `main`. - The reused seam it builds on — `OwnVPSCarrier.Connect` (ADR 0152) — exists. ADRs 0054, 0015, 0100, 0139 all exist. Not the blocker. **Why `needs-design`, not `ready-for-agent`:** the design contract the agent would build against is not in the repo: - **DDR 0240 does not exist.** The whole spec rests on "DDR 0240 (Ben's ruling 2026-09-11) decisions 1–6", but the highest DDR/ADR on `main` is 0239. The ruling has not been written up. - **Wireframe `docs/ux/wireframes/p1-founding/p1-s4d-connect-the-gateway.html` does not exist** — that folder holds only `p1-s4b-connection-pre-check.html`. The issue names it as the source of the `data-field`/`data-action`/`data-status` contract the built component emits. - **Flow node S4d does not exist** in `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 to `wireframe` / 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 to `ready-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.
Author
Owner

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 on
founding-ui-two-colour-rail-ceremony; once merged, needs-design comes off (triage's
gate ran against main).

  • Component: app/src/components/founding/FoundingConnectDevice.vue — doors decided by
    place (own-vps → dial-out first, self-hosted → dial-in first, rented/private →
    none and the section is skipped by foundingStack.ts sectionApplies). The dialog
    mounts it embedded with device=<name> and continueLabel.
  • Executable spec: 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 from OwnVPSCarrier.Connect's
    CarrierFacts (Probe.OS/Arch/CPUCores/MemBytes/DiskBytes, SSHHostKey →
    fingerprint) — the same carrier (internal/fleetwire/carrier.go:117), called at
    SELECTION. ok:false carries remedy + dial_in (mint the code right there) and
    records 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 off ProbeReport); never blocks.
  • check-device {device?} → Response.device_checks: {checks:[{key,label,state, detail}], passed} with keys reachable, visitors, memory, disk:
    visitors = the outside-in Reachability.Probe (standup.go:111) against the
    device's public IP (CarrierFacts.Network.Address on dial-out; the agent's
    NetworkFacts on dial-in) — CGNAT is the one fail; memory warn below the
    role's SpecFloor; disk from Probe.DiskBytes. passed = no fail (ADR 0015).

Where the facts LAND

  • No device → the gateway: Draft.Access.Facts + Draft.Access.ChecksPassed
    (new fields on AccessChoice, draft.go:159), and GatewayMemMB overwritten by
    mem_mb (the bench measures against the machine, DDR 0240 decision 5). The v2
    journey re-reads the draft with resume right 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 an
    id yet — the bench mints dev-N at add time), and joined into the plan by
    save-placement (#1416). validatePlacement must 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-only
OC_E2E_DROPLET_IP (WithSelfHostedBoxAddress). The built dial-in door shows a
command + code and nothing else — the helper cannot open the forward.

Proposed default: offer-dial-in takes {device?, address?}; the dial-in door
gains "the machine's address on your network" (the same [data-action="device-address"]
field the dial-out door has) and ensureRelay opens 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 06105d24 and the founding-page replacement on founding-ui-two-colour-rail-ceremony)

  • The page IS the founding surface: AppShell.vue mounts FoundingPage.vue; the wizard is deleted. No env switch — there is one surface.
  • The FAKE is the executable spec for the Go half: FakeFoundingClient in app/src/lib/founding.ts — connectDevice (a refusal registers the device for its dial-in code and records nothing; a correction typed on Connect replaces access.ip), offerDialIn / awaitDialIn (waiting | connected | expired), checkDevice, savePlacement (PlacementDevice now carries place, ip, preset, region, memSource: 'ordered' | 'measured'), deviceSnapshots() (every carrier splices device:<id>:reach|enrol|deploy before finish; deviceFailsAt reds ONE machine's row and leaves the gateway's standing).
  • The hand-off's per-machine state is read off the stand-up's rows (FoundingStandup.vue fleetAsBuilt): a machine is live only when its device:<id>:deploy row is done, else WAITING with no doors.
  • Unit tests that pin the contract: tests/unit/foundingConnectDevice.test.ts, foundingBuildFleet.test.ts, foundingPage.test.ts, foundingHandOff.test.ts.

Label

needs-design stays until founding-ui-two-colour-rail-ceremony merges to main: the DDRs, the frames and the TS half this ticket builds against live on that branch, and a swarm worker builds from main. At the merge, flip to ready-for-agent — nothing else gates it.

## 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 on `founding-ui-two-colour-rail-ceremony`; once merged, `needs-design` comes off (triage's gate ran against main). - Component: `app/src/components/founding/FoundingConnectDevice.vue` — doors decided by `place` (`own-vps` → dial-out first, `self-hosted` → dial-in first, rented/private → `none` and the section is skipped by `foundingStack.ts sectionApplies`). The dialog mounts it `embedded` with `device=<name>` and `continueLabel`. - Executable spec: `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 from `OwnVPSCarrier.Connect`'s `CarrierFacts` (`Probe.OS/Arch/CPUCores/MemBytes/DiskBytes`, `SSHHostKey` → fingerprint) — the same carrier (`internal/fleetwire/carrier.go:117`), called at SELECTION. `ok:false` carries `remedy` + `dial_in` (mint the code right there) and records 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 off `ProbeReport`); never blocks. - `check-device` `{device?}` → `Response.device_checks: {checks:[{key,label,state, detail}], passed}` with keys `reachable`, `visitors`, `memory`, `disk`: `visitors` = the outside-in `Reachability.Probe` (`standup.go:111`) against the device's public IP (`CarrierFacts.Network.Address` on dial-out; the agent's `NetworkFacts` on dial-in) — CGNAT is the one `fail`; `memory` `warn` below the role's `SpecFloor`; `disk` from `Probe.DiskBytes`. `passed` = no `fail` (ADR 0015). ## Where the facts LAND - No `device` → the gateway: `Draft.Access.Facts` + `Draft.Access.ChecksPassed` (new fields on `AccessChoice`, `draft.go:159`), and `GatewayMemMB` overwritten by `mem_mb` (the bench measures against the machine, DDR 0240 decision 5). The v2 journey re-reads the draft with `resume` right 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 an id yet — the bench mints `dev-N` at add time), and joined into the plan by `save-placement` (#1416). `validatePlacement` must 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-only `OC_E2E_DROPLET_IP` (`WithSelfHostedBoxAddress`). The built dial-in door shows a command + code and nothing else — the helper cannot open the forward. **Proposed default:** `offer-dial-in` takes `{device?, address?}`; the dial-in door gains "the machine's address on your network" (the same `[data-action="device-address"]` field the dial-out door has) and `ensureRelay` opens 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 `06105d24` and the founding-page replacement on `founding-ui-two-colour-rail-ceremony`) - The page IS the founding surface: `AppShell.vue` mounts `FoundingPage.vue`; the wizard is deleted. No env switch — there is one surface. - The FAKE is the executable spec for the Go half: `FakeFoundingClient` in `app/src/lib/founding.ts` — `connectDevice` (a refusal registers the device for its dial-in code and records nothing; a correction typed on Connect replaces `access.ip`), `offerDialIn` / `awaitDialIn` (`waiting | connected | expired`), `checkDevice`, `savePlacement` (`PlacementDevice` now carries `place`, `ip`, `preset`, `region`, `memSource: 'ordered' | 'measured'`), `deviceSnapshots()` (every carrier splices `device:<id>:reach|enrol|deploy` before `finish`; `deviceFailsAt` reds ONE machine's row and leaves the gateway's standing). - The hand-off's per-machine state is read off the stand-up's rows (`FoundingStandup.vue` `fleetAsBuilt`): a machine is `live` only when its `device:<id>:deploy` row is done, else WAITING with no doors. - Unit tests that pin the contract: `tests/unit/foundingConnectDevice.test.ts`, `foundingBuildFleet.test.ts`, `foundingPage.test.ts`, `foundingHandOff.test.ts`. ## Label `needs-design` stays until `founding-ui-two-colour-rail-ceremony` merges to `main`: the DDRs, the frames and the TS half this ticket builds against live on that branch, and a swarm worker builds from `main`. At the merge, flip to `ready-for-agent` — nothing else gates it.
Author
Owner

The branch merged to main (fcf1c5b2): DDR 0240/0241, the S4d/S1c frames and the built TS half are on main now, so needs-design comes off and this is ready-for-agent — gated only by its native dependencies.

The branch merged to `main` (`fcf1c5b2`): DDR 0240/0241, the S4d/S1c frames and the built TS half are on `main` now, so `needs-design` comes off and this is `ready-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=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)

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
{
  "issue": 1413,
  "status": "success",
  "commits": [
    "a2168f60ba6be7f8496b927469038633d053957a"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/founding/connectcheck.go",
    "internal/founding/connectcheck_test.go",
    "internal/founding/draft.go",
    "internal/founding/orchestrator.go",
    "internal/founding/placement.go",
    "internal/founding/placement_test.go",
    "internal/founding/stdio.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/founding/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "AC1 — connect-device reachable returns real facts; unreachable returns ok:false with a remedy and a dial_in and leaves the draft untouched": "internal/founding/connectcheck.go ConnectDevice (dial-out via OwnVPSCarrier.Connect; a Connect error mints the dial-in door and records nothing); tests TestHandle_ConnectDevice_ReachableLandsFactsAndResumes and TestHandle_ConnectDevice_UnreachableOffersDialInAndRecordsNothing (the latter asserts Facts nil, GatewayMemMB 0, IP unchanged on a fresh orchestrator)",
    "AC2 — the facts land on the draft and survive a resume (against the bridge, not the fake)": "AccessChoice.Facts/.ChecksPassed added in draft.go (with clone deep-copy); landConnected commits via mutate; TestHandle_ConnectDevice_ReachableLandsFactsAndResumes resumes on a FRESH founding.New(store) and finds Access.Facts.MemMB=16384 and GatewayMemMB=16384",
    "AC3 — check-device measures the CONNECTED device, not the host the app runs on; a CGNAT verdict on the device blocks": "connectcheck.go CheckDevice runs the visitors check via Reachability.Probe against the device's own public IP (Access.IP / dial-in NetworkFacts); test TestHandle_CheckDevice_MeasuresConnectedDevice asserts the probe target is the device IP (203.0.113.10) and that reach.Unreachable=true fails the visitors check and blocks (passed=false, checksPassed=false on the draft)",
    "AC4 — offer-dial-in mints a single-use, expiring, revocable code; await-dial-in returns waiting until the machine pairs and never hangs": "connectcheck.go OfferDialIn (enroll.MintCode, TTL dialInTTL) + AwaitDialIn (one List{Pending} poll, waiting→connected, returns immediately); test TestHandle_OfferAndAwaitDialIn drives redeem+pair between polls (waiting then connected with the probe's facts) and asserts the code is revocable via ledger.RevokeCode",
    "AC5 — the TS BridgeFoundingClient methods succeed end to end against the real helper": "the four ops wired through stdio.go (OpConnectDevice/OpOfferDialIn/OpAwaitDialIn/OpCheckDevice + Response.Connect/DialIn/DialInStatus/DeviceChecks with snake tags the wireMapping camel-maps to connect/dialIn/dialInStatus/deviceChecks); every connectcheck_test.go case drives Orchestrator.Handle — the exact dispatch ServeStdio runs — so the round-trip the BridgeFoundingClient sees is proven at the bridge"
  },
  "summary": "Built the Go half of DDR 0240's four SELECTION-time connect-before-check ops (connect-device, offer-dial-in, await-dial-in, check-device), wired through the stdio bridge, with the gateway's facts/checks landing on the resumable draft.",
  "reason": "",
  "blockers": []
}
**close-report** for #1413 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1413, "status": "success", "commits": [ "a2168f60ba6be7f8496b927469038633d053957a" ], "changed_files": [ "STATUS.md", "internal/founding/connectcheck.go", "internal/founding/connectcheck_test.go", "internal/founding/draft.go", "internal/founding/orchestrator.go", "internal/founding/placement.go", "internal/founding/placement_test.go", "internal/founding/stdio.go" ], "tests": [ { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/founding/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/founding/...", "exit_code": 0 } ], "criteria": { "AC1 — connect-device reachable returns real facts; unreachable returns ok:false with a remedy and a dial_in and leaves the draft untouched": "internal/founding/connectcheck.go ConnectDevice (dial-out via OwnVPSCarrier.Connect; a Connect error mints the dial-in door and records nothing); tests TestHandle_ConnectDevice_ReachableLandsFactsAndResumes and TestHandle_ConnectDevice_UnreachableOffersDialInAndRecordsNothing (the latter asserts Facts nil, GatewayMemMB 0, IP unchanged on a fresh orchestrator)", "AC2 — the facts land on the draft and survive a resume (against the bridge, not the fake)": "AccessChoice.Facts/.ChecksPassed added in draft.go (with clone deep-copy); landConnected commits via mutate; TestHandle_ConnectDevice_ReachableLandsFactsAndResumes resumes on a FRESH founding.New(store) and finds Access.Facts.MemMB=16384 and GatewayMemMB=16384", "AC3 — check-device measures the CONNECTED device, not the host the app runs on; a CGNAT verdict on the device blocks": "connectcheck.go CheckDevice runs the visitors check via Reachability.Probe against the device's own public IP (Access.IP / dial-in NetworkFacts); test TestHandle_CheckDevice_MeasuresConnectedDevice asserts the probe target is the device IP (203.0.113.10) and that reach.Unreachable=true fails the visitors check and blocks (passed=false, checksPassed=false on the draft)", "AC4 — offer-dial-in mints a single-use, expiring, revocable code; await-dial-in returns waiting until the machine pairs and never hangs": "connectcheck.go OfferDialIn (enroll.MintCode, TTL dialInTTL) + AwaitDialIn (one List{Pending} poll, waiting→connected, returns immediately); test TestHandle_OfferAndAwaitDialIn drives redeem+pair between polls (waiting then connected with the probe's facts) and asserts the code is revocable via ledger.RevokeCode", "AC5 — the TS BridgeFoundingClient methods succeed end to end against the real helper": "the four ops wired through stdio.go (OpConnectDevice/OpOfferDialIn/OpAwaitDialIn/OpCheckDevice + Response.Connect/DialIn/DialInStatus/DeviceChecks with snake tags the wireMapping camel-maps to connect/dialIn/dialInStatus/deviceChecks); every connectcheck_test.go case drives Orchestrator.Handle — the exact dispatch ServeStdio runs — so the round-trip the BridgeFoundingClient sees is proven at the bridge" }, "summary": "Built the Go half of DDR 0240's four SELECTION-time connect-before-check ops (connect-device, offer-dial-in, await-dial-in, check-device), wired through the stdio bridge, with the gateway's facts/checks landing on the resumable draft.", "reason": "", "blockers": [] } ``` </details>
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#1413
No description provided.