S4 access → own VPS: droplet drive walks Access before Address, stale since d2f310c4 #1463

Closed
opened 2026-09-14 13:09:19 +00:00 by matou-build-agent · 3 comments

The failure

journey.droplet.spec.ts red at step S4 access → own VPS, 33 s after start. No legs ran at all — the drive died inside the wizard walk, upstream of the first recorded leg.

artifacts/verdict.json
  "firstRedLeg": "<no legs ran>",
  "legs": { "total": 0, "green": 0, "red": 0, "skip": 0 }
artifacts/legs.json
  []

The Playwright error (artifacts/journey.droplet-…/error-context.md):

TimeoutError: page.click: Timeout 30000ms exceeded.
Call log:
  - waiting for locator('[data-action="option:rented"]')

thrown at app/tests/e2e/fixtures/wizard.ts:254, inside s4AccessOwnVPS.

What the page was actually showing

The snapshot in error-context.md has the app parked on Address, still inside Identity, with its primary button never pressed:

- heading "Address" [level=3]
- radio "e2e-drive.idss.nz …" [checked]
- button "Reserve e2e-drive.idss.nz"

and every downstream section still locked:

- button "Service catalogue" [disabled]
- button "Access" [disabled]
- button "Connect the gateway" [disabled]

[data-action="option:rented"] is not on that screen. It is the "where will it live" card — docs/ux/wireframes/p2-device-add-cli/p2-s1a-where-will-it-live.html:24 — which sits behind the disabled Access section. The click could never have landed.

The defect — the drive walks the pre-reorder order

The stack table puts Address before Access. app/src/lib/foundingStack.ts:

:69   { key: 'address', label: 'Address', step: 'address' },   // Identity
:78   key: 'service-catalogue',                                // Services
:100  { key: 'access', label: 'Access', step: 'access' },      // Infrastructure

The fixtures already know this — wizard.ts:153-155, closing s3aIdentity:

// The walk is the STACK TABLE's order (foundingStack.ts): after the sign-in
// method comes Address, still inside Identity; Access waits in Infrastructure.
await expect(live.page.locator('[data-status="address"]')).toBeVisible();

But the droplet drive still calls the old S4→S5 sequence — journey.droplet.spec.ts:276-278:

await s3BrandKit(live);          // → s3aIdentity → lands on [data-status="address"]
await s4AccessOwnVPS(live, ip);  // clicks option:rented — Access is disabled
await s5AddressSubdomain(live, slug);

The reorder landed in d2f310c4 (2026-09-11, "a device PROVES ITSELF where it is chosen", DDR 0240), which also added servicesToAccess (wizard.ts:180) and s4dConnectOwnVPS (wizard.ts:196). Neither helper is imported by any spec — journey.droplet.spec.ts:55-66 imports only s4AccessOwnVPS and s5AddressSubdomain. The droplet drive was never migrated onto the new walk; its last touch is 4c79ddcd (2026-09-12), an unrelated Portal change.

Suspected layer — harness

The product is self-consistent; the drive script is stale. Infra is innocent, and I confirmed that on the live box (170.64.165.74, still up, ssh accepted):

ss -tlnp        → only sshd:22 and systemd-resolved:53
cat /etc/os-release → PRETTY_NAME="Ubuntu 24.04.4 LTS"
ls /nix         → No such file or directory
systemctl --failed → (empty)

A pristine DigitalOcean image: nothing deployed, no Nix store, no failed units — exactly right for a drive that never left the wizard. The harvested logs corroborate: logs/droplet-units.txt shows the same sshd-only ss and Unit nginx.service could not be found; logs/droplet-keri.txt shows Unit keria.service could not be found and the witness probe curl: (7) Failed to connect to 127.0.0.1 port 5642. Those are consequences of the box never being deployed to, not causes. logs/droplet-do-forensics.txt records a clean create with no DO-side interference (create … completed 13:04:08, ping 0% loss, tcp/22: a FRESH connect succeeded).

