founding e2e: the founding page's UI CONTRACT drive — the whole walk on the preview harness against the fake, by leg list #1449

Open
opened 2026-09-12 15:55:19 +00:00 by ben · 1 comment
Owner

What it proves

The v2 process's UI CONTRACT — every data-action/data-field/data-status the Go
tickets build against — driven on founding.html (pnpm e2e:preview,
playwright.preview.config.ts, :5199) with a pageerror/console.error listener
(GOTCHAS #225: a blank harness is a thrown render). Recorded by LEG LIST
(fixtures/legs.ts runRecordedLeg, legs.json), never by one green. Scenarios are
steered through window.__founding.client (cgnat, rentFailure, deployFails,
ownVPSConnectRefused, and T1's deviceFails).

Legs (each a named record; a skip is a NAMED skip)

  1. start — [data-action="start"] → [data-status="founding-journey"],
    [data-field="section"] = Community info.
  2. identity — details, brand, sign-in, address: the four sections advance;
    [data-status="subdomain-taken"] on a taken slug (takenSlugs).
  3. services — [data-action="pick-service"] ×2; memory line updates; Continue.
  4. access-rent-choice — [data-action="option:rented"], [data-action="preset:<slug>"],
    [data-action="region"], [data-action="rent"]; the list row for connect reads
    "Arrives ready — rented when you build it" and the Connect section is NOT shown
    (sectionApplies). Variant: [data-action="option:private"] → same skip, row "This
    computer", address row "Not used — private community".
  5. connect-dial-out — own-VPS walk: [data-action="use-own-vps"] with 203.0.113.9
    → [data-status="connect-device"], [data-field="dial-out"], [data-action="device-address"]
    prefilled, [data-action="device-user"] = root → [data-status="connected"],
    [data-field="device-facts"], [data-field="device-memory"] = 8 GB,
    [data-field="host-key"].
  6. connect-refused-offers-dial-in — address 192.168.1.50 → [data-field="connect-error"]
    with the remedy, [data-action="use-dial-in"] present; click → [data-field="dial-in"],
    [data-field="install-command"] contains the code in [data-field="enrollment-code"],
    [data-action="copy-command"]; [data-action="use-dial-out"] returns to the first door.
    Assert the draft recorded nothing (client.draftState.access.facts undefined).
  7. dial-in-waits-then-connects — self-hosted walk: [data-status="waiting-for-device"]
    for ≥2 polls, then [data-status="connected"] with the dial-in facts (16 GB).
  8. checks-on-device — [data-field="device-checks"], [data-check="reachable|visitors|memory|disk"]
    each [data-status="pass"], [data-status="checks-passed"], [data-action="continue"] enabled.
  9. cgnat-blocks-continue — client.cgnat = true → [data-check="visitors"][data-status="fail"],
    [data-status="checks-failed"], [data-action="continue"] DISABLED; Back works.
  10. facts-reach-the-bench — after leg 5/8: the list row reads "root@… — checks passed";
    [data-field="device-card"] [data-field="device-memory"] has no
    data-status="unmeasured" and shows the measured 8 GB, not the offer's preset.
  11. bench-tap-and-return — click [data-field="bench"] [data-service="files"] → it
    lands on the next device with room; click [data-action="unplace-service"] → back
    in the pool; [data-field="no-room"] on an over-ceiling tap.
  12. add-device-rented — [data-action="add-a-device"] → [data-field="device-place"]
    [data-action="option:rented"] → [data-field="device-rent"] [data-action="device-name"],
    [data-action="preset:<slug>"], [data-action="add-device"] → a second
    [data-field="device-card"] with the preset's size.
  13. add-device-own-vps-connects — option:own-vps → [data-field="device-own-vps"]
    device-name/device-address → [data-action="connect-next"] → the embedded connect
    (leg 5 selectors, continueLabel "Add to plan") → the card joins MEASURED.
  14. add-device-self-hosted-dials-in — option:self-hosted → device-location →
    connect-next → dial-in (leg 7) → card joins.
  15. placement-saved — Continue → client.ops last is save-placement;
    client.draftState.placement.devices.length = 3, where has every chosen slug.
  16. confirm-reads-back — [data-status="founding-confirm"], [data-field="confirm-identity"],
    one [data-field="confirm-device"] per machine with its services;
    [data-field="confirm-unplaced"] absent.
  17. build-it — [data-action="build"] → [data-status="founding-deploy"]; the rail carries
    device:<id>:reach|enrol|deploy rows for each extra machine BEFORE finish.
  18. deploy-fails-honestly — client.deployFails = true → the failed row + recovery.
  19. hand-off-fleet — [data-status="hand-off"], [data-field="alive"] says "… digital
    sovereignty stack is now live", [data-action="open-your-dashboard"],
    [data-action="open-members-portal"][disabled], [data-field="fleet-device"] ×3,
    [data-field="service-card"] under the right device, [data-field="product-site"]
    href = catalogue productUrl, [data-action="open-service"]. After T1:
    client.deviceFails = '<name>' → that card [data-status] failed, no RUNNING pills.
  20. resume-lands-where-it-left — reload (harness mirrors the draft) mid-walk → same
    section; the reached high-water mark is not lowered by a look-back.

Failure branches it MUST exercise

dial-out refused → dial-in offered on the same screen (6); pre-check red blocks
Continue (9); an extra machine's rows red without redding the gateway's (T1 knob, 19);
rent refused stays on the card (rentFailure, [data-status="rent-error"]).

Legs added by the review fixes (2026-09-12)

  1. dial-in-expires — steer client.awaitDialIn to answer {state:'expired'} → [data-status="dial-in-expired"], the poll STOPS (no further await-dial-in ops), [data-action="new-code"] mints a fresh code.
  2. recheck — client.cgnat = true → [data-status="checks-failed"]; set false, [data-action="recheck"] → [data-status="checks-passed"] without leaving the screen.
  3. added-vps-dial-in-lands-on-itself — add an own-VPS device with 192.168.1.50, fall back to dial-in: after the call-in client.draftState.access.facts is still undefined (the gateway record is untouched).
  4. takeover-named-at-selection — [data-field="takeover-note"] on S4d and in the dialog's own-VPS form; [data-field="takeover"] on the Confirm card of an added VPS.
  5. device-fails-gateway-stands — client.deviceFailsAt = 'dev-1' before Build it → device:dev-1:deploy red with its fault, connect/control-plane done, finish todo; the hand-off (after T1) shows the card WAITING with no doors.
  6. s6a-gates-build — on the IDIP path Build it raises [data-status="recovery-phrase"] and create-community has NOT fired; the three-word confirm unlocks it.
  7. boot-resume-on-created — reload with a created draft → [data-status="founding-deploy"], no [data-action="start"].
## What it proves The v2 process's UI CONTRACT — every `data-action`/`data-field`/`data-status` the Go tickets build against — driven on `founding.html` (`pnpm e2e:preview`, `playwright.preview.config.ts`, :5199) with a `pageerror`/`console.error` listener (GOTCHAS #225: a blank harness is a thrown render). Recorded by LEG LIST (`fixtures/legs.ts` `runRecordedLeg`, `legs.json`), never by one green. Scenarios are steered through `window.__founding.client` (`cgnat`, `rentFailure`, `deployFails`, `ownVPSConnectRefused`, and T1's `deviceFails`). ## Legs (each a named record; a skip is a NAMED skip) 1. `start` — `[data-action="start"]` → `[data-status="founding-journey"]`, `[data-field="section"]` = Community info. 2. `identity` — details, brand, sign-in, address: the four sections advance; `[data-status="subdomain-taken"]` on a taken slug (`takenSlugs`). 3. `services` — `[data-action="pick-service"]` ×2; memory line updates; Continue. 4. `access-rent-choice` — `[data-action="option:rented"]`, `[data-action="preset:<slug>"]`, `[data-action="region"]`, `[data-action="rent"]`; the list row for `connect` reads "Arrives ready — rented when you build it" and the Connect section is NOT shown (`sectionApplies`). Variant: `[data-action="option:private"]` → same skip, row "This computer", address row "Not used — private community". 5. `connect-dial-out` — own-VPS walk: `[data-action="use-own-vps"]` with `203.0.113.9` → `[data-status="connect-device"]`, `[data-field="dial-out"]`, `[data-action="device-address"]` prefilled, `[data-action="device-user"]` = root → `[data-status="connected"]`, `[data-field="device-facts"]`, `[data-field="device-memory"]` = 8 GB, `[data-field="host-key"]`. 6. `connect-refused-offers-dial-in` — address `192.168.1.50` → `[data-field="connect-error"]` with the remedy, `[data-action="use-dial-in"]` present; click → `[data-field="dial-in"]`, `[data-field="install-command"]` contains the code in `[data-field="enrollment-code"]`, `[data-action="copy-command"]`; `[data-action="use-dial-out"]` returns to the first door. Assert the draft recorded nothing (`client.draftState.access.facts` undefined). 7. `dial-in-waits-then-connects` — self-hosted walk: `[data-status="waiting-for-device"]` for ≥2 polls, then `[data-status="connected"]` with the dial-in facts (16 GB). 8. `checks-on-device` — `[data-field="device-checks"]`, `[data-check="reachable|visitors|memory|disk"]` each `[data-status="pass"]`, `[data-status="checks-passed"]`, `[data-action="continue"]` enabled. 9. `cgnat-blocks-continue` — `client.cgnat = true` → `[data-check="visitors"][data-status="fail"]`, `[data-status="checks-failed"]`, `[data-action="continue"]` DISABLED; Back works. 10. `facts-reach-the-bench` — after leg 5/8: the list row reads "root@… — checks passed"; `[data-field="device-card"] [data-field="device-memory"]` has no `data-status="unmeasured"` and shows the measured 8 GB, not the offer's preset. 11. `bench-tap-and-return` — click `[data-field="bench"] [data-service="files"]` → it lands on the next device with room; click `[data-action="unplace-service"]` → back in the pool; `[data-field="no-room"]` on an over-ceiling tap. 12. `add-device-rented` — `[data-action="add-a-device"]` → `[data-field="device-place"]` `[data-action="option:rented"]` → `[data-field="device-rent"]` `[data-action="device-name"]`, `[data-action="preset:<slug>"]`, `[data-action="add-device"]` → a second `[data-field="device-card"]` with the preset's size. 13. `add-device-own-vps-connects` — `option:own-vps` → `[data-field="device-own-vps"]` `device-name`/`device-address` → `[data-action="connect-next"]` → the embedded connect (leg 5 selectors, `continueLabel` "Add to plan") → the card joins MEASURED. 14. `add-device-self-hosted-dials-in` — `option:self-hosted` → `device-location` → connect-next → dial-in (leg 7) → card joins. 15. `placement-saved` — Continue → `client.ops` last is `save-placement`; `client.draftState.placement.devices.length` = 3, `where` has every chosen slug. 16. `confirm-reads-back` — `[data-status="founding-confirm"]`, `[data-field="confirm-identity"]`, one `[data-field="confirm-device"]` per machine with its services; `[data-field="confirm-unplaced"]` absent. 17. `build-it` — `[data-action="build"]` → `[data-status="founding-deploy"]`; the rail carries `device:<id>:reach|enrol|deploy` rows for each extra machine BEFORE `finish`. 18. `deploy-fails-honestly` — `client.deployFails = true` → the failed row + recovery. 19. `hand-off-fleet` — `[data-status="hand-off"]`, `[data-field="alive"]` says "… digital sovereignty stack is now live", `[data-action="open-your-dashboard"]`, `[data-action="open-members-portal"][disabled]`, `[data-field="fleet-device"]` ×3, `[data-field="service-card"]` under the right device, `[data-field="product-site"]` href = catalogue `productUrl`, `[data-action="open-service"]`. After T1: `client.deviceFails = '<name>'` → that card `[data-status]` failed, no RUNNING pills. 20. `resume-lands-where-it-left` — reload (harness mirrors the draft) mid-walk → same section; the reached high-water mark is not lowered by a look-back. ## Failure branches it MUST exercise dial-out refused → dial-in offered on the same screen (6); pre-check red blocks Continue (9); an extra machine's rows red without redding the gateway's (T1 knob, 19); rent refused stays on the card (`rentFailure`, `[data-status="rent-error"]`). ## Legs added by the review fixes (2026-09-12) 21. `dial-in-expires` — steer `client.awaitDialIn` to answer `{state:'expired'}` → `[data-status="dial-in-expired"]`, the poll STOPS (no further `await-dial-in` ops), `[data-action="new-code"]` mints a fresh code. 22. `recheck` — `client.cgnat = true` → `[data-status="checks-failed"]`; set false, `[data-action="recheck"]` → `[data-status="checks-passed"]` without leaving the screen. 23. `added-vps-dial-in-lands-on-itself` — add an own-VPS device with `192.168.1.50`, fall back to dial-in: after the call-in `client.draftState.access.facts` is still undefined (the gateway record is untouched). 24. `takeover-named-at-selection` — `[data-field="takeover-note"]` on S4d and in the dialog's own-VPS form; `[data-field="takeover"]` on the Confirm card of an added VPS. 25. `device-fails-gateway-stands` — `client.deviceFailsAt = 'dev-1'` before Build it → `device:dev-1:deploy` red with its fault, `connect`/`control-plane` done, `finish` todo; the hand-off (after T1) shows the card WAITING with no doors. 26. `s6a-gates-build` — on the IDIP path Build it raises `[data-status="recovery-phrase"]` and `create-community` has NOT fired; the three-word confirm unlocks it. 27. `boot-resume-on-created` — reload with a `created` draft → `[data-status="founding-deploy"]`, no `[data-action="start"]`.

Ruled by agent under ADR 0174 — veto anytime

Routing: ready-for-session → needs-design. This drive cannot be authored yet — the v2 walk it asserts a contract over is unbuilt, and its own upstream features are still needs-design.

What I checked (the proof)

This ticket is the UI-CONTRACT drive for the whole v2 founding walk. Its data-* vocabulary is a proposed target contract, not the one the page renders today. Grepping app/src/ for the ticket's distinctive selectors:

  • Zero occurrences: founding-journey, connect-device, use-dial-in, founding-confirm, founding-deploy, device-checks, data-check, fleet-device, checks-passed, checks-failed, dial-in-expired.
  • Even leg 1 reds: the page renders [data-status="founding-v2-journey"] (not founding-journey) and a [data-action] that is start/build dynamically (FoundingV2Page.vue:403). [data-field="section"] is the only leg-1 selector that exists (FoundingV2Journey.vue:65).

What the v2 page actually is today (per STATUS 2026-09-11): a landing page that draws the stack, walks the Identity layer's five sections on v1's forms + the Services catalogue + device placement, treats the stack list as the review, and Builds. The walk this ticket drives — Access/rent choice, connect (dial-out/dial-in), device pre-checks, the bench, add-a-device, confirm read-back, the deploy rail with per-device rows, and the hand-off fleet — has no rendered UI.

Why this is needs-design, not a two-way-door I can just do

The features whose selectors this drive asserts are themselves not designed yet:

  • #1413 — CONNECT + PRE-CHECK a device where it is chosen (connect-device, device-checks; legs 5–9, 13–14) — needs-design
  • #1414 — own-VPS stand-up re-uses what selection proved (facts-reach-the-bench; leg 10) — needs-design
  • #1415 — device-add dialog connects + pre-checks (add-device-own-vps/self-hosted; legs 13–14) — needs-design
  • #1416 — device plan carries each machine's PLACE + CONNECT FACTS (save-placement; leg 15) — needs-design
  • #1417 — BUILD IT provisions the whole plan / deploy rail per-device rows (legs 17–18, 25) — needs-design
  • #1448 — hand-off names the FLEET from the seam (leg 19) — ready-for-agent

Per the triage-labels doc, needs-design is exactly "the design tier hasn't produced (or the human gate hasn't confirmed) the contract the agent would build against." That is this ticket: the confirmed data-* contract is a design output of #1413–#1417, which are still needs-design.

I did not author a 27-leg skip-only drive against the missing UI: a journey that "passes" by silently skipping every leg is the exact failure mode the driver contract (docs/agents/e2e-driver-contract.md clause 2) makes unrepresentable, and building the whole walk to green is a multi-feature product effort, not this ticket's scope (which presumes the contract exists) nor a single standing session's two-way-door work.

What proves the ruling / how to revert

Revertible: a label change. Proven by the grep above (contract absent) and the tracker state of #1413–#1417 (upstream un-designed). Recorded depends_on blocking edges to the walk's building blocks so the blockage is machine-visible. When #1413–#1417 + #1448 land and the confirmed contract is in the page, drop needs-design and re-add ready-for-session — the leg list here is ready to drive at that point.

## Ruled by agent under ADR 0174 — veto anytime **Routing: `ready-for-session` → `needs-design`. This drive cannot be authored yet — the v2 walk it asserts a contract over is unbuilt, and its own upstream features are still `needs-design`.** ### What I checked (the proof) This ticket is the UI-CONTRACT drive for the **whole** v2 founding walk. Its `data-*` vocabulary is a *proposed target* contract, not the one the page renders today. Grepping `app/src/` for the ticket's distinctive selectors: - **Zero occurrences**: `founding-journey`, `connect-device`, `use-dial-in`, `founding-confirm`, `founding-deploy`, `device-checks`, `data-check`, `fleet-device`, `checks-passed`, `checks-failed`, `dial-in-expired`. - Even **leg 1 reds**: the page renders `[data-status="founding-v2-journey"]` (not `founding-journey`) and a `[data-action]` that is `start`/`build` dynamically (`FoundingV2Page.vue:403`). `[data-field="section"]` is the only leg-1 selector that exists (`FoundingV2Journey.vue:65`). What the v2 page actually is today (per STATUS 2026-09-11): a landing page that draws the stack, walks the **Identity** layer's five sections on v1's forms + the Services catalogue + device placement, treats the stack list as the review, and Builds. The walk this ticket drives — Access/rent choice, **connect** (dial-out/dial-in), **device pre-checks**, the **bench**, **add-a-device**, **confirm read-back**, the **deploy rail** with per-device rows, and the **hand-off fleet** — has no rendered UI. ### Why this is `needs-design`, not a two-way-door I can just do The features whose selectors this drive asserts are themselves not designed yet: - #1413 — CONNECT + PRE-CHECK a device where it is chosen (`connect-device`, `device-checks`; legs 5–9, 13–14) — **needs-design** - #1414 — own-VPS stand-up re-uses what selection proved (`facts-reach-the-bench`; leg 10) — **needs-design** - #1415 — device-add dialog connects + pre-checks (`add-device-own-vps/self-hosted`; legs 13–14) — **needs-design** - #1416 — device plan carries each machine's PLACE + CONNECT FACTS (`save-placement`; leg 15) — **needs-design** - #1417 — BUILD IT provisions the whole plan / deploy rail per-device rows (legs 17–18, 25) — **needs-design** - #1448 — hand-off names the FLEET from the seam (leg 19) — ready-for-agent Per the triage-labels doc, `needs-design` is exactly *"the design tier hasn't produced (or the human gate hasn't confirmed) the contract the agent would build against."* That is this ticket: the confirmed `data-*` contract is a design output of #1413–#1417, which are still `needs-design`. I did **not** author a 27-leg skip-only drive against the missing UI: a journey that "passes" by silently skipping every leg is the exact failure mode the driver contract (`docs/agents/e2e-driver-contract.md` clause 2) makes unrepresentable, and building the whole walk to green is a multi-feature product effort, not this ticket's scope (which presumes the contract exists) nor a single standing session's two-way-door work. ### What proves the ruling / how to revert Revertible: a label change. Proven by the grep above (contract absent) and the tracker state of #1413–#1417 (upstream un-designed). Recorded `depends_on` blocking edges to the walk's building blocks so the blockage is machine-visible. When #1413–#1417 + #1448 land and the confirmed contract is in the page, drop `needs-design` and re-add `ready-for-session` — the leg list here is ready to drive at that point.
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#1449
No description provided.