founding Go: the own-VPS stand-up RE-USES what selection proved, and v2 stops measuring the laptop's line #1414

Closed
opened 2026-09-12 04:47:35 +00:00 by ben · 5 comments
Owner

Why

DDR 0240: a device proves itself where it is CHOSEN. Once the connect happens at selection (#1413), the own-VPS stand-up must stop re-discovering the box, and the S4b laptop measurement must stop existing on the v2 walk.

What to change

  1. ownvpspath.go's connect leg re-uses what selection proved. The leg stays (the host key must be re-learned across the takeover reboot — RotateHostKey, #438), but the takeover-ready network facts, the hardware and the scraped authorized_keys are already on the draft from #1413. The leg verifies the box is still the box it connected to (same host key) and proceeds; it does not re-derive facts, and a box that has changed identity between selection and build is a named red, not a silent overwrite.
  2. UseOwnVPS stops being the whole own-VPS story. It records the address; connect-device records the proof. An Access choice with an address but no facts must not reach Build it.
  3. RunPreCheck / ConfirmSelfHosted are superseded on v2. DDR 0139's "will the community machine use this same internet connection?" fork and its verdict-unknown third outcome go with the question — there is no wrong network to ask about once the machine is on the other end of a live connection. v1 keeps them: FoundingAccess.vue is shared, and v1 has no Connect section to move the measurement to, so the skip is currently gated behind a deviceChecksLater prop that only v2 passes.
  4. When v1 retires, delete the S4b view, the prop, RunPreCheck, ConfirmSelfHosted, and p1-s4b-connection-pre-check.html (already marked retired-for-v2 in its provenance block).

Acceptance criteria

  • AC1 — an own-VPS build re-uses the selection facts; the drive's connect row says it verified rather than discovered, and the leg budget does not grow.
  • AC2 — a box whose host key changed between selection and Build it reds that device's rows by name, with a remedy, and does not silently re-pin.
  • AC3 — the v2 walk never calls pre-check; the v1 walk still does, unchanged.
  • AC4 — no path can reach Build it with an own-VPS address that was never connected.

Contract

DDR 0240 decisions 1–4 and its Consequences; ADR 0152 (shape A, unchanged in substance — only the moment moves).

## Why DDR 0240: a device proves itself where it is CHOSEN. Once the connect happens at selection (#1413), the own-VPS stand-up must stop re-discovering the box, and the S4b laptop measurement must stop existing on the v2 walk. ## What to change 1. **`ownvpspath.go`'s `connect` leg re-uses what selection proved.** The leg stays (the host key must be re-learned across the takeover reboot — `RotateHostKey`, #438), but the takeover-ready network facts, the hardware and the scraped `authorized_keys` are already on the draft from #1413. The leg verifies the box is still the box it connected to (same host key) and proceeds; it does not re-derive facts, and a box that has changed identity between selection and build is a named red, not a silent overwrite. 2. **`UseOwnVPS` stops being the whole own-VPS story.** It records the address; `connect-device` records the proof. An Access choice with an address but no facts must not reach Build it. 3. **`RunPreCheck` / `ConfirmSelfHosted` are superseded on v2.** DDR 0139's "will the community machine use this same internet connection?" fork and its `verdict-unknown` third outcome go with the question — there is no wrong network to ask about once the machine is on the other end of a live connection. v1 keeps them: `FoundingAccess.vue` is shared, and v1 has no Connect section to move the measurement to, so the skip is currently gated behind a `deviceChecksLater` prop that only v2 passes. 4. **When v1 retires, delete the S4b view, the prop, `RunPreCheck`, `ConfirmSelfHosted`, and `p1-s4b-connection-pre-check.html`** (already marked retired-for-v2 in its provenance block). ## Acceptance criteria - AC1 — an own-VPS build re-uses the selection facts; the drive's connect row says it verified rather than discovered, and the leg budget does not grow. - AC2 — a box whose host key changed between selection and Build it reds that device's rows by name, with a remedy, and does not silently re-pin. - AC3 — the v2 walk never calls `pre-check`; the v1 walk still does, unchanged. - AC4 — no path can reach Build it with an own-VPS address that was never connected. ## Contract DDR 0240 decisions 1–4 and its Consequences; ADR 0152 (shape A, unchanged in substance — only the moment moves).

This was generated by AI during triage.

Triage Notes

Routing: needs-design (missing-design gate).

What we've established:

  • This issue's stated Contract names DDR 0240 / DDR 0241 as the decisions it builds against, and cites them by decision number in the body and acceptance criteria.
  • Those DDRs do not exist in docs/adr/ — the highest-numbered record is 0239-design-the-coa-first-founding-branch-and-the-bring-it-home-walk.md, and no doc in the repo even references 0240/0241. The design-tier contract the agent would build against hasn't been produced yet.
  • Related sibling #1413 (which this work depends on / is paired with) is itself needs-design; #1391 and #1392 are closed/merged.

Why needs-design, not ready-for-agent: the design-to-agent missing-design gate routes any issue whose referenced design contract (flow / wireframe / seam / design DDR) is missing or unconfirmed back to the design tier (grill-ux-with-docs / wireframe / DDR authoring) for this feature before implementation. The acceptance criteria here are anchored to specific DDR decisions, so an agent cannot build against them until 0240/0241 land.

This is a deterministic gate check, not an ADR 0174 judgement call — fully revertible by relabelling once the DDRs are written and confirmed. No human residue.

To unblock: author DDR 0240 and DDR 0241 (the founding-v2 device-plan / selection-proves-the-device decisions), then relabel for the normal pipeline.

> *This was generated by AI during triage.* ## Triage Notes **Routing: `needs-design` (missing-design gate).** **What we've established:** - This issue's stated **Contract** names **DDR 0240 / DDR 0241** as the decisions it builds against, and cites them by decision number in the body and acceptance criteria. - Those DDRs **do not exist** in `docs/adr/` — the highest-numbered record is `0239-design-the-coa-first-founding-branch-and-the-bring-it-home-walk.md`, and no doc in the repo even references 0240/0241. The design-tier contract the agent would build against hasn't been produced yet. - Related sibling **#1413** (which this work depends on / is paired with) is itself `needs-design`; #1391 and #1392 are closed/merged. **Why `needs-design`, not `ready-for-agent`:** the design-to-agent missing-design gate routes any issue whose referenced design contract (flow / wireframe / seam / design DDR) is missing or unconfirmed back to the design tier (`grill-ux-with-docs` / `wireframe` / DDR authoring) for this feature before implementation. The acceptance criteria here are anchored to specific DDR decisions, so an agent cannot build against them until 0240/0241 land. This is a deterministic gate check, not an ADR 0174 judgement call — fully revertible by relabelling once the DDRs are written and confirmed. No human residue. **To unblock:** author DDR 0240 and DDR 0241 (the founding-v2 device-plan / selection-proves-the-device decisions), then relabel for the normal pipeline.
Author
Owner

Build reference

  • FoundingAccess.vue:340-341: on v2 (device-checks-later) the self-hosted choice
    calls confirm-self-hosted(true) WITHOUT any measurement, and access.go:612-624
    then records "A machine at your place — connection checked, can accept visitors".
    Nothing was checked. New AC5: on v2 the self-hosted record says the check is
    pending until check-device passes (either ConfirmSelfHosted gains a
    checks_later param that writes "checked when the machine connects", or a new
    choose-self-hosted op); the summary flips to "checks passed" when
    Access.ChecksPassed lands. sectionResponse('connect') in foundingStack.ts already
    reads facts/checksPassed for the row.
  • AC4's gate lives in preview.go:152 CreateCommunity: refuse (ErrIncompleteDraft,
    named) an own-VPS or self-hosted Access with no Facts / ChecksPassed:false, and a
    plan with an unconnected non-rented machine (#1416).
  • AC1/AC2 live in ownvpspath.go:398 (the connect leg): compare facts.SSHHostKey to
    Access.Facts.HostKey; a mismatch is a resumableFault naming the key.

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 - `FoundingAccess.vue:340-341`: on v2 (`device-checks-later`) the self-hosted choice calls `confirm-self-hosted(true)` WITHOUT any measurement, and `access.go:612-624` then records *"A machine at your place — connection checked, can accept visitors"*. Nothing was checked. New **AC5**: on v2 the self-hosted record says the check is pending until `check-device` passes (either `ConfirmSelfHosted` gains a `checks_later` param that writes "checked when the machine connects", or a new `choose-self-hosted` op); the summary flips to "checks passed" when `Access.ChecksPassed` lands. `sectionResponse('connect')` in `foundingStack.ts` already reads `facts`/`checksPassed` for the row. - AC4's gate lives in `preview.go:152 CreateCommunity`: refuse (ErrIncompleteDraft, named) an own-VPS or self-hosted Access with no `Facts` / `ChecksPassed:false`, and a plan with an unconnected non-rented machine (#1416). - AC1/AC2 live in `ownvpspath.go:398` (the connect leg): compare `facts.SSHHostKey` to `Access.Facts.HostKey`; a mismatch is a `resumableFault` naming the key. ## 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=22608
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22608 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1414 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1414,
  "status": "success",
  "commits": [
    "eb8cd94eab9d0f5676fee55ec5041c0be5a7e28a"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingAccess.vue",
    "app/src/i18n/founding/g9.standup.en.ts",
    "app/src/i18n/founding/g9.standup.es.ts",
    "app/src/i18n/founding/g9.standup.fr.ts",
    "app/src/i18n/founding/g9.standup.nl.ts",
    "app/src/lib/founding.ts",
    "app/tests/unit/foundingAccessAddress.test.ts",
    "internal/founding/access.go",
    "internal/founding/access_test.go",
    "internal/founding/export_test.go",
    "internal/founding/manualpath_test.go",
    "internal/founding/orchestrator_test.go",
    "internal/founding/ownvpspath.go",
    "internal/founding/ownvpspath_test.go",
    "internal/founding/preview.go",
    "internal/founding/stdio.go",
    "internal/founding/stdio_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "app: node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "app: node_modules/.bin/vitest run tests/unit/founding*.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "AC1 — an own-VPS build re-uses the selection facts; the drive's connect row says it verified rather than discovered, and the leg budget does not grow": "internal/founding/ownvpspath.go connect leg now verifies selectionHostKey and logs the founding.standup.ownVps.verified 're-using its checked facts' event instead of 'learned'; one Connect call. Proven by TestOwnVPS_ConnectLegVerifiesSelectionFactsNotRediscover (asserts the event says 'verified', not 'learned', and carrier.Connected==1).",
    "AC2 — a box whose host key changed between selection and Build it reds that device's rows by name, with a remedy, and does not silently re-pin": "ownvpspath.go: a hostKeyFingerprint mismatch vs Access.Facts.HostKey is a resumableFault naming both keys with a re-drive remedy and returns before RotateHostKey. Proven by TestOwnVPS_ChangedHostKeyBetweenSelectionAndBuildRedsByName (resumable fault names 'SSH host key' + 're-drive', connect row failed, carrier.Rotated empty).",
    "AC3 — the v2 walk never calls pre-check; the v1 walk still does, unchanged": "FoundingAccess.vue v2 (deviceChecksLater) self-hosted branch now drives choose-self-hosted (never runPreCheck); v1 ConfirmSelfHosted + RunPreCheck left byte-unchanged. Proven by the app test 'the v2 self-hosted choice records the place with the check pending' (ops contains choose-self-hosted, not pre-check/confirm-self-hosted) and the still-green v1 Story7 access tests.",
    "AC4 — no path can reach Build it with an own-VPS address that was never connected": "preview.go CreateCommunity refuses (ErrIncompleteDraft, 'this server was never connected') an own-VPS Access with an IP but no Facts. Proven by TestCreateCommunity_OwnVPSNeverConnectedIsRefused.",
    "AC5 (ben) — on v2 the self-hosted record says the check is pending until check-device passes; the summary flips to checks passed when Access.ChecksPassed lands": "New ChooseSelfHosted op records 'A machine at your place — checked when the machine connects' (never the false v1 'connection checked'); foundingStack sectionResponse('connect') already flips the connect row to 'checks passed' once check-device lands ChecksPassed. Proven by TestChooseSelfHosted_RecordsPendingCheckNotFalseVerified + TestHandle_ChooseSelfHosted."
  },
  "summary": "The own-VPS stand-up re-uses and verifies what selection proved (DDR 0240), Build it refuses an unconnected own-VPS address, and the v2 self-hosted edge records an honest pending check instead of measuring the laptop's line.",
  "blockers": []
}
**close-report** for #1414 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1414, "status": "success", "commits": [ "eb8cd94eab9d0f5676fee55ec5041c0be5a7e28a" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingAccess.vue", "app/src/i18n/founding/g9.standup.en.ts", "app/src/i18n/founding/g9.standup.es.ts", "app/src/i18n/founding/g9.standup.fr.ts", "app/src/i18n/founding/g9.standup.nl.ts", "app/src/lib/founding.ts", "app/tests/unit/foundingAccessAddress.test.ts", "internal/founding/access.go", "internal/founding/access_test.go", "internal/founding/export_test.go", "internal/founding/manualpath_test.go", "internal/founding/orchestrator_test.go", "internal/founding/ownvpspath.go", "internal/founding/ownvpspath_test.go", "internal/founding/preview.go", "internal/founding/stdio.go", "internal/founding/stdio_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/founding/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/founding/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "app: node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "app: node_modules/.bin/vitest run tests/unit/founding*.test.ts", "exit_code": 0 } ], "criteria": { "AC1 — an own-VPS build re-uses the selection facts; the drive's connect row says it verified rather than discovered, and the leg budget does not grow": "internal/founding/ownvpspath.go connect leg now verifies selectionHostKey and logs the founding.standup.ownVps.verified 're-using its checked facts' event instead of 'learned'; one Connect call. Proven by TestOwnVPS_ConnectLegVerifiesSelectionFactsNotRediscover (asserts the event says 'verified', not 'learned', and carrier.Connected==1).", "AC2 — a box whose host key changed between selection and Build it reds that device's rows by name, with a remedy, and does not silently re-pin": "ownvpspath.go: a hostKeyFingerprint mismatch vs Access.Facts.HostKey is a resumableFault naming both keys with a re-drive remedy and returns before RotateHostKey. Proven by TestOwnVPS_ChangedHostKeyBetweenSelectionAndBuildRedsByName (resumable fault names 'SSH host key' + 're-drive', connect row failed, carrier.Rotated empty).", "AC3 — the v2 walk never calls pre-check; the v1 walk still does, unchanged": "FoundingAccess.vue v2 (deviceChecksLater) self-hosted branch now drives choose-self-hosted (never runPreCheck); v1 ConfirmSelfHosted + RunPreCheck left byte-unchanged. Proven by the app test 'the v2 self-hosted choice records the place with the check pending' (ops contains choose-self-hosted, not pre-check/confirm-self-hosted) and the still-green v1 Story7 access tests.", "AC4 — no path can reach Build it with an own-VPS address that was never connected": "preview.go CreateCommunity refuses (ErrIncompleteDraft, 'this server was never connected') an own-VPS Access with an IP but no Facts. Proven by TestCreateCommunity_OwnVPSNeverConnectedIsRefused.", "AC5 (ben) — on v2 the self-hosted record says the check is pending until check-device passes; the summary flips to checks passed when Access.ChecksPassed lands": "New ChooseSelfHosted op records 'A machine at your place — checked when the machine connects' (never the false v1 'connection checked'); foundingStack sectionResponse('connect') already flips the connect row to 'checks passed' once check-device lands ChecksPassed. Proven by TestChooseSelfHosted_RecordsPendingCheckNotFalseVerified + TestHandle_ChooseSelfHosted." }, "summary": "The own-VPS stand-up re-uses and verifies what selection proved (DDR 0240), Build it refuses an unconnected own-VPS address, and the v2 self-hosted edge records an honest pending check instead of measuring the laptop's line.", "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#1414
No description provided.