Absent, and all explained by the early death: artifacts/journey.json is {"rows": null, "fault": null} (founding never began); logs/helper.log is empty; state/logs and state/clan-config never existed (no config repo … — nothing to snapshot (a drive that never built one)). Two absences are not evidence of this failure: logs/broker-journal.txt is an off-mesh harvest refusal (dev@100.98.48.68: Permission denied (publickey), by-design per #681/ADR 0208, verdict does not depend on it), and host.json's qemu: exit ENOENT is the VM-target probe, irrelevant on a droplet drive.

This is NOT the known frontier

The named KNOWN frontier is pairing-never-flips (the own-VPS carrier issue). It sits far downstream and was never reached. legs.json is [] — this drive recorded no legs and therefore no skip reasons at all, so nothing here is declared out of scope by the drive's own records. This is a new red, strictly earlier than the frontier, and it masks it entirely.

What plugging it needs

Rewrite the droplet drive's walk into stack-table order at journey.droplet.spec.ts:277-278:

await s5AddressSubdomain(live, slug);  // Identity: Reserve <slug>.idss.nz
await servicesToAccess(live);          // Services: catalogue → Access
await s4AccessOwnVPS(live, ip);        // Infrastructure: option:rented → use-own-vps
await s4dConnectOwnVPS(live);          // S4d: connect + checks on the box (DDR 0240)

and add servicesToAccess + s4dConnectOwnVPS to the import block at :55-66.

Two adjacent staleness points to settle in the same change:

  1. s5AddressSubdomain asserts it lands on [data-status="section-brief"] (wizard.ts:453) — that was the post-claim walk under the old order, where Address was the last screen before Review. Now that Address sits mid-Identity, confirm what it actually advances to.
  2. reviewAndCreate(live, 'connect-own-vps') at :281 presumes the pre-DDR-0240 landing, while s4dConnectOwnVPS now expects connect-device → connected → checks-passed before the bench and Confirm. Same stale-order class.

Also worth sweeping: journey.selfhosted.spec.ts and journey.idip.spec.ts are likely red the same way — s4AccessSelfHosted still asserts it lands on [data-status="address"] (wizard.ts:283), an ordering the same commit invalidated.

drive 20260914T130316Z red at wizard: drive red at wizard — the wizard died before any leg ran
evidence: /home/swarm/session-runner/idss/test-results/drive-droplet/20260914T130316Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `journey.droplet.spec.ts` red at step `S4 access → own VPS`, 33 s after start. **No legs ran at all** — the drive died inside the wizard walk, upstream of the first recorded leg. ``` artifacts/verdict.json "firstRedLeg": "<no legs ran>", "legs": { "total": 0, "green": 0, "red": 0, "skip": 0 } artifacts/legs.json [] ``` The Playwright error (`artifacts/journey.droplet-…/error-context.md`): ``` TimeoutError: page.click: Timeout 30000ms exceeded. Call log: - waiting for locator('[data-action="option:rented"]') ``` thrown at `app/tests/e2e/fixtures/wizard.ts:254`, inside `s4AccessOwnVPS`. ## What the page was actually showing The snapshot in `error-context.md` has the app parked on **Address**, still inside Identity, with its primary button never pressed: ``` - heading "Address" [level=3] - radio "e2e-drive.idss.nz …" [checked] - button "Reserve e2e-drive.idss.nz" ``` and every downstream section still locked: ``` - button "Service catalogue" [disabled] - button "Access" [disabled] - button "Connect the gateway" [disabled] ``` `[data-action="option:rented"]` is not on that screen. It is the "where will it live" card — `docs/ux/wireframes/p2-device-add-cli/p2-s1a-where-will-it-live.html:24` — which sits behind the disabled **Access** section. The click could never have landed. ## The defect — the drive walks the pre-reorder order The stack table puts Address *before* Access. `app/src/lib/foundingStack.ts`: ``` :69 { key: 'address', label: 'Address', step: 'address' }, // Identity :78 key: 'service-catalogue', // Services :100 { key: 'access', label: 'Access', step: 'access' }, // Infrastructure ``` The fixtures already know this — `wizard.ts:153-155`, closing `s3aIdentity`: ``` // The walk is the STACK TABLE's order (foundingStack.ts): after the sign-in // method comes Address, still inside Identity; Access waits in Infrastructure. await expect(live.page.locator('[data-status="address"]')).toBeVisible(); ``` But the droplet drive still calls the old S4→S5 sequence — `journey.droplet.spec.ts:276-278`: ```ts await s3BrandKit(live); // → s3aIdentity → lands on [data-status="address"] await s4AccessOwnVPS(live, ip); // clicks option:rented — Access is disabled await s5AddressSubdomain(live, slug); ``` The reorder landed in `d2f310c4` (2026-09-11, "a device PROVES ITSELF where it is chosen", DDR 0240), which also added `servicesToAccess` (`wizard.ts:180`) and `s4dConnectOwnVPS` (`wizard.ts:196`). **Neither helper is imported by any spec** — `journey.droplet.spec.ts:55-66` imports only `s4AccessOwnVPS` and `s5AddressSubdomain`. The droplet drive was never migrated onto the new walk; its last touch is `4c79ddcd` (2026-09-12), an unrelated Portal change. ## Suspected layer — harness The product is self-consistent; the drive script is stale. Infra is innocent, and I confirmed that on the live box (170.64.165.74, still up, ssh accepted): ``` ss -tlnp → only sshd:22 and systemd-resolved:53 cat /etc/os-release → PRETTY_NAME="Ubuntu 24.04.4 LTS" ls /nix → No such file or directory systemctl --failed → (empty) ``` A pristine DigitalOcean image: nothing deployed, no Nix store, no failed units — exactly right for a drive that never left the wizard. The harvested logs corroborate: `logs/droplet-units.txt` shows the same sshd-only `ss` and `Unit nginx.service could not be found`; `logs/droplet-keri.txt` shows `Unit keria.service could not be found` and the witness probe `curl: (7) Failed to connect to 127.0.0.1 port 5642`. Those are consequences of the box never being deployed to, not causes. `logs/droplet-do-forensics.txt` records a clean create with no DO-side interference (`create … completed 13:04:08`, ping 0% loss, `tcp/22: a FRESH connect succeeded`). **Absent, and all explained by the early death:** `artifacts/journey.json` is `{"rows": null, "fault": null}` (founding never began); `logs/helper.log` is empty; `state/logs` and `state/clan-config` never existed (`no config repo … — nothing to snapshot (a drive that never built one)`). Two absences are *not* evidence of this failure: `logs/broker-journal.txt` is an off-mesh harvest refusal (`dev@100.98.48.68: Permission denied (publickey)`, by-design per #681/ADR 0208, verdict does not depend on it), and `host.json`'s `qemu: exit ENOENT` is the VM-target probe, irrelevant on a droplet drive. ## This is NOT the known frontier The named KNOWN frontier is pairing-never-flips (the own-VPS carrier issue). It sits far downstream and was never reached. `legs.json` is `[]` — this drive recorded **no legs and therefore no skip reasons at all**, so nothing here is declared out of scope by the drive's own records. This is a new red, strictly earlier than the frontier, and it masks it entirely. ## What plugging it needs Rewrite the droplet drive's walk into stack-table order at `journey.droplet.spec.ts:277-278`: ```ts await s5AddressSubdomain(live, slug); // Identity: Reserve <slug>.idss.nz await servicesToAccess(live); // Services: catalogue → Access await s4AccessOwnVPS(live, ip); // Infrastructure: option:rented → use-own-vps await s4dConnectOwnVPS(live); // S4d: connect + checks on the box (DDR 0240) ``` and add `servicesToAccess` + `s4dConnectOwnVPS` to the import block at `:55-66`. Two adjacent staleness points to settle in the same change: 1. `s5AddressSubdomain` asserts it lands on `[data-status="section-brief"]` (`wizard.ts:453`) — that was the post-claim walk under the *old* order, where Address was the last screen before Review. Now that Address sits mid-Identity, confirm what it actually advances to. 2. `reviewAndCreate(live, 'connect-own-vps')` at `:281` presumes the pre-DDR-0240 landing, while `s4dConnectOwnVPS` now expects `connect-device` → `connected` → `checks-passed` *before* the bench and Confirm. Same stale-order class. Also worth sweeping: `journey.selfhosted.spec.ts` and `journey.idip.spec.ts` are likely red the same way — `s4AccessSelfHosted` still asserts it lands on `[data-status="address"]` (`wizard.ts:283`), an ordering the same commit invalidated. drive `20260914T130316Z` red at `wizard`: `drive red at wizard — the wizard died before any leg ran` evidence: `/home/swarm/session-runner/idss/test-results/drive-droplet/20260914T130316Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: dcf630511b50 -->
Author
Member

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

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

Context from the #1373 hand drive (Ben's session, 2026-09-14) — this ticket is the droplet slice of #1447, not a standalone defect.

The founding page replaced the wizard on main (cb3139d4, merged via fcf1c5b2 on 2026-09-12). #1447 already names the whole shape: every live founding caller still walks the wizard's order (identity → S4 access → S5 address → review) while the page walks the stack table's (… address → service-catalogue → access → connect → gateway-device → confirm → Build it). It lists ten callers, journey.droplet.spec.ts among them.

So when you fix s4AccessOwnVPS's caller here, please land it as #1447's droplet caller rather than a one-off. Otherwise journey.selfhosted, journey.rented, journey.idip, rentedPrefix, foundingPrefix and the rest stay red on the same cause. At minimum, link the commit on #1447 so its checklist can tick the droplet caller off.

For proof: the last good droplet drive before the cutover was 20260912T160919Z on 62e1ba47 — founding clean, 19 of 20 legs green. cb3139d4/d2f310c4 are not ancestors of that commit, which is what makes this a harness-order break and not a product regression. A green droplet drive past S12 is what unblocks #1373, the last ticket on Portal map #1336.

**Context from the #1373 hand drive (Ben's session, 2026-09-14) — this ticket is the droplet slice of #1447, not a standalone defect.** The founding page replaced the wizard on main (`cb3139d4`, merged via `fcf1c5b2` on 2026-09-12). #1447 already names the whole shape: every live founding caller still walks the wizard's order (identity → S4 access → S5 address → review) while the page walks the stack table's (… address → service-catalogue → access → connect → gateway-device → confirm → Build it). It lists ten callers, `journey.droplet.spec.ts` among them. So when you fix `s4AccessOwnVPS`'s caller here, please land it as #1447's droplet caller rather than a one-off. Otherwise `journey.selfhosted`, `journey.rented`, `journey.idip`, `rentedPrefix`, `foundingPrefix` and the rest stay red on the same cause. At minimum, link the commit on #1447 so its checklist can tick the droplet caller off. For proof: the last good droplet drive before the cutover was `20260912T160919Z` on `62e1ba47` — founding clean, 19 of 20 legs green. `cb3139d4`/`d2f310c4` are not ancestors of that commit, which is what makes this a harness-order break and not a product regression. A green droplet drive past S12 is what unblocks #1373, the last ticket on Portal map #1336.
Author
Member

close-report for #1463 — status success

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

envelope
{
  "issue": 1463,
  "status": "success",
  "commits": [
    "4e3b13ce"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/journey.droplet.spec.ts",
    "app/tests/e2e/fixtures/wizard.ts"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vitest run tests/unit/foundingAccessAddress.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Rewrite the droplet drive's walk into stack-table order (journey.droplet.spec.ts:277-278)": "journey.droplet.spec.ts: s5AddressSubdomain → servicesToAccess → s4AccessOwnVPS → s4dConnectOwnVPS, then reviewAndCreate(live,'connect-own-vps') (commit 4e3b13ce)",
    "Add servicesToAccess + s4dConnectOwnVPS to the import block (:55-66)": "journey.droplet.spec.ts import block now includes s4dConnectOwnVPS and servicesToAccess (commit 4e3b13ce)",
    "Settle s5AddressSubdomain's post-claim landing (wizard.ts:453)": "s5AddressSubdomain now asserts [data-status=\"service-catalogue\"] not section-brief — Address is the last Identity section so a claim advances to the Services catalogue; proven by tests/unit/foundingAccessAddress.test.ts:237 (12/12 green)",
    "Settle reviewAndCreate(live,'connect-own-vps') at :281": "Confirmed UNCHANGED-and-correct: FoundingStandupOwnVPS.vue still renders data-status=\"connect-own-vps\" and re-connects for founding (connecting→connected→rows→paired→deploy→finish frontier intact)"
  },
  "summary": "Rewrote the droplet drive's founding walk to the post-DDR-0240 stack-table order and fixed the shared s5AddressSubdomain landing to service-catalogue.",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1463 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1463, "status": "success", "commits": [ "4e3b13ce" ], "changed_files": [ "STATUS.md", "app/tests/e2e/journey.droplet.spec.ts", "app/tests/e2e/fixtures/wizard.ts" ], "tests": [ { "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "node_modules/.bin/vitest run tests/unit/foundingAccessAddress.test.ts", "exit_code": 0 } ], "criteria": { "Rewrite the droplet drive's walk into stack-table order (journey.droplet.spec.ts:277-278)": "journey.droplet.spec.ts: s5AddressSubdomain → servicesToAccess → s4AccessOwnVPS → s4dConnectOwnVPS, then reviewAndCreate(live,'connect-own-vps') (commit 4e3b13ce)", "Add servicesToAccess + s4dConnectOwnVPS to the import block (:55-66)": "journey.droplet.spec.ts import block now includes s4dConnectOwnVPS and servicesToAccess (commit 4e3b13ce)", "Settle s5AddressSubdomain's post-claim landing (wizard.ts:453)": "s5AddressSubdomain now asserts [data-status=\"service-catalogue\"] not section-brief — Address is the last Identity section so a claim advances to the Services catalogue; proven by tests/unit/foundingAccessAddress.test.ts:237 (12/12 green)", "Settle reviewAndCreate(live,'connect-own-vps') at :281": "Confirmed UNCHANGED-and-correct: FoundingStandupOwnVPS.vue still renders data-status=\"connect-own-vps\" and re-connects for founding (connecting→connected→rows→paired→deploy→finish frontier intact)" }, "summary": "Rewrote the droplet drive's founding walk to the post-DDR-0240 stack-table order and fixed the shared s5AddressSubdomain landing to service-catalogue.", "blockers": [], "no_code_change": "" } ``` </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#1463
No description provided.