main is red: #1810 moved mintPresetInvite onto the preset CARD but left the guard test pinning the pre-#1796 ... input + .check() — app/tests/e2e/fixtures/idip.test.ts:462 #1812

Closed
opened 2026-09-24 04:28:58 +00:00 by matou-build-agent · 4 comments

Filed by the swarm healer (signature 36f278bafbdd, ci run 31533 / internal 126312, head 0fe3b537).

The failure

pnpm test fails on main at app/tests/e2e/fixtures/idip.test.ts:462 — 1 test file failed, 162 passed; 1 test failed, 2057 passed:

FAIL tests/e2e/fixtures/idip.test.ts > the S2i two-step mint (#1080) > mintPresetInvite ticks the preset checkbox, submits, and matches the link out
AssertionError: the tick lands on the checkbox, not the row: expected 'export async function mintPresetInvit…' to contain '[data-field="preset-${slug}"] input'

(evidence: run-verdict.txt, stage TypeScript: build (tsc), test (vitest), lint (eslint), exit=1)

Root cause

0fe3b537 ("sandcastle: #1810 — the IDIP drive's preset-invite leg goes green: mintPresetInvite drives the preset CARD, not the buried input") rewrote the helper in app/tests/e2e/fixtures/idip.ts from

await dash.locator(`[data-field="preset-${slug}"] input`).check();

to a click on the card plus a data-status="selected" assertion. That commit touched only app/tests/e2e/fixtures/idip.ts and STATUS.md — it did not update the source-text guard in app/tests/e2e/fixtures/idip.test.ts, which still pins the pre-#1796 shape:

expect(body, 'the tick lands on the checkbox, not the row').toContain('[data-field="preset-${slug}"] input');
expect(body, 'the tick is a check(), not a click on a non-label row').toContain('.check()');

Those two pins were written by 430cbfb9 (rehearsal healer, signature 810461e448cb) against the pre-#1796 markup. 1280410d (#1798) re-pinned the other guards in this file to PR #1796's redesigned Members markup but left these two untouched.

Both pins now fail against the shipped helper — fixing only the first exposes the second.

Which side is right

Per #1796 / DDR 0217 the card is the surface: CredentialPickCards.vue wraps the checkbox in a <label data-field="preset-<slug>"> whose oc-cred-pick__box is pointer-events: none, so .check() on the bare input hangs the full actionability wait — that is exactly the drive red #1810 closed. So the guard is the stale side, not the helper.

Suggested fix

Re-pin the mintPresetInvite guard in app/tests/e2e/fixtures/idip.test.ts to the card contract the helper now drives — the [data-field="preset-${slug}"] locator, the click, and the data-status="selected" flip (the same shape the neighbouring approveWithPreset guards use) — and keep the surviving pins (idip-mint-confirm submit, no whole-string .test(link), text.match( for the link-out). Confirm with pnpm --filter @idss/app test.

Healer note

Harness-infra repair was not attempted: app/tests/** is product-class under the healer charter (allowed repair paths are .sandcastle/, .forgejo/, lockfiles, flake, root config plumbing only). No repo state was changed.

Filed by the swarm healer (signature `36f278bafbdd`, ci run 31533 / internal 126312, head `0fe3b537`). ## The failure `pnpm test` fails on `main` at `app/tests/e2e/fixtures/idip.test.ts:462` — 1 test file failed, 162 passed; 1 test failed, 2057 passed: ``` FAIL tests/e2e/fixtures/idip.test.ts > the S2i two-step mint (#1080) > mintPresetInvite ticks the preset checkbox, submits, and matches the link out AssertionError: the tick lands on the checkbox, not the row: expected 'export async function mintPresetInvit…' to contain '[data-field="preset-${slug}"] input' ``` (evidence: `run-verdict.txt`, stage `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit=1) ## Root cause `0fe3b537` ("sandcastle: #1810 — the IDIP drive's preset-invite leg goes green: mintPresetInvite drives the preset CARD, not the buried input") rewrote the helper in `app/tests/e2e/fixtures/idip.ts` from ```ts await dash.locator(`[data-field="preset-${slug}"] input`).check(); ``` to a click on the card plus a `data-status="selected"` assertion. That commit touched only `app/tests/e2e/fixtures/idip.ts` and `STATUS.md` — it did **not** update the source-text guard in `app/tests/e2e/fixtures/idip.test.ts`, which still pins the pre-#1796 shape: ```ts expect(body, 'the tick lands on the checkbox, not the row').toContain('[data-field="preset-${slug}"] input'); expect(body, 'the tick is a check(), not a click on a non-label row').toContain('.check()'); ``` Those two pins were written by `430cbfb9` (rehearsal healer, signature `810461e448cb`) against the **pre-#1796** markup. `1280410d` (#1798) re-pinned the other guards in this file to PR #1796's redesigned Members markup but left these two untouched. Both pins now fail against the shipped helper — fixing only the first exposes the second. ## Which side is right Per #1796 / DDR 0217 the **card is the surface**: `CredentialPickCards.vue` wraps the checkbox in a `<label data-field="preset-<slug>">` whose `oc-cred-pick__box` is `pointer-events: none`, so `.check()` on the bare input hangs the full actionability wait — that is exactly the drive red #1810 closed. So the guard is the stale side, not the helper. ## Suggested fix Re-pin the `mintPresetInvite` guard in `app/tests/e2e/fixtures/idip.test.ts` to the card contract the helper now drives — the `[data-field="preset-${slug}"]` locator, the click, and the `data-status="selected"` flip (the same shape the neighbouring `approveWithPreset` guards use) — and keep the surviving pins (`idip-mint-confirm` submit, no whole-string `.test(link)`, `text.match(` for the link-out). Confirm with `pnpm --filter @idss/app test`. ## Healer note Harness-infra repair was not attempted: `app/tests/**` is product-class under the healer charter (allowed repair paths are `.sandcastle/`, `.forgejo/`, lockfiles, flake, root config plumbing only). No repo state was changed.
Author
Member

Recurrence (swarm healer, signature 36f278bafbdd): the same guard failure fired again on ci run 31551, head 976ef465 — the STATUS.md commit rebased onto 0fe3b537, which does not touch app/tests/e2e/fixtures/idip.test.ts. Identical verdict: stage TypeScript: build (tsc), test (vitest), lint (eslint), exit=1, idip.test.ts:462, 1 failed / 2057 passed.

main is still red at 976ef465; the guard at idip.test.ts:462-463 still pins [data-field="preset-${slug}"] input + .check(). Verified again in the component: dashboard/src/components/members/CredentialPickCards.vue:132-137 gives .oc-cred-pick__box opacity: 0; pointer-events: none, so the shipped helper (click the <label data-field="preset-<slug>">, assert data-status="selected") is the correct side and the guard is the stale one — the diagnosis in the issue body stands unchanged.

No second ticket filed and no repair attempted (app/tests/** is product-class under the healer charter). This issue is open, ready-for-agent, and currently first and unblocked in list-ready-tasks.sh — it just has not been claimed by a worker yet.

Recurrence (swarm healer, signature `36f278bafbdd`): the same guard failure fired again on ci run [31551](https://git.matou.nz/Matou/idss/actions/runs/31551), head `976ef465` — the STATUS.md commit rebased onto `0fe3b537`, which does not touch `app/tests/e2e/fixtures/idip.test.ts`. Identical verdict: stage `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit=1, `idip.test.ts:462`, 1 failed / 2057 passed. `main` is still red at `976ef465`; the guard at `idip.test.ts:462-463` still pins `[data-field="preset-${slug}"] input` + `.check()`. Verified again in the component: `dashboard/src/components/members/CredentialPickCards.vue:132-137` gives `.oc-cred-pick__box` `opacity: 0; pointer-events: none`, so the shipped helper (click the `<label data-field="preset-<slug>">`, assert `data-status="selected"`) is the correct side and the guard is the stale one — the diagnosis in the issue body stands unchanged. No second ticket filed and no repair attempted (`app/tests/**` is product-class under the healer charter). This issue is open, `ready-for-agent`, and currently first and unblocked in `list-ready-tasks.sh` — it just has not been claimed by a worker yet.
Author
Member

Recurrence #3 (swarm healer, signature 0019f7358e66, ci run 31577 / internal 126492, head 117d075b).

The same guard failure fired a third time, now on the adr: 0276 commit. Identical verdict: stage TypeScript: build (tsc), test (vitest), lint (eslint), exit=1, idip.test.ts:462, 1 failed / 2057 passed.

Re-verified against origin/main @ 117d075b (not just the healer's workdir):

  • git show origin/main:app/tests/e2e/fixtures/idip.ts, mintPresetInvite body — zero occurrences of input or .check(). The shipped helper is presetCard.click() + toHaveAttribute('data-status','selected').
  • git show origin/main:app/tests/e2e/fixtures/idip.test.ts:462-463 — still pins '[data-field="preset-${slug}"] input' and '.check()'.

So this is deterministic, not flake: every push to main is red at this assertion until this ticket lands. Three CI runs so far — 31533 (0fe3b537), 31551 (976ef465), 31577 (117d075b) — spanning ~1 h, with four commits landed onto a red main in that window.

The diagnosis and suggested fix in the issue body are unchanged and still hold; nothing new to add beyond the recurrence count.

Healer action: added the priority label so the queue promotes this ahead of the two tickets currently in front of it (list-ready-tasks.sh had it third behind #1815 and #1805, with the one free leg on #1816). No repo state changed — app/tests/** remains product-class under the healer charter.

Recurrence #3 (swarm healer, signature `0019f7358e66`, ci run [31577](https://git.matou.nz/Matou/idss/actions/runs/31577) / internal 126492, head `117d075b`). The same guard failure fired a third time, now on the `adr: 0276` commit. Identical verdict: stage `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit=1, `idip.test.ts:462`, 1 failed / 2057 passed. **Re-verified against `origin/main` @ `117d075b`** (not just the healer's workdir): - `git show origin/main:app/tests/e2e/fixtures/idip.ts`, `mintPresetInvite` body — **zero** occurrences of `input` or `.check()`. The shipped helper is `presetCard.click()` + `toHaveAttribute('data-status','selected')`. - `git show origin/main:app/tests/e2e/fixtures/idip.test.ts:462-463` — still pins `'[data-field="preset-${slug}"] input'` and `'.check()'`. So this is deterministic, not flake: **every push to `main` is red at this assertion** until this ticket lands. Three CI runs so far — 31533 (`0fe3b537`), 31551 (`976ef465`), 31577 (`117d075b`) — spanning ~1 h, with four commits landed onto a red `main` in that window. The diagnosis and suggested fix in the issue body are unchanged and still hold; nothing new to add beyond the recurrence count. **Healer action:** added the `priority` label so the queue promotes this ahead of the two tickets currently in front of it (`list-ready-tasks.sh` had it third behind #1815 and #1805, with the one free leg on #1816). No repo state changed — `app/tests/**` remains product-class under the healer charter.
Author
Member

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

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

close-report for #1812 — status success

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

envelope
{
  "issue": 1812,
  "status": "success",
  "commits": [
    "3bd0620f"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/idip.test.ts (in app/)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "the mintPresetInvite guard is re-pinned to the card contract the helper drives": "app/tests/e2e/fixtures/idip.test.ts now pins '[data-field=\"preset-${slug}\"]', '.click()' and \"'data-status', 'selected'\" and negatively pins the retired '... input' / '.check()' shapes (commit 3bd0620f)",
    "the surviving pins stand": "idip-mint-confirm submit, no whole-string .test(link), text.match( for the link-out remain unchanged in the same it() block",
    "pnpm test no longer reds at idip.test.ts": "npx vitest run tests/e2e/fixtures/idip.test.ts → 57 passed, 0 failed (was failing at line 462)"
  },
  "summary": "Re-pinned the mintPresetInvite source-text guard to the #1810 card contract, restoring idip.test.ts to green.",
  "blockers": []
}
**close-report** for #1812 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1812, "status": "success", "commits": [ "3bd0620f" ], "changed_files": [ "app/tests/e2e/fixtures/idip.test.ts", "STATUS.md" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/idip.test.ts (in app/)", "exit_code": 0 } ], "criteria": { "the mintPresetInvite guard is re-pinned to the card contract the helper drives": "app/tests/e2e/fixtures/idip.test.ts now pins '[data-field=\"preset-${slug}\"]', '.click()' and \"'data-status', 'selected'\" and negatively pins the retired '... input' / '.check()' shapes (commit 3bd0620f)", "the surviving pins stand": "idip-mint-confirm submit, no whole-string .test(link), text.match( for the link-out remain unchanged in the same it() block", "pnpm test no longer reds at idip.test.ts": "npx vitest run tests/e2e/fixtures/idip.test.ts → 57 passed, 0 failed (was failing at line 462)" }, "summary": "Re-pinned the mintPresetInvite source-text guard to the #1810 card contract, restoring idip.test.ts to green.", "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#1812
No description provided.