landing #1759: the app-side idip.test.ts guards still pin the PRE-redesign Members markup — PR #1796 CI red on five source-shape assertions #1798

Closed
opened 2026-09-23 19:18:45 +00:00 by matou-build-agent · 2 comments

Filed by the swarm healer for CI run 31192 (signature b772a58a9a9d), a pull_request run on branch idip-credentials-ui (PR #1796, landing ticket #1759). Stage TypeScript: build (tsc), test (vitest), lint (eslint) exits 1.

What is red

Five assertions in app/tests/e2e/fixtures/idip.test.ts, all of them SOURCE-SHAPE guards that readFileSync the dashboard's own .vue files and match a regex against the markup:

line guard pins
399 the S2i two-step mint (#1080) — the panel gates the join link behind the mint form's submit data-field="preset-${d.slug}" … <input type="checkbox"
455 the T3 merged approve form (#1080) — waiting members under PENDING APPROVALS the pre-CredentialPickCards approve form
518 unlockSigningIfAsked fills whichever phrase box the opened ceremony carries data-action="idip-approve-sign" … !signing.unlocked.value
796 every probed selector names something the dashboard renders IdipRosterPanel.vue: data-field="idip-steward-phrase" … <textarea
851 the S6i archiving is proved off the roster's shipped row shape <li … :data-status="`idip-member-${m.status}`"

Root cause

PR #1796 redesigns the Members tab inside dashboard/ only — its 36 changed files are all under dashboard/ plus STATUS.md and pnpm-lock.yaml. The redesign turns the roster <ul>/<li> into the shared oc-table <tr> ledger, replaces the inline idip-steward-phrase <textarea> strip with the new UnlockSigningDialog.vue, and replaces the preset checkboxes with CredentialPickCards.vue.

The five guards live in app/ and were written against the OLD markup — the 851 one by rehearsal-healer commit 7c5c624e (sig 29a7218e918b), whose whole point was to pin the roster's SHIPPED row shape so a drive helper could not wait on a row that is never rendered. Now the shipped shape moved and the pin did not: CI's received text is the new table-shaped IdipRosterPanel.vue.

This is not a harness fault — the runner, the sandbox and the Forgejo API are all healthy (api 200 in 0.76 s, disk 89%, no stuck git state).

What the fix has to cover

The guards are the contract between the dashboard's markup and the app's Playwright drive helpers in app/tests/e2e/fixtures/idip.ts. Since PR #1796 touches NEITHER file, those drive helpers still click selectors the redesign removed — so re-pinning the guards alone is not enough; the helpers must be moved onto the new surfaces in the same change:

  1. Re-pin the five guards in app/tests/e2e/fixtures/idip.test.ts to the redesigned markup (table row, dialog unlock, credential pick cards), keeping each guard's INTENT — the 851 guard must still refuse a bare tr probe standing in for a roster row, now expressed against the row shape the redesign ships.
  2. Update app/tests/e2e/fixtures/idip.ts (mintInviteInDashboard, approveInDashboard, unlockSigningIfAsked, removeMemberWithFates) for the dialog-raised unlock and the card picker.
  3. Land 1 + 2 on branch idip-credentials-ui, not on main — main's dashboard still ships the <li> roster, so re-pinning on main would red main instead.

Also worth a look while in there: the PR reports mergeable: false against main (820f5fe6), and it adds what looks like a scratch file, dashboard/.shot12.mjs.

Evidence

  • run-verdict.txt (stage/exit + the five ::error lines with the received markup) in the heal evidence bundle heal-Matou-idss-1790190963-2728705.
  • runs.json — run 31192, event pull_request, head branch #1796.
  • Workdir ~/swarm/Matou/idss at c1ae3b24 still has <li> at dashboard/src/components/members/IdipRosterPanel.vue:68, which is why main is green and only the PR is red.

Relates to #1759, PR #1796, #1083, #1080, ADR 0075, DDR 0217.

Filed by the swarm healer for CI run [31192](https://git.matou.nz/Matou/idss/actions/runs/31192) (signature `b772a58a9a9d`), a `pull_request` run on branch `idip-credentials-ui` (PR #1796, landing ticket #1759). Stage `TypeScript: build (tsc), test (vitest), lint (eslint)` exits 1. ## What is red Five assertions in `app/tests/e2e/fixtures/idip.test.ts`, all of them SOURCE-SHAPE guards that `readFileSync` the dashboard's own `.vue` files and match a regex against the markup: | line | guard | pins | |---|---|---| | 399 | the S2i two-step mint (#1080) — the panel gates the join link behind the mint form's submit | `data-field="`preset-${d.slug}`" … <input type="checkbox"` | | 455 | the T3 merged approve form (#1080) — waiting members under PENDING APPROVALS | the pre-`CredentialPickCards` approve form | | 518 | unlockSigningIfAsked fills whichever phrase box the opened ceremony carries | `data-action="idip-approve-sign" … !signing.unlocked.value` | | 796 | every probed selector names something the dashboard renders | `IdipRosterPanel.vue: data-field="idip-steward-phrase" … <textarea` | | 851 | the S6i archiving is proved off the roster's shipped row shape | ``<li … :data-status="`idip-member-${m.status}`"`` | ## Root cause PR #1796 redesigns the Members tab inside `dashboard/` only — its 36 changed files are all under `dashboard/` plus `STATUS.md` and `pnpm-lock.yaml`. The redesign turns the roster `<ul>/<li>` into the shared `oc-table` `<tr>` ledger, replaces the inline `idip-steward-phrase` `<textarea>` strip with the new `UnlockSigningDialog.vue`, and replaces the preset checkboxes with `CredentialPickCards.vue`. The five guards live in `app/` and were written against the OLD markup — the 851 one by rehearsal-healer commit `7c5c624e` (sig `29a7218e918b`), whose whole point was to pin the roster's SHIPPED row shape so a drive helper could not wait on a row that is never rendered. Now the shipped shape moved and the pin did not: CI's received text is the new table-shaped `IdipRosterPanel.vue`. This is not a harness fault — the runner, the sandbox and the Forgejo API are all healthy (api 200 in 0.76 s, disk 89%, no stuck git state). ## What the fix has to cover The guards are the contract between the dashboard's markup and the app's Playwright drive helpers in `app/tests/e2e/fixtures/idip.ts`. Since PR #1796 touches NEITHER file, those drive helpers still click selectors the redesign removed — so re-pinning the guards alone is not enough; the helpers must be moved onto the new surfaces in the same change: 1. Re-pin the five guards in `app/tests/e2e/fixtures/idip.test.ts` to the redesigned markup (table row, dialog unlock, credential pick cards), keeping each guard's INTENT — the 851 guard must still refuse a bare `tr` probe standing in for a roster row, now expressed against the row shape the redesign ships. 2. Update `app/tests/e2e/fixtures/idip.ts` (`mintInviteInDashboard`, `approveInDashboard`, `unlockSigningIfAsked`, `removeMemberWithFates`) for the dialog-raised unlock and the card picker. 3. Land 1 + 2 **on branch `idip-credentials-ui`**, not on main — main's dashboard still ships the `<li>` roster, so re-pinning on main would red main instead. Also worth a look while in there: the PR reports `mergeable: false` against `main` (`820f5fe6`), and it adds what looks like a scratch file, `dashboard/.shot12.mjs`. ## Evidence - `run-verdict.txt` (stage/exit + the five `::error` lines with the received markup) in the heal evidence bundle `heal-Matou-idss-1790190963-2728705`. - `runs.json` — run 31192, event `pull_request`, head branch `#1796`. - Workdir `~/swarm/Matou/idss` at `c1ae3b24` still has `<li>` at `dashboard/src/components/members/IdipRosterPanel.vue:68`, which is why main is green and only the PR is red. Relates to #1759, PR #1796, #1083, #1080, ADR 0075, DDR 0217.
Author
Member

Done on idip-credentials-ui (PR #1796) — handing to a human for the merge.

The five source-shape guards were re-pinned to the redesigned Members markup and the drive helpers moved onto the new surfaces, in commit fec22211 pushed to idip-credentials-ui (PR #1796) — not main, exactly as the ticket's point 3 requires: main still ships the <li> roster, so re-pinning there would red main.

What changed (app/tests/e2e/fixtures/idip.test.ts + idip.ts):

  • S2i mint (399): the preset is now <CredentialPickCards field="preset">; the real checkbox the drive check()s lives in CredentialPickCards.vue keyed `${field}-${c.slug}` — the pin follows it there.
  • T3 approve (455): the sign button is no longer disabled by !signing.unlocked — the ceremony submits to approveOne, whose first act raises the ONE unlock dialog (signing.ensureUnlocked). Same gate, raised by the act.
  • unlock (518): the three per-surface phrase strips collapsed into ONE dialog (UnlockSigningDialog.vue) — twelve unlock-word-N boxes under unlock-phrase, confirmed by unlock-confirm; the roster hosts no strip. The helper fills the raised dialog page-wide (it is mounted outside the panel).
  • probed selectors (796): the contract-name walker now also reads the field=/action=/status= prop form dataAttrs() renders to data-*, so the approval picker's field="credentials-to-issue" is seen as shipped.
  • S6i archiving (851): the <ul>/<li> became the oc-table <tr> ledger, still keyed idip-member-<status>; the archiving proof still reads the keyed memberRow().
  • Helpers approveInDashboard / approveWithPreset / removeMemberWithFates now sign/confirm first (the click raises the dialog) then fill it.

Also cleared the two other things keeping PR #1796's build/test/lint stage red on the branch: the dead const unlocked in PendingRotationScreen.vue (eslint no-unused-vars, its only reader was removed by the redesign) and the scratch file dashboard/.shot12.mjs.

Verified: app vue-tsc clean, idip.test.ts green (56/56), eslint clean across app + dashboard (the pre-push lint gate passed). boot.test.ts/updatesFeed.test.ts and dashboard vue-tsc fail only for go/uqr/lucide absent in this sandbox — install gaps, unrelated.

Why human

The fix is landed on idip-credentials-ui; a human merges PR #1796 to bring it (with the redesign it aligns to) onto main — the landing PR is human-merged (ADR 0267). That merge is the one-way door I can't perform and can't prove from here, so this hands off rather than auto-closing. This ticket resolves with that merge; close it then (PR #1796's closes #1759 won't close #1798).

**Done on `idip-credentials-ui` (PR #1796) — handing to a human for the merge.** The five source-shape guards were re-pinned to the redesigned Members markup and the drive helpers moved onto the new surfaces, in commit `fec22211` pushed to **`idip-credentials-ui`** (PR #1796) — **not main**, exactly as the ticket's point 3 requires: main still ships the `<li>` roster, so re-pinning there would red main. What changed (`app/tests/e2e/fixtures/idip.test.ts` + `idip.ts`): - **S2i mint (399):** the preset is now `<CredentialPickCards field="preset">`; the real checkbox the drive `check()`s lives in `CredentialPickCards.vue` keyed `` `${field}-${c.slug}` `` — the pin follows it there. - **T3 approve (455):** the sign button is no longer disabled by `!signing.unlocked` — the ceremony submits to `approveOne`, whose first act raises the ONE unlock dialog (`signing.ensureUnlocked`). Same gate, raised by the act. - **unlock (518):** the three per-surface phrase strips collapsed into ONE dialog (`UnlockSigningDialog.vue`) — twelve `unlock-word-N` boxes under `unlock-phrase`, confirmed by `unlock-confirm`; the roster hosts no strip. The helper fills the raised dialog page-wide (it is mounted outside the panel). - **probed selectors (796):** the contract-name walker now also reads the `field=`/`action=`/`status=` **prop** form `dataAttrs()` renders to `data-*`, so the approval picker's `field="credentials-to-issue"` is seen as shipped. - **S6i archiving (851):** the `<ul>/<li>` became the `oc-table` `<tr>` ledger, still keyed `idip-member-<status>`; the archiving proof still reads the keyed `memberRow()`. - Helpers `approveInDashboard` / `approveWithPreset` / `removeMemberWithFates` now **sign/confirm first** (the click raises the dialog) then fill it. Also cleared the two other things keeping PR #1796's `build/test/lint` stage red on the branch: the dead `const unlocked` in `PendingRotationScreen.vue` (eslint `no-unused-vars`, its only reader was removed by the redesign) and the scratch file `dashboard/.shot12.mjs`. **Verified:** app `vue-tsc` clean, `idip.test.ts` green (56/56), eslint clean across app + dashboard (the pre-push lint gate passed). `boot.test.ts`/`updatesFeed.test.ts` and dashboard `vue-tsc` fail only for `go`/`uqr`/`lucide` absent in this sandbox — install gaps, unrelated. ## Why human The fix is landed on `idip-credentials-ui`; a human **merges PR #1796** to bring it (with the redesign it aligns to) onto main — the landing PR is human-merged (ADR 0267). That merge is the one-way door I can't perform and can't prove from here, so this hands off rather than auto-closing. This ticket resolves with that merge; close it then (PR #1796's `closes #1759` won't close #1798).
Owner

Closing — resolved by the PR #1796 merge (2026-09-23, merge commit 8ce7d6c0).

  • The re-pin + helper move (fec22211 on idip-credentials-ui) is on main as 1280410d (sandcastle: #1798 — re-pin the app-side idip guards to PR #1796's redesigned Members markup, and move the drive helpers onto the dialog-raised unlock + card picker).
  • The one guard that re-pin left behind — mintPresetInvite still pinning … input + .check() after #1810 moved the helper onto the preset CARD — was #1812, landed on main as 3bd0620f (closed 2026-09-24).
  • Verified at origin/main @ e7cb548d: npx vitest run tests/e2e/fixtures/idip.test.ts → 57 passed / 0 failed. IdipRosterPanel.vue on main ships the oc-table <tr> ledger; the guards pin CredentialPickCards and UnlockSigningDialog / unlock-confirm.

Nothing left on this ticket. The human step it waited on (the landing merge) is done.

**Closing — resolved by the PR #1796 merge (2026-09-23, merge commit `8ce7d6c0`).** - The re-pin + helper move (`fec22211` on `idip-credentials-ui`) is on main as `1280410d` (`sandcastle: #1798 — re-pin the app-side idip guards to PR #1796's redesigned Members markup, and move the drive helpers onto the dialog-raised unlock + card picker`). - The one guard that re-pin left behind — `mintPresetInvite` still pinning `… input` + `.check()` after #1810 moved the helper onto the preset CARD — was #1812, landed on main as `3bd0620f` (closed 2026-09-24). - Verified at `origin/main` @ `e7cb548d`: `npx vitest run tests/e2e/fixtures/idip.test.ts` → **57 passed / 0 failed**. `IdipRosterPanel.vue` on main ships the `oc-table` `<tr>` ledger; the guards pin `CredentialPickCards` and `UnlockSigningDialog` / `unlock-confirm`. Nothing left on this ticket. The human step it waited on (the landing merge) is done.
ben 2026-09-24 16:15:43 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#1798
No description provided.