Drive fixtures leak the founder's twelve words into legs.json when a sign-in fill fails — Playwright's call log names the value #1731

Closed
opened 2026-09-22 15:13:27 +00:00 by ben · 2 comments
Owner

What happens

When a sign-in fixture's page.fill(…, phrase) fails, Playwright's call log names the VALUE it was filling. runRecordedLeg stores the error text in the leg record, so the founder's twelve words land in artifacts/legs.json in the run directory — and anywhere a leg's error is relayed from there (the reporter's red comment on a drive ticket, Mattermost, the healer's evidence).

Evidence

Debug IDIP fire 20260921T134032Z… correction: 20260922T134032Z (elitebook-03, 676ba072), leg dashboard, red on the pre-#1730 textarea fill ([data-field="recovery-phrase"] had become an <ol> in #1706). The leg's recorded error carries fill("<all twelve words>") verbatim. It was a throwaway rehearsal community on a debug drive (the reporter does not post debug reds), so nothing left the host — but a prove-it red at the same line WOULD be posted.

#1730 (e1557cee) now fills one word per box, which narrows a future leak to one word per failure; it does not close it.

Rule this breaks

The twelve words live in the journey's process memory only — never logged, never written to the run directory, never put in an error (see fixtures/headlessWallet.ts's header; the same holds for every sign-in fixture).

Fix direction

One helper every words-typing fixture uses (bridgeSignIn, the join and claim ceremonies, approveInDashboard, the signing unlocks …): it fills, and on failure rethrows an error with the selector and the word POSITION only — never the value. A unit test forces a fill failure and asserts no word of the phrase appears in the message or its cause. Grep the fixtures for any remaining fill( whose value is a phrase or a word of one.

Acceptance

  • No fixture passes a phrase, or a word of one, to page.fill / locator.fill / type / press outside the helper.
  • A forced failure's error names the selector and position, not the value (unit test).
  • legs.json of a red at a sign-in fill contains no word of the phrase.
## What happens When a sign-in fixture's `page.fill(…, phrase)` fails, Playwright's call log names the VALUE it was filling. `runRecordedLeg` stores the error text in the leg record, so the founder's twelve words land in `artifacts/legs.json` in the run directory — and anywhere a leg's error is relayed from there (the reporter's red comment on a drive ticket, Mattermost, the healer's evidence). ## Evidence Debug IDIP fire `20260921T134032Z`… correction: `20260922T134032Z` (elitebook-03, `676ba072`), leg `dashboard`, red on the pre-#1730 textarea fill (`[data-field="recovery-phrase"]` had become an `<ol>` in #1706). The leg's recorded error carries `fill("<all twelve words>")` verbatim. It was a throwaway rehearsal community on a debug drive (the reporter does not post debug reds), so nothing left the host — but a prove-it red at the same line WOULD be posted. #1730 (`e1557cee`) now fills one word per box, which narrows a future leak to one word per failure; it does not close it. ## Rule this breaks The twelve words live in the journey's process memory only — never logged, never written to the run directory, never put in an error (see `fixtures/headlessWallet.ts`'s header; the same holds for every sign-in fixture). ## Fix direction One helper every words-typing fixture uses (`bridgeSignIn`, the join and claim ceremonies, `approveInDashboard`, the signing unlocks …): it fills, and on failure rethrows an error with the selector and the word POSITION only — never the value. A unit test forces a fill failure and asserts no word of the phrase appears in the message or its cause. Grep the fixtures for any remaining `fill(` whose value is a phrase or a word of one. ## Acceptance - [ ] No fixture passes a phrase, or a word of one, to `page.fill` / `locator.fill` / `type` / `press` outside the helper. - [ ] A forced failure's error names the selector and position, not the value (unit test). - [ ] `legs.json` of a red at a sign-in fill contains no word of the phrase.

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

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

close-report for #1731 — status success

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

envelope
{
  "issue": 1731,
  "status": "success",
  "commits": [
    "975dc02f"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.ts",
    "app/tests/e2e/fixtures/idip.test.ts"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/eslint app/tests/e2e/fixtures/idip.ts app/tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "No fixture passes a phrase, or a word of one, to page.fill / locator.fill / type / press outside the helper": "All five words-typing fills (s6aRecoveryPhraseAndCreate, joinFromBrowser, bridgeSignIn, and both unlockSigningIfAsked phrase fills) now route through fillRecoveryValue in app/tests/e2e/fixtures/idip.ts; a source-pin test in idip.test.ts asserts no .fill( outside the helper carries a phrase/word/list index; grep confirms the only remaining .fill on a phrase/word variable is the helper's own box.fill(value).",
    "A forced failure's error names the selector and position, not the value (unit test)": "idip.test.ts 'the recovery phrase never lands in a failed fill's error (#1731)' forces a fill failure whose value is a phrase, asserts the rethrown error contains the selector and 'word phrase' but no word of the phrase in message/cause/stack (plus a single-word variant); passing (47/47).",
    "legs.json of a red at a sign-in fill contains no word of the phrase": "runRecordedLeg stores err.message into legs.json (fixtures/legs.ts:164); the sign-in fills now throw fillRecoveryValue's fresh scrubbed Error with no Playwright cause attached, so err.message carries the selector+position only — proven at the seam by the forced-failure unit test."
  },
  "summary": "One fillRecoveryValue helper fills every recovery-phrase box and, on failure, rethrows an error naming only the selector and word position — never the value — so a red sign-in fill can no longer leak the twelve words into legs.json.",
  "blockers": []
}
**close-report** for #1731 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1731, "status": "success", "commits": [ "975dc02f" ], "changed_files": [ "app/tests/e2e/fixtures/idip.ts", "app/tests/e2e/fixtures/idip.test.ts" ], "tests": [ { "command": "node_modules/.bin/vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "node_modules/.bin/eslint app/tests/e2e/fixtures/idip.ts app/tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "No fixture passes a phrase, or a word of one, to page.fill / locator.fill / type / press outside the helper": "All five words-typing fills (s6aRecoveryPhraseAndCreate, joinFromBrowser, bridgeSignIn, and both unlockSigningIfAsked phrase fills) now route through fillRecoveryValue in app/tests/e2e/fixtures/idip.ts; a source-pin test in idip.test.ts asserts no .fill( outside the helper carries a phrase/word/list index; grep confirms the only remaining .fill on a phrase/word variable is the helper's own box.fill(value).", "A forced failure's error names the selector and position, not the value (unit test)": "idip.test.ts 'the recovery phrase never lands in a failed fill's error (#1731)' forces a fill failure whose value is a phrase, asserts the rethrown error contains the selector and 'word phrase' but no word of the phrase in message/cause/stack (plus a single-word variant); passing (47/47).", "legs.json of a red at a sign-in fill contains no word of the phrase": "runRecordedLeg stores err.message into legs.json (fixtures/legs.ts:164); the sign-in fills now throw fillRecoveryValue's fresh scrubbed Error with no Playwright cause attached, so err.message carries the selector+position only — proven at the seam by the forced-failure unit test." }, "summary": "One fillRecoveryValue helper fills every recovery-phrase box and, on failure, rethrows an error naming only the selector and word position — never the value — so a red sign-in fill can no longer leak the twelve words into legs.json.", "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.

Dependencies

No dependencies set.

Reference
Matou/idss#1731
No description provided.