idip.test.ts red on main: bridgeStatusLines() expects 5 signin.go status lines, #1523 added a 6th typed refusal #1594

Closed
opened 2026-09-18 18:27:16 +00:00 by matou-build-agent · 3 comments

Red on main (found on 64d5787 while verifying #1522's landed foundation; unit suite: 1 failed | 1700 passed).

FAIL tests/e2e/fixtures/idip.test.ts > idip fixtures — the pure parsers the drive reads the ceremony with > matches every refusal signin.go words, and never the fresh page
AssertionError: expected [ '', …(5) ] to have a length of 5 but got 6
  app/tests/e2e/fixtures/idip.test.ts:131  expect(lines).toHaveLength(5)

Cause

bridgeStatusLines() (app/tests/e2e/fixtures/idip.test.ts:27) scans internal/idp/signin.go for every writePage(w, id, "…") call — the honest refusal wordings plus the empty fresh-page render — and pins the set. It expected 5 (4 refusals + the empty line).

#1523 (commit 30e3ec91, sign-in S1 — the door verifies a presented credential in Go, ADR 0236, "the six checks with typed refusals") added a 6th writePage status line to signin.go, so the scan now returns 6. The fixture that pins signin.go's wordings was not updated in the same commit.

Fix

Update idip.test.ts around line 131 to the new set: bump the toHaveLength to 6 and account for the new refusal wording in the refusals/toContain('') assertions below it (read the actual writePage lines #1523 added to internal/idp/signin.go). This is exactly the drift this fixture exists to catch ("reds in vitest here rather than on a paid droplet"), so the fix is to re-pin it, not to weaken the assertion.

Mechanical, no host standing needed — a swarm worker can land it red-first (the fixture is the red).

Filed as a follow-up by the #1522 session under ADR 0174 rule 1 (work only my ticket; file follow-ups for orthogonal reds). Not fixed here: it belongs to the #1523 sign-in tree, not the Coa-pairing ticket.

**Red on `main`** (found on `64d5787` while verifying #1522's landed foundation; unit suite: `1 failed | 1700 passed`). ``` FAIL tests/e2e/fixtures/idip.test.ts > idip fixtures — the pure parsers the drive reads the ceremony with > matches every refusal signin.go words, and never the fresh page AssertionError: expected [ '', …(5) ] to have a length of 5 but got 6 app/tests/e2e/fixtures/idip.test.ts:131 expect(lines).toHaveLength(5) ``` ## Cause `bridgeStatusLines()` (app/tests/e2e/fixtures/idip.test.ts:27) scans `internal/idp/signin.go` for every `writePage(w, id, "…")` call — the honest refusal wordings plus the empty fresh-page render — and pins the set. It expected **5** (4 refusals + the empty line). **#1523** (commit `30e3ec91`, sign-in S1 — the door verifies a presented credential in Go, ADR 0236, "the six checks with typed refusals") added a **6th** `writePage` status line to `signin.go`, so the scan now returns 6. The fixture that pins signin.go's wordings was not updated in the same commit. ## Fix Update `idip.test.ts` around line 131 to the new set: bump the `toHaveLength` to 6 and account for the new refusal wording in the `refusals`/`toContain('')` assertions below it (read the actual `writePage` lines #1523 added to `internal/idp/signin.go`). This is exactly the drift this fixture exists to catch ("reds in vitest here rather than on a paid droplet"), so the fix is to re-pin it, not to weaken the assertion. Mechanical, no host standing needed — a swarm worker can land it red-first (the fixture is the red). Filed as a follow-up by the #1522 session under ADR 0174 rule 1 (work only my ticket; file follow-ups for orthogonal reds). Not fixed here: it belongs to the #1523 sign-in tree, not the Coa-pairing ticket.
Author
Member

swarm-claim host=bens-mac-04 run=26659
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26659 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1594 — status success

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

  • commit b3dec6ce is not reachable from origin/main (not landed)
  • changed_files: 'app/tests/e2e/fixtures/idip.test.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 1594,
  "status": "success",
  "commits": [
    "b3dec6ce"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "bridgeStatusLines() scan matches signin.go's actual writePage set": "signin.go now has 6 writePage(w, id, \"…\") calls (1 empty fresh page + 5 refusals); fixture bumped to toHaveLength(6)",
    "the new refusal wording is accounted for in the refusals assertion": "refusals toHaveLength(4)->5; each non-empty line still matches BRIDGE_REFUSAL_TEXT (/\\S/), the empty line still asserted via toContain('')",
    "the assertion is re-pinned, not weakened": "the count is tightened to the exact new set (6/5), preserving the empty-line and per-refusal checks — verified green by vitest exit 0"
  },
  "summary": "Re-pinned idip.test.ts bridgeStatusLines() to signin.go's 6 writePage lines after #1523 added the sixth typed refusal.",
  "blockers": []
}
**close-report** for #1594 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit b3dec6ce is not reachable from origin/main (not landed) - changed_files: 'app/tests/e2e/fixtures/idip.test.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1594, "status": "success", "commits": [ "b3dec6ce" ], "changed_files": [ "app/tests/e2e/fixtures/idip.test.ts" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "bridgeStatusLines() scan matches signin.go's actual writePage set": "signin.go now has 6 writePage(w, id, \"…\") calls (1 empty fresh page + 5 refusals); fixture bumped to toHaveLength(6)", "the new refusal wording is accounted for in the refusals assertion": "refusals toHaveLength(4)->5; each non-empty line still matches BRIDGE_REFUSAL_TEXT (/\\S/), the empty line still asserted via toContain('')", "the assertion is re-pinned, not weakened": "the count is tightened to the exact new set (6/5), preserving the empty-line and per-refusal checks — verified green by vitest exit 0" }, "summary": "Re-pinned idip.test.ts bridgeStatusLines() to signin.go's 6 writePage lines after #1523 added the sixth typed refusal.", "blockers": [] } ``` </details>
Author
Member

close-report for #1594 — status success

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

envelope
{
  "issue": 1594,
  "status": "success",
  "commits": [
    "b3dec6ce"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "bridgeStatusLines() scan matches signin.go's actual writePage set": "signin.go now has 6 writePage(w, id, \"…\") calls (1 empty fresh page + 5 refusals); fixture bumped to toHaveLength(6)",
    "the new refusal wording is accounted for in the refusals assertion": "refusals toHaveLength(4)->5; each non-empty line still matches BRIDGE_REFUSAL_TEXT (/\\S/), the empty line still asserted via toContain('')",
    "the assertion is re-pinned, not weakened": "the count is tightened to the exact new set (6/5), preserving the empty-line and per-refusal checks — verified green by vitest exit 0"
  },
  "summary": "Re-pinned idip.test.ts bridgeStatusLines() to signin.go's 6 writePage lines after #1523 added the sixth typed refusal.",
  "blockers": []
}
**close-report** for #1594 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1594, "status": "success", "commits": [ "b3dec6ce" ], "changed_files": [ "app/tests/e2e/fixtures/idip.test.ts" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "bridgeStatusLines() scan matches signin.go's actual writePage set": "signin.go now has 6 writePage(w, id, \"…\") calls (1 empty fresh page + 5 refusals); fixture bumped to toHaveLength(6)", "the new refusal wording is accounted for in the refusals assertion": "refusals toHaveLength(4)->5; each non-empty line still matches BRIDGE_REFUSAL_TEXT (/\\S/), the empty line still asserted via toContain('')", "the assertion is re-pinned, not weakened": "the count is tightened to the exact new set (6/5), preserving the empty-line and per-refusal checks — verified green by vitest exit 0" }, "summary": "Re-pinned idip.test.ts bridgeStatusLines() to signin.go's 6 writePage lines after #1523 added the sixth typed refusal.", "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.

Dependencies

No dependencies set.

Reference
Matou/idss#1594
No description provided.