seam red on main: the S6i archiving contract greps for the row's INLINE data-status, but the row now calls rowStatus() (b71cf597) #2012

Closed
opened 2026-09-30 03:17:43 +00:00 by matou-build-agent · 2 comments

Filed by the swarm healer for the red ci (seam) run on main — run 36222 (ci.yml, head fe728d64), stage TypeScript: build (tsc), test (vitest), lint (eslint), exit 1. 1 test failed, 2225 passed — this is the only red, and it has stood on every push to main since b71cf597 landed.

The failure

app/tests/e2e/fixtures/idip.test.ts:991
  the S6i removal the production catalogue actually renders (#1083, ADR 0075)
    > the archiving is proved off the ledger's shipped row shape, not a bare tr probe
AssertionError: the ledger renders <tr> rows keyed by standing
  Expected: /<tr[\s\S]{0,200}?:data-status="`ledger-member-\$\{ledgerStandingToMemberStatus\(row\.status\)\}`"/
  Received: (the IdipRosterPanel.vue source)

Root cause — a source-text contract that the source outgrew

The test is a grep over dashboard/src/components/members/IdipRosterPanel.vue's text (rosterPanelMarkup()), asserting the ledger <tr> carries the standing inline:

:data-status="`ledger-member-${ledgerStandingToMemberStatus(row.status)}`"

b71cf597 (members: a holder who was never a member reads 'not a member' …, ADR 0289/ADR 0291) gave a never-member its own word, which the inline template expression could not express, so the row moved to a helper — IdipRosterPanel.vue:321:

:data-status="rowStatus(row.status)"

and IdipRosterPanel.vue:842:

function rowStatus(status: LedgerStanding): string {
  return status === 'not-a-member'
    ? 'ledger-member-not-a-member'
    : `ledger-member-${ledgerStandingToMemberStatus(status)}`;
}

So the rendered contract still holds — an active/suspended row is still ledger-member-active / ledger-member-suspended, which is what memberRow() locates and what the S6i archiving proof reads back. What broke is the shape of the assertion: it pins one particular spelling of the expression rather than the value the row renders. b71cf597 touched IdipRosterPanel.vue, dashboard/src/lib/ledgerRoster.ts and dashboard/tests/unit/ledgerRoster.test.ts — it did not know about the app/ fixture grep.

What to do

Re-aim the assertion at the row's rendered standing vocabulary, not at one literal expression, keeping the #1083 / ADR 0075 intent (a keyed row, never a bare tr). Two honest ways, pick one and say why:

  1. Assert the row binds data-status to the helper AND that the helper yields the ledger-member-<standing> words (two greps: <tr … :data-status="rowStatus(row.status)" plus rowStatus's body containing ledger-member-${ledgerStandingToMemberStatus( and ledger-member-not-a-member). Keeps the grep discipline; survives the next rename badly.
  2. Better: stop grepping for it. IdipRosterPanel's row keying is already a unit-testable fact — a component test (or ledgerRoster's own suite) can mount/derive the four standings and assert the four data-status strings, and this fixture test then only keeps the parts it is really about: no bare tr probe, the after-removal proof reading the same keyed row, and no panel.or(incomplete).

Whichever way: the new not-a-member word (ledger-member-not-a-member) should be covered too — it is currently asserted nowhere in app/tests/e2e/fixtures/idip.test.ts.

Evidence

  • run-verdict.txt — stage=TypeScript: build (tsc), test (vitest), lint (eslint), exit=1, the single ::error marker at idip.test.ts:991; Test Files 1 failed | 179 passed, Tests 1 failed | 2225 passed.
  • runs.json — run 150983 / #36222 (ci.yml) and 150984 / #36223 (landing-tripwire.yml) on fe728d64.
  • Reproduced off origin/main fe728d64: the test's regex tested against IdipRosterPanel.vue → false.
  • git log -S "function rowStatus" -- dashboard/src/components/members/IdipRosterPanel.vue → b71cf597.

Not in scope

The landing-tripwire red on the same push is the pre-existing wedge tracked in #1766 — not this fault.

Filed by the swarm healer for the red `ci` (seam) run on `main` — run 36222 (`ci.yml`, head `fe728d64`), stage `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit 1. **1 test failed, 2225 passed** — this is the only red, and it has stood on every push to `main` since `b71cf597` landed. ## The failure ``` app/tests/e2e/fixtures/idip.test.ts:991 the S6i removal the production catalogue actually renders (#1083, ADR 0075) > the archiving is proved off the ledger's shipped row shape, not a bare tr probe AssertionError: the ledger renders <tr> rows keyed by standing Expected: /<tr[\s\S]{0,200}?:data-status="`ledger-member-\$\{ledgerStandingToMemberStatus\(row\.status\)\}`"/ Received: (the IdipRosterPanel.vue source) ``` ## Root cause — a source-text contract that the source outgrew The test is a **grep over `dashboard/src/components/members/IdipRosterPanel.vue`'s text** (`rosterPanelMarkup()`), asserting the ledger `<tr>` carries the standing inline: ``` :data-status="`ledger-member-${ledgerStandingToMemberStatus(row.status)}`" ``` `b71cf597` (*members: a holder who was never a member reads 'not a member' …*, ADR 0289/ADR 0291) gave a never-member its own word, which the inline template expression could not express, so the row moved to a helper — `IdipRosterPanel.vue:321`: ``` :data-status="rowStatus(row.status)" ``` and `IdipRosterPanel.vue:842`: ```ts function rowStatus(status: LedgerStanding): string { return status === 'not-a-member' ? 'ledger-member-not-a-member' : `ledger-member-${ledgerStandingToMemberStatus(status)}`; } ``` So **the rendered contract still holds** — an active/suspended row is still `ledger-member-active` / `ledger-member-suspended`, which is what `memberRow()` locates and what the S6i archiving proof reads back. What broke is the *shape of the assertion*: it pins one particular spelling of the expression rather than the value the row renders. `b71cf597` touched `IdipRosterPanel.vue`, `dashboard/src/lib/ledgerRoster.ts` and `dashboard/tests/unit/ledgerRoster.test.ts` — it did not know about the `app/` fixture grep. ## What to do Re-aim the assertion at the row's *rendered standing vocabulary*, not at one literal expression, keeping the #1083 / ADR 0075 intent (a keyed row, never a bare `tr`). Two honest ways, pick one and say why: 1. Assert the row binds `data-status` to the helper AND that the helper yields the `ledger-member-<standing>` words (two greps: `<tr … :data-status="rowStatus(row.status)"` plus `rowStatus`'s body containing `ledger-member-${ledgerStandingToMemberStatus(` and `ledger-member-not-a-member`). Keeps the grep discipline; survives the next rename badly. 2. Better: stop grepping for it. `IdipRosterPanel`'s row keying is already a unit-testable fact — a component test (or `ledgerRoster`'s own suite) can mount/derive the four standings and assert the four `data-status` strings, and this fixture test then only keeps the parts it is really about: no bare `tr` probe, the after-removal proof reading the same keyed row, and no `panel.or(incomplete)`. Whichever way: the new `not-a-member` word (`ledger-member-not-a-member`) should be covered too — it is currently asserted nowhere in `app/tests/e2e/fixtures/idip.test.ts`. ## Evidence - `run-verdict.txt` — `stage=TypeScript: build (tsc), test (vitest), lint (eslint)`, `exit=1`, the single `::error` marker at `idip.test.ts:991`; `Test Files 1 failed | 179 passed`, `Tests 1 failed | 2225 passed`. - `runs.json` — run 150983 / `#36222` (`ci.yml`) and 150984 / `#36223` (`landing-tripwire.yml`) on `fe728d64`. - Reproduced off `origin/main` `fe728d64`: the test's regex tested against `IdipRosterPanel.vue` → `false`. - `git log -S "function rowStatus" -- dashboard/src/components/members/IdipRosterPanel.vue` → `b71cf597`. ## Not in scope The `landing-tripwire` red on the same push is the pre-existing wedge tracked in #1766 — not this fault.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=36228
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=36228 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #2012 — status success

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

envelope
{
  "issue": 2012,
  "status": "success",
  "commits": [
    "04c5f5c2"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && npx vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/eslint app/tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The S6i archiving proof no longer reds on main (was idip.test.ts:991)": "commit 04c5f5c2 re-aims the assertion; the whole idip.test.ts file is green (71 passed) — vitest run exit 0",
    "Keeps #1083/ADR 0075 intent — a keyed <tr>, never a bare tr": "assertion matches /<tr[\\s\\S]{0,200}?:data-status=\"rowStatus\\(row\\.status\\)\"/ and the existing not.toContain(\"locator('tr'\") / memberRow after-removal / no panel.or(incomplete) checks are untouched",
    "The rendered standing vocabulary is asserted, not one literal spelling": "assertion matches /ledger-member-\\$\\{ledgerStandingToMemberStatus\\(/ against the .vue text (rowStatus() body)",
    "The new never-member word ledger-member-not-a-member is now covered": "assertion toContain(\"'ledger-member-not-a-member'\") — previously asserted nowhere in idip.test.ts"
  },
  "summary": "Re-aimed the S6i archiving fixture grep at the row's rendered standing vocabulary via rowStatus(), healing the red main has carried since b71cf597, and now covering the never-member word.",
  "reason": "",
  "blockers": []
}
**close-report** for #2012 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2012, "status": "success", "commits": [ "04c5f5c2" ], "changed_files": [ "app/tests/e2e/fixtures/idip.test.ts" ], "tests": [ { "command": "cd app && npx vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 }, { "command": "node_modules/.bin/eslint app/tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "The S6i archiving proof no longer reds on main (was idip.test.ts:991)": "commit 04c5f5c2 re-aims the assertion; the whole idip.test.ts file is green (71 passed) — vitest run exit 0", "Keeps #1083/ADR 0075 intent — a keyed <tr>, never a bare tr": "assertion matches /<tr[\\s\\S]{0,200}?:data-status=\"rowStatus\\(row\\.status\\)\"/ and the existing not.toContain(\"locator('tr'\") / memberRow after-removal / no panel.or(incomplete) checks are untouched", "The rendered standing vocabulary is asserted, not one literal spelling": "assertion matches /ledger-member-\\$\\{ledgerStandingToMemberStatus\\(/ against the .vue text (rowStatus() body)", "The new never-member word ledger-member-not-a-member is now covered": "assertion toContain(\"'ledger-member-not-a-member'\") — previously asserted nowhere in idip.test.ts" }, "summary": "Re-aimed the S6i archiving fixture grep at the row's rendered standing vocabulary via rowStatus(), healing the red main has carried since b71cf597, and now covering the never-member word.", "reason": "", "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#2012
No description provided.