dashboard: bridge sign-in fills the <ol> recovery-phrase grid #1706 split into boxes #1730

Closed
opened 2026-09-22 14:03:36 +00:00 by matou-build-agent · 3 comments

The failure

Leg 13 dashboard is the only red — 12/13 green, zero skips. This is not the known own-VPS pairing frontier: pair is green and legs.json carries no skip reasons at all, so nothing in this drive's own records names this red as out of scope.

establishOperatorSession → bridgeSignIn (app/tests/e2e/fixtures/idip.ts:470) calls page.fill() on [data-field="recovery-phrase"], which on the bridge sign-in page is no longer an input — it is an <ol> wrapping twelve word boxes.

Evidence

artifacts/verdict.json:

"verdict": "red",
"legs": { "total": 13, "green": 12, "red": 1, "skip": 0 },
"firstRedLeg": "dashboard",
"commit": "6f193f7f8d7d6d88aeaf8d02ab6e8688b1c18db6"

artifacts/legs.json, the dashboard leg (1753 ms):

page.fill: Error: Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]
Call log:
  - waiting for locator('[data-field="recovery-phrase"]')
    - locator resolved to <ol class="words" data-field="recovery-phrase">…</ol>
    - fill("frozen benefit wrestle shock surprise degree hand wealth lizard axis ugly submit")
  - attempting fill action
    - waiting for element to be visible, enabled and editable

artifacts/journey.json records the same string as the drive's fault.

Live box (170.64.178.85, still up — ssh answered). systemctl --failed --no-legend is empty; ss -tlnp shows idss-idp on 127.0.0.1:8465, control-plane on *:8080, caddy on *:80/*:443. Curling the real sign-in page on the box:

curl -sS http://127.0.0.1:8465/login?authRequestID=probe

<ol class="words" data-field="recovery-phrase"><li><i>1</i><input data-field="recovery-word-1" aria-label="word 1" inputmode="text" autocomplete="off" autocapitalize="none" spellcheck="false"></li> … <li><i>12</i><input data-field="recovery-word-12" …></li></ol>
<p class="hint">Tip: You can paste your entire phrase into the first field</p>

So the box is serving exactly the markup the product intends; there is no failed unit and no probe error to find.

logs/droplet-journal.txt — the drive reached that page perfectly well and died on the fill a second later:

Sep 22 14:00:41 gateway caddy[4703]: … "uri":"/login?authRequestID=afefc32cc8edcc35aff892b0f1b95085" … "status":200 … "size":34944

The bundle-mount guard ahead of the fill passed (the leg did not raise never mounted the member-browser bundle), so this is squarely the fill and nothing earlier.

Suspected layer: harness

The product changed under a drive fixture that was not moved with it. Commit fd4a0df2 — "sandcastle: #1706 — recovery-phrase screens adopt matou-app's layout: one box per word, Copy on show, paste-fills-all on entry" — landed 2026-09-21, one day before this drive. Its own message:

Enter (id./login, internal/idp/brand.go): the single textarea becomes twelve numbered input boxes (matou-app's RecoveryScreen) with data-field="recovery-word-N" … window.idssKeriSignIn joins them via a new pure joinRecoveryPhrase helper in keriweb/doors.ts.

git show --stat fd4a0df2 touches no file under app/tests/e2e/ (17 files: app components, i18n, keriweb, unit tests, wireframes, internal/idp/brand.go, internal/controlapi/member_join_idip.go, seam tests, STATUS.md).

The drive's show-side read was already box-aware from an earlier ticket (#1081, idip.ts:275): phraseFromWords(await page.locator('[data-field="recovery-phrase"] li').allTextContents()), commented "Each box is <number><word> (the number rides an <i>)". That is why the phrase harvest still works — the error quotes a clean twelve-word phrase. Only the enter-side fill at idip.ts:470 was left on the pre-#1706 single-textarea contract, and it is the sole remaining page.fill of that selector in the e2e tree.

Why offline CI stayed green: app/tests/e2e/fixtures/idip.test.ts:325 actively pins the now-impossible call in place —

const fillAt = body.indexOf("page.fill('[data-field=\"recovery-phrase\"]'");
expect(fillAt, 'the walk still fills the phrase').toBeGreaterThan(-1);

so the stale selector is asserted rather than caught, and the break could only surface on a droplet.

Contributing hazard: data-field="recovery-phrase" now names two different shapes. internal/idp/deviceapprove.go:236 still renders a genuine <textarea data-field="recovery-phrase">, while brand.go:348 and member_join_idip.go:239 render <ol class="words" data-field="recovery-phrase">. One attribute, two contracts, is what made this easy to miss.

What plugging it needs

  1. app/tests/e2e/fixtures/idip.ts, bridgeSignIn — replace await page.fill('[data-field="recovery-phrase"]', phrase) with the box contract. Either fill [data-field="recovery-word-${i}"] for i = 1..12, or fill recovery-word-1 with the whole phrase and let main.ts distribute it — the page itself advertises that path ("You can paste your entire phrase into the first field"), and using it also exercises the #1706 paste-fills-all behaviour. Keep the existing window.idssKeriSignIn mount wait ahead of the fill; it is load-bearing (drive 20260905T002614Z).
  2. app/tests/e2e/fixtures/idip.test.ts — re-point the pin at the word-box selector, preserving the ordering assertions (mount wait precedes fill and click) and the never mounted the member-browser bundle check.
  3. Add a binding pin in the same style as the existing "keys on the global main.ts publishes" test: assert the fixture's selector against internal/idp/brand.go's rendered data-field="recovery-word-, so the next markup move reds in CI rather than 16 minutes into a droplet drive.
  4. No box-side change. The droplet is healthy. Note the whole credentials tail downstream of leg 13 never ran — those legs have no records in legs.json at all — so this drive proves nothing about them; a re-drive after the fix is what closes that gap.

drive 20260922T134032Z red at dashboard: page.fill: Error: Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly] Call log: - waiting for locator('[data-field="recovery-phrase"]
evidence: /home/swarm/session-runner/idss/test-results/drive-idip/20260922T134032Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Leg 13 `dashboard` is the only red — 12/13 green, **zero skips**. This is **not** the known own-VPS pairing frontier: `pair` is green and `legs.json` carries no skip reasons at all, so nothing in this drive's own records names this red as out of scope. `establishOperatorSession` → `bridgeSignIn` (`app/tests/e2e/fixtures/idip.ts:470`) calls `page.fill()` on `[data-field="recovery-phrase"]`, which on the bridge sign-in page is no longer an input — it is an `<ol>` wrapping twelve word boxes. ### Evidence `artifacts/verdict.json`: ``` "verdict": "red", "legs": { "total": 13, "green": 12, "red": 1, "skip": 0 }, "firstRedLeg": "dashboard", "commit": "6f193f7f8d7d6d88aeaf8d02ab6e8688b1c18db6" ``` `artifacts/legs.json`, the `dashboard` leg (1753 ms): ``` page.fill: Error: Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly] Call log: - waiting for locator('[data-field="recovery-phrase"]') - locator resolved to <ol class="words" data-field="recovery-phrase">…</ol> - fill("frozen benefit wrestle shock surprise degree hand wealth lizard axis ugly submit") - attempting fill action - waiting for element to be visible, enabled and editable ``` `artifacts/journey.json` records the same string as the drive's `fault`. **Live box (170.64.178.85, still up — ssh answered).** `systemctl --failed --no-legend` is empty; `ss -tlnp` shows `idss-idp` on `127.0.0.1:8465`, `control-plane` on `*:8080`, `caddy` on `*:80`/`*:443`. Curling the real sign-in page on the box: ``` curl -sS http://127.0.0.1:8465/login?authRequestID=probe <ol class="words" data-field="recovery-phrase"><li><i>1</i><input data-field="recovery-word-1" aria-label="word 1" inputmode="text" autocomplete="off" autocapitalize="none" spellcheck="false"></li> … <li><i>12</i><input data-field="recovery-word-12" …></li></ol> <p class="hint">Tip: You can paste your entire phrase into the first field</p> ``` So the box is serving exactly the markup the product intends; there is no failed unit and no probe error to find. `logs/droplet-journal.txt` — the drive reached that page perfectly well and died on the fill a second later: ``` Sep 22 14:00:41 gateway caddy[4703]: … "uri":"/login?authRequestID=afefc32cc8edcc35aff892b0f1b95085" … "status":200 … "size":34944 ``` The bundle-mount guard ahead of the fill passed (the leg did not raise `never mounted the member-browser bundle`), so this is squarely the fill and nothing earlier. ## Suspected layer: harness The product changed under a drive fixture that was not moved with it. Commit `fd4a0df2` — *"sandcastle: #1706 — recovery-phrase screens adopt matou-app's layout: one box per word, Copy on show, paste-fills-all on entry"* — landed 2026-09-21, one day before this drive. Its own message: > Enter (id.<apex>/login, internal/idp/brand.go): the single textarea becomes twelve numbered input boxes (matou-app's RecoveryScreen) with data-field="recovery-word-N" … window.idssKeriSignIn joins them via a new pure joinRecoveryPhrase helper in keriweb/doors.ts. `git show --stat fd4a0df2` touches **no file under `app/tests/e2e/`** (17 files: app components, i18n, keriweb, unit tests, wireframes, `internal/idp/brand.go`, `internal/controlapi/member_join_idip.go`, seam tests, STATUS.md). The drive's *show*-side read was already box-aware from an earlier ticket (#1081, `idip.ts:275`): `phraseFromWords(await page.locator('[data-field="recovery-phrase"] li').allTextContents())`, commented *"Each box is `<number><word>` (the number rides an `<i>`)"*. That is why the phrase harvest still works — the error quotes a clean twelve-word phrase. Only the **enter**-side fill at `idip.ts:470` was left on the pre-#1706 single-textarea contract, and it is the sole remaining `page.fill` of that selector in the e2e tree. Why offline CI stayed green: `app/tests/e2e/fixtures/idip.test.ts:325` actively pins the now-impossible call in place — ``` const fillAt = body.indexOf("page.fill('[data-field=\"recovery-phrase\"]'"); expect(fillAt, 'the walk still fills the phrase').toBeGreaterThan(-1); ``` so the stale selector is asserted rather than caught, and the break could only surface on a droplet. Contributing hazard: `data-field="recovery-phrase"` now names two different shapes. `internal/idp/deviceapprove.go:236` still renders a genuine `<textarea data-field="recovery-phrase">`, while `brand.go:348` and `member_join_idip.go:239` render `<ol class="words" data-field="recovery-phrase">`. One attribute, two contracts, is what made this easy to miss. ## What plugging it needs 1. **`app/tests/e2e/fixtures/idip.ts`, `bridgeSignIn`** — replace `await page.fill('[data-field="recovery-phrase"]', phrase)` with the box contract. Either fill `[data-field="recovery-word-${i}"]` for i = 1..12, or fill `recovery-word-1` with the whole phrase and let `main.ts` distribute it — the page itself advertises that path (*"You can paste your entire phrase into the first field"*), and using it also exercises the #1706 paste-fills-all behaviour. Keep the existing `window.idssKeriSignIn` mount wait ahead of the fill; it is load-bearing (drive 20260905T002614Z). 2. **`app/tests/e2e/fixtures/idip.test.ts`** — re-point the pin at the word-box selector, preserving the ordering assertions (mount wait precedes fill and click) and the `never mounted the member-browser bundle` check. 3. **Add a binding pin** in the same style as the existing "keys on the global main.ts publishes" test: assert the fixture's selector against `internal/idp/brand.go`'s rendered `data-field="recovery-word-`, so the next markup move reds in CI rather than 16 minutes into a droplet drive. 4. **No box-side change.** The droplet is healthy. Note the whole credentials tail downstream of leg 13 never ran — those legs have no records in `legs.json` at all — so this drive proves nothing about them; a re-drive after the fix is what closes that gap. drive `20260922T134032Z` red at `dashboard`: `page.fill: Error: Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly] Call log: - waiting for locator('[data-field="recovery-phrase"]` evidence: `/home/swarm/session-runner/idss/test-results/drive-idip/20260922T134032Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 783a9073cbd0 -->
Author
Member

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

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

close-report for #1730 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit e1557cee42 is not reachable from origin/main (not landed)
  • changed_files: 'app/tests/e2e/fixtures/idip.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/idip.test.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 1730,
  "status": "success",
  "commits": [
    "e1557cee421883dd8a9d7405d7a3cb2e63de3d89"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.ts",
    "app/tests/e2e/fixtures/idip.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "bridgeSignIn fills the box contract, not the <ol>": "idip.ts bridgeSignIn now fills [data-field=recovery-word-N] for N=1..12; commit e1557cee421883dd8a9d7405d7a3cb2e63de3d89",
    "mount wait kept ahead of the fill": "window.idssKeriSignIn waitForFunction unchanged, precedes the box fills (idip.ts:456-471)",
    "pin re-pointed at the word-box selector preserving ordering + never-mounted checks": "idip.test.ts 'waits for window.idssKeriSignIn' now asserts recovery-word fill, mount<fill<click, and 'never mounted the member-browser bundle'",
    "binding pin against brand.go rendered markup": "idip.test.ts new 'fills the word-box selector brand.go actually renders' asserts fixture selector vs brand.go data-field=recovery-word-%d",
    "no box-side change": "changed_files are e2e fixtures only"
  },
  "summary": "bridgeSignIn fills the twelve numbered recovery-word boxes (#1706 contract) instead of the removed single textarea, with a binding pin against brand.go so the next markup move reds in CI.",
  "blockers": []
}
**close-report** for #1730 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit e1557cee421883dd8a9d7405d7a3cb2e63de3d89 is not reachable from origin/main (not landed) - changed_files: 'app/tests/e2e/fixtures/idip.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/idip.test.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1730, "status": "success", "commits": [ "e1557cee421883dd8a9d7405d7a3cb2e63de3d89" ], "changed_files": [ "app/tests/e2e/fixtures/idip.ts", "app/tests/e2e/fixtures/idip.test.ts" ], "tests": [ { "command": "CI=true pnpm vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "bridgeSignIn fills the box contract, not the <ol>": "idip.ts bridgeSignIn now fills [data-field=recovery-word-N] for N=1..12; commit e1557cee421883dd8a9d7405d7a3cb2e63de3d89", "mount wait kept ahead of the fill": "window.idssKeriSignIn waitForFunction unchanged, precedes the box fills (idip.ts:456-471)", "pin re-pointed at the word-box selector preserving ordering + never-mounted checks": "idip.test.ts 'waits for window.idssKeriSignIn' now asserts recovery-word fill, mount<fill<click, and 'never mounted the member-browser bundle'", "binding pin against brand.go rendered markup": "idip.test.ts new 'fills the word-box selector brand.go actually renders' asserts fixture selector vs brand.go data-field=recovery-word-%d", "no box-side change": "changed_files are e2e fixtures only" }, "summary": "bridgeSignIn fills the twelve numbered recovery-word boxes (#1706 contract) instead of the removed single textarea, with a binding pin against brand.go so the next markup move reds in CI.", "blockers": [] } ``` </details>
Author
Member

close-report for #1730 — status success

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

envelope
{
  "issue": 1730,
  "status": "success",
  "commits": [
    "e1557cee421883dd8a9d7405d7a3cb2e63de3d89"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.ts",
    "app/tests/e2e/fixtures/idip.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "bridgeSignIn fills the box contract, not the <ol>": "idip.ts bridgeSignIn now fills [data-field=recovery-word-N] for N=1..12; commit e1557cee421883dd8a9d7405d7a3cb2e63de3d89",
    "mount wait kept ahead of the fill": "window.idssKeriSignIn waitForFunction unchanged, precedes the box fills (idip.ts:456-471)",
    "pin re-pointed at the word-box selector preserving ordering + never-mounted checks": "idip.test.ts 'waits for window.idssKeriSignIn' now asserts recovery-word fill, mount<fill<click, and 'never mounted the member-browser bundle'",
    "binding pin against brand.go rendered markup": "idip.test.ts new 'fills the word-box selector brand.go actually renders' asserts fixture selector vs brand.go data-field=recovery-word-%d",
    "no box-side change": "changed_files are e2e fixtures only"
  },
  "summary": "bridgeSignIn fills the twelve numbered recovery-word boxes (#1706 contract) instead of the removed single textarea, with a binding pin against brand.go so the next markup move reds in CI.",
  "blockers": []
}
**close-report** for #1730 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1730, "status": "success", "commits": [ "e1557cee421883dd8a9d7405d7a3cb2e63de3d89" ], "changed_files": [ "app/tests/e2e/fixtures/idip.ts", "app/tests/e2e/fixtures/idip.test.ts" ], "tests": [ { "command": "CI=true pnpm vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "bridgeSignIn fills the box contract, not the <ol>": "idip.ts bridgeSignIn now fills [data-field=recovery-word-N] for N=1..12; commit e1557cee421883dd8a9d7405d7a3cb2e63de3d89", "mount wait kept ahead of the fill": "window.idssKeriSignIn waitForFunction unchanged, precedes the box fills (idip.ts:456-471)", "pin re-pointed at the word-box selector preserving ordering + never-mounted checks": "idip.test.ts 'waits for window.idssKeriSignIn' now asserts recovery-word fill, mount<fill<click, and 'never mounted the member-browser bundle'", "binding pin against brand.go rendered markup": "idip.test.ts new 'fills the word-box selector brand.go actually renders' asserts fixture selector vs brand.go data-field=recovery-word-%d", "no box-side change": "changed_files are e2e fixtures only" }, "summary": "bridgeSignIn fills the twelve numbered recovery-word boxes (#1706 contract) instead of the removed single textarea, with a binding pin against brand.go so the next markup move reds in CI.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1730
No description provided.