claim: S5 slug fixture fills the rent-frozen field (ADR 0228) — page.fill times out #1355

Closed
opened 2026-09-09 14:45:25 +00:00 by matou-build-agent · 1 comment

The failure

The claim leg is the drive's firstRedLeg. It is not the KNOWN own-VPS pairing frontier: legs.json records skip: 0 and carries no skip reasons at all, and the drive died at leg 3 of 3 — grep -ci pairing logs/droplet-journal.txt → 0. Pairing was never reached, so the known-red carrier issue is not what stopped this run.

The real cause is test-harness drift against a landed product decision. #1335 / ADR 0228 (docs/adr/0228-design-rented-community-name-frozen-after-rent.md) froze the rented community name after rent: the S5 subdomain slug now renders read-only while a rental is bound. The shared e2e fixture still types into it.

Evidence

artifacts/verdict.json:

{ "verdict": "red", "target": "rented", "legs": { "total": 3, "green": 2, "red": 1, "skip": 0 }, "firstRedLeg": "claim", "commit": "5e64d8b653a58c9cb61fd94172991e1e82d024f2" }

artifacts/legs.json / artifacts/journey.json — the fault. Playwright resolved the locator, then could not act on it:

page.fill: Timeout 30000ms exceeded.
  - waiting for locator('[data-field="subdomain-slug"] input')
    - locator resolved to <input readonly type="text" data-v-5c220e01="" value="rehearsal-b" class="oc-input oc-mono" data-status="rental-name-bound"/>
    - fill("rehearsal-b")
    59 × waiting for element to be visible, enabled and editable
       - element is not editable

Note the value being typed already equals the frozen value (value="rehearsal-b", fill("rehearsal-b")) — the journey's intent was already satisfied; only the action is no longer legal.

The page snapshot in artifacts/journey.rented-.../error-context.md shows the product behaving exactly to contract, lock line and all:

textbox [ref=f1e36]: rehearsal-b
generic [ref=f1e37]: 🔒 The name was reserved when you rented the server, so it can't be changed here. To use a different name, go back to Access and release the server first.
button "Reserve rehearsal-b.idss.nz" [ref=f1e45]

Product side — app/src/components/founding/FoundingAddress.vue:60-73, the ADR 0228 branch:

<template v-if="rentalNameBound">
  <span class="oc-field" data-field="subdomain-slug">
    <input :value="subdomainSlug" type="text" class="oc-input oc-mono" readonly data-status="rental-name-bound" />

Harness side — app/tests/e2e/fixtures/wizard.ts:344, still unconditional on HEAD (5e64d8b6):

export async function s5AddressSubdomain(live: LaunchedApp, slug: string) {
  await live.page.click('[data-action="mode:subdomain"]');
  await live.page.fill('[data-field="subdomain-slug"] input', slug);

The product change landed in fd9490d2 ("#1335 — freeze the rented community name after rent"); the fixture's last touches (5fc2fee4, 5e64d8b6) never followed it. The rented carrier is the only one that binds a rental, which is why the editable carriers stayed green.

The in-run healer already found this and lost the fix. logs/healer-claude.out:

{"action":"healed","commit":"9a1ef6f5...","summary":"#1335 froze the rented S5 community name ... but left the shared e2e fixture typing into it — s5AddressSubdomain's unconditional page.fill (app/tests/e2e/fixtures/wizard.ts:344) can only time out on the rented carrier ..."}

But logs/healer-claude.err shows the landing failed:

CONFLICT (content): Merge conflict in app/tests/e2e/fixtures/wizard.ts
error: could not apply 7c132807... rehearsal healer: the rented S5 slug is read-only since #1335 ... (sig d213ffc8c0ad)

Neither 9a1ef6f5 nor 7c132807 is a valid object in the repo, no rebase is in progress, and git show HEAD:app/tests/e2e/fixtures/wizard.ts | sed -n '344p' is still the bare page.fill. The heal was rolled back entirely — so this red will recur on every rented drive until the fixture is fixed on main.

Suspected layer

Harness (e2e fixture), not product and not infra. The product is correct per ADR 0228, and the unit test app/tests/unit/foundingAccessAddress.test.ts:276 already asserts data-status="rental-name-bound". Infra is incidental noise only: logs/droplet-units.txt shows one failed unit, cloud-final.service, with sshd listening and nothing else — the box got far enough for legs 1–2 to pass, and the claim leg never touched it.

What plugging it needs

In s5AddressSubdomain (app/tests/e2e/fixtures/wizard.ts:344), branch on the bound field instead of typing into it:

  • If [data-field="subdomain-slug"] input[data-status="rental-name-bound"] is present, assert rather than fill — the frozen value equals the journey's slug, and [data-field="rental-name-locked"] renders the ADR 0228 reason line. This turns a lost tooth into a positive check of the freeze.
  • Otherwise keep the existing page.fill for the editable carriers (idip / self-hosted / droplet).
  • Both branches then continue through the unchanged [data-action="claim-subdomain"] → [data-status="review-and-create"] path; ADR 0228 states the pre-filled bound slug "still re-claims as the existing no-op that advances," so no product change is needed.
  • Re-land it as a normal commit — the previous attempt died in rebase, so whoever picks this up should expect to resolve against 5e64d8b6's brand-kit changes to the same file.

Once this lands, the rented drive should reach the legs past claim and finally arrive at the KNOWN pairing frontier, which this run never got to observe.

Absent / unavailable evidence

  • The live box refused SSH. ssh ... root@170.64.170.201 → Permission denied (publickey,keyboard-interactive) (exit 255), on both attempts. Diagnosis above is from the harvested logs alone; nothing here needed a live machine, since the failure is entirely in the Electron/Playwright layer.
  • artifacts/legs.json records only 3 legs of the twelve-tooth rented journey (808aafa6) — everything after claim never ran and left no record.
  • All logs/guest-*.log are stubs (exit 1: ... Failed to connect to bus: No medium found), logs/broker-journal.txt, logs/caddy-rented.txt and logs/droplet-caddy.txt are all -- No entries --, and logs/helper.log is zero-length. artifacts/host.json records "qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT" — expected on the rented carrier, which uses a real droplet rather than a guest VM.

drive 20260909T143503Z red at claim: page.fill: Timeout 30000ms exceeded. Call log: - waiting for locator('[data-field="subdomain-slug"] input') - locator resolved to <input readonly type="text" data-v-5c220e01="" value="rehearsal-b" cla
evidence: /home/dev/swarm/Matou/idss/test-results/drive-rented/20260909T143503Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure The `claim` leg is the drive's `firstRedLeg`. It is **not** the KNOWN own-VPS pairing frontier: `legs.json` records `skip: 0` and carries **no skip reasons at all**, and the drive died at leg 3 of 3 — `grep -ci pairing logs/droplet-journal.txt` → `0`. Pairing was never reached, so the known-red carrier issue is not what stopped this run. The real cause is **test-harness drift against a landed product decision**. `#1335` / **ADR 0228 (`docs/adr/0228-design-rented-community-name-frozen-after-rent.md`)** froze the rented community name after rent: the S5 subdomain slug now renders read-only while a rental is bound. The shared e2e fixture still types into it. ## Evidence `artifacts/verdict.json`: ```json { "verdict": "red", "target": "rented", "legs": { "total": 3, "green": 2, "red": 1, "skip": 0 }, "firstRedLeg": "claim", "commit": "5e64d8b653a58c9cb61fd94172991e1e82d024f2" } ``` `artifacts/legs.json` / `artifacts/journey.json` — the fault. Playwright *resolved* the locator, then could not act on it: ``` page.fill: Timeout 30000ms exceeded. - waiting for locator('[data-field="subdomain-slug"] input') - locator resolved to <input readonly type="text" data-v-5c220e01="" value="rehearsal-b" class="oc-input oc-mono" data-status="rental-name-bound"/> - fill("rehearsal-b") 59 × waiting for element to be visible, enabled and editable - element is not editable ``` Note the value being typed **already equals the frozen value** (`value="rehearsal-b"`, `fill("rehearsal-b")`) — the journey's intent was already satisfied; only the action is no longer legal. The page snapshot in `artifacts/journey.rented-.../error-context.md` shows the product behaving exactly to contract, lock line and all: ``` textbox [ref=f1e36]: rehearsal-b generic [ref=f1e37]: 🔒 The name was reserved when you rented the server, so it can't be changed here. To use a different name, go back to Access and release the server first. button "Reserve rehearsal-b.idss.nz" [ref=f1e45] ``` Product side — `app/src/components/founding/FoundingAddress.vue:60-73`, the ADR 0228 branch: ```vue <template v-if="rentalNameBound"> <span class="oc-field" data-field="subdomain-slug"> <input :value="subdomainSlug" type="text" class="oc-input oc-mono" readonly data-status="rental-name-bound" /> ``` Harness side — `app/tests/e2e/fixtures/wizard.ts:344`, still unconditional on HEAD (`5e64d8b6`): ```ts export async function s5AddressSubdomain(live: LaunchedApp, slug: string) { await live.page.click('[data-action="mode:subdomain"]'); await live.page.fill('[data-field="subdomain-slug"] input', slug); ``` The product change landed in `fd9490d2` ("#1335 — freeze the rented community name after rent"); the fixture's last touches (`5fc2fee4`, `5e64d8b6`) never followed it. The rented carrier is the only one that binds a rental, which is why the editable carriers stayed green. **The in-run healer already found this and lost the fix.** `logs/healer-claude.out`: ``` {"action":"healed","commit":"9a1ef6f5...","summary":"#1335 froze the rented S5 community name ... but left the shared e2e fixture typing into it — s5AddressSubdomain's unconditional page.fill (app/tests/e2e/fixtures/wizard.ts:344) can only time out on the rented carrier ..."} ``` But `logs/healer-claude.err` shows the landing failed: ``` CONFLICT (content): Merge conflict in app/tests/e2e/fixtures/wizard.ts error: could not apply 7c132807... rehearsal healer: the rented S5 slug is read-only since #1335 ... (sig d213ffc8c0ad) ``` Neither `9a1ef6f5` nor `7c132807` is a valid object in the repo, no rebase is in progress, and `git show HEAD:app/tests/e2e/fixtures/wizard.ts | sed -n '344p'` is still the bare `page.fill`. The heal was rolled back entirely — so this red will recur on every rented drive until the fixture is fixed on `main`. ## Suspected layer **Harness** (e2e fixture), not product and not infra. The product is correct per ADR 0228, and the unit test `app/tests/unit/foundingAccessAddress.test.ts:276` already asserts `data-status="rental-name-bound"`. Infra is incidental noise only: `logs/droplet-units.txt` shows one failed unit, `cloud-final.service`, with sshd listening and nothing else — the box got far enough for legs 1–2 to pass, and the claim leg never touched it. ## What plugging it needs In `s5AddressSubdomain` (`app/tests/e2e/fixtures/wizard.ts:344`), branch on the bound field instead of typing into it: - If `[data-field="subdomain-slug"] input[data-status="rental-name-bound"]` is present, **assert** rather than fill — the frozen `value` equals the journey's `slug`, and `[data-field="rental-name-locked"]` renders the ADR 0228 reason line. This turns a lost tooth into a positive check of the freeze. - Otherwise keep the existing `page.fill` for the editable carriers (idip / self-hosted / droplet). - Both branches then continue through the unchanged `[data-action="claim-subdomain"]` → `[data-status="review-and-create"]` path; ADR 0228 states the pre-filled bound slug "still re-claims as the existing no-op that advances," so no product change is needed. - Re-land it as a normal commit — the previous attempt died in rebase, so whoever picks this up should expect to resolve against `5e64d8b6`'s brand-kit changes to the same file. Once this lands, the rented drive should reach the legs past `claim` and finally arrive at the KNOWN pairing frontier, which this run never got to observe. ## Absent / unavailable evidence - **The live box refused SSH.** `ssh ... root@170.64.170.201` → `Permission denied (publickey,keyboard-interactive)` (exit 255), on both attempts. Diagnosis above is from the harvested logs alone; nothing here needed a live machine, since the failure is entirely in the Electron/Playwright layer. - `artifacts/legs.json` records only **3 legs** of the twelve-tooth rented journey (`808aafa6`) — everything after `claim` never ran and left no record. - All `logs/guest-*.log` are stubs (`exit 1: ... Failed to connect to bus: No medium found`), `logs/broker-journal.txt`, `logs/caddy-rented.txt` and `logs/droplet-caddy.txt` are all `-- No entries --`, and `logs/helper.log` is zero-length. `artifacts/host.json` records `"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"` — expected on the rented carrier, which uses a real droplet rather than a guest VM. drive `20260909T143503Z` red at `claim`: `page.fill: Timeout 30000ms exceeded. Call log: - waiting for locator('[data-field="subdomain-slug"] input') - locator resolved to <input readonly type="text" data-v-5c220e01="" value="rehearsal-b" cla` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-rented/20260909T143503Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: d213ffc8c0ad -->
Owner

Already landed on origin/main as 445f0957 (pushed 2026-09-09 ~14:50Z, before this ticket was filed): s5AddressSubdomain (app/tests/e2e/fixtures/wizard.ts) now reads the slug input's data-status — on rental-name-bound it asserts the field holds the rented slug and the lock line is visible, then clicks the same claim-subdomain primary (the reserved-name no-op advance); every unrented journey still fills it. Same diagnosis as the reporter's: the harness typed into the field #1335 (Ben's ruling, option 1) froze. Closing; #1354 re-fires on the next tick.

Already landed on `origin/main` as `445f0957` (pushed 2026-09-09 ~14:50Z, before this ticket was filed): `s5AddressSubdomain` (app/tests/e2e/fixtures/wizard.ts) now reads the slug input's `data-status` — on `rental-name-bound` it asserts the field holds the rented slug and the lock line is visible, then clicks the same `claim-subdomain` primary (the reserved-name no-op advance); every unrented journey still fills it. Same diagnosis as the reporter's: the harness typed into the field #1335 (Ben's ruling, option 1) froze. Closing; #1354 re-fires on the next tick.
ben closed this issue 2026-09-09 14:45:49 +00:00
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#1355
No description provided.