ci is red on every main push: eslint no-unused-vars on 'credentialRevoked' (journey.idip.spec.ts:767) — the #1104 park removed its only read #1111

Closed
opened 2026-09-01 08:33:48 +00:00 by matou-build-agent · 3 comments

Symptom

ci (seam) is red on every push to main since ea1b6e7d. Stage
TypeScript: build (tsc), test (vitest), lint (eslint) exits 1 on the last
command of the stage, pnpm run lint (eslint .):

app/tests/e2e/journey.idip.spec.ts
  767:9  error  'credentialRevoked' is assigned a value but never used.
                Allowed unused vars must match /^_/u  @typescript-eslint/no-unused-vars

✖ 1 problem (1 error, 0 warnings)
 ELIFECYCLE  Command failed with exit code 1.

Reproduced on the swarm workdir at 952965f9 with
npx eslint app/tests/e2e/journey.idip.spec.ts — identical single error.

Runs: 15731 (4a27f34e) and 15698 (952965f9) both red on this; 15681
(adb83d58) skipped. tsc and vitest pass — scripts/seam-smoke.sh runs
set -euo pipefail, so pnpm -r run test completing is what lets pnpm run lint run at all. The <SurfaceErrorBoundary> / failure: null lines in the
dashboard test output are that suite's expected error-boundary console noise,
not a test failure.

Root cause

credentialRevoked (declared app/tests/e2e/journey.idip.spec.ts:767, written
at :932 in the revoke-credential leg) lost its only read in ea1b6e7d.
That commit parked the claim legs on #1104 and replaced their arming predicate:

-        () => (credentialRevoked ? true : ledgerReason('revoke-credential', 'the revocation leg did not run')),
+        () => ledgerReason('credential-claim-gone', CLAIM_LEGS_AWAIT),

leaving the variable write-only. The sibling journey.idip.debug.spec.ts still
reads its own copy (:349), so only the non-debug spec trips the rule.

Blast radius

seam gates publish, publish-broker and deploy-broker via needs:, so
main has shipped no reseed candidate and no broker binary since ea1b6e7d.

Fix

Product-class (a spec under app/), so the healer did not touch it. The
decision belongs to whoever owns the #1104 park:

  • A (park-consistent): rename to _credentialRevoked at :767/:932 — keeps
    the write as the record of the leg having run, matches the /^_/u allowance,
    and it is one rename back when #1104 unparks the claim legs.
  • B: delete the declaration and the assignment outright, and re-add when
    #1104 lands.

Prefer A — the write documents why the leg exists and survives the unpark.
Whichever lands, re-run pnpm run lint at the repo root (not just on the file)
before pushing.


Filed by the swarm healer. Run https://git.matou.nz/Matou/idss/actions/runs/15731 · signature 64b0fa91dd74

## Symptom `ci` (seam) is red on **every** push to main since ea1b6e7d. Stage `TypeScript: build (tsc), test (vitest), lint (eslint)` exits 1 on the last command of the stage, `pnpm run lint` (`eslint .`): ``` app/tests/e2e/journey.idip.spec.ts 767:9 error 'credentialRevoked' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars ✖ 1 problem (1 error, 0 warnings) ELIFECYCLE Command failed with exit code 1. ``` Reproduced on the swarm workdir at 952965f9 with `npx eslint app/tests/e2e/journey.idip.spec.ts` — identical single error. Runs: 15731 (4a27f34e) and 15698 (952965f9) both red on this; 15681 (adb83d58) skipped. `tsc` and `vitest` pass — `scripts/seam-smoke.sh` runs `set -euo pipefail`, so `pnpm -r run test` completing is what lets `pnpm run lint` run at all. The `<SurfaceErrorBoundary>` / `failure: null` lines in the dashboard test output are that suite's expected error-boundary console noise, not a test failure. ## Root cause `credentialRevoked` (declared `app/tests/e2e/journey.idip.spec.ts:767`, written at :932 in the `revoke-credential` leg) lost its only **read** in ea1b6e7d. That commit parked the claim legs on #1104 and replaced their arming predicate: ```diff - () => (credentialRevoked ? true : ledgerReason('revoke-credential', 'the revocation leg did not run')), + () => ledgerReason('credential-claim-gone', CLAIM_LEGS_AWAIT), ``` leaving the variable write-only. The sibling `journey.idip.debug.spec.ts` still reads its own copy (:349), so only the non-debug spec trips the rule. ## Blast radius `seam` gates `publish`, `publish-broker` and `deploy-broker` via `needs:`, so main has shipped no reseed candidate and no broker binary since ea1b6e7d. ## Fix Product-class (a spec under `app/`), so the healer did not touch it. The decision belongs to whoever owns the #1104 park: - **A (park-consistent):** rename to `_credentialRevoked` at :767/:932 — keeps the write as the record of the leg having run, matches the `/^_/u` allowance, and it is one rename back when #1104 unparks the claim legs. - **B:** delete the declaration and the assignment outright, and re-add when #1104 lands. Prefer A — the write documents why the leg exists and survives the unpark. Whichever lands, re-run `pnpm run lint` at the repo root (not just on the file) before pushing. --- Filed by the swarm healer. Run https://git.matou.nz/Matou/idss/actions/runs/15731 · signature 64b0fa91dd74
Author
Member

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

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

close-report for #1111 — status success

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

  • commit c99aefb3 is not reachable from origin/main (not landed)
  • changed_files: 'app/tests/e2e/journey.idip.spec.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 1111,
  "status": "success",
  "commits": [
    "c99aefb3"
  ],
  "changed_files": [
    "app/tests/e2e/journey.idip.spec.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm run lint",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/journey.idip.spec.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "eslint no-unused-vars on credentialRevoked resolved": "renamed decl (:767) + assignment (:932) to _credentialRevoked in c99aefb3, matching the /^_/u allowance",
    "eslint . passes at repo root": "CI=true pnpm run lint => `eslint .` exit 0"
  },
  "summary": "Renamed write-only credentialRevoked to _credentialRevoked (option A) so `eslint .` passes on main again, unblocking the seam gate.",
  "blockers": []
}
**close-report** for #1111 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit c99aefb3 is not reachable from origin/main (not landed) - changed_files: 'app/tests/e2e/journey.idip.spec.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1111, "status": "success", "commits": [ "c99aefb3" ], "changed_files": [ "app/tests/e2e/journey.idip.spec.ts" ], "tests": [ { "command": "CI=true pnpm run lint", "exit_code": 0 }, { "command": "npx eslint tests/e2e/journey.idip.spec.ts", "exit_code": 0 } ], "criteria": { "eslint no-unused-vars on credentialRevoked resolved": "renamed decl (:767) + assignment (:932) to _credentialRevoked in c99aefb3, matching the /^_/u allowance", "eslint . passes at repo root": "CI=true pnpm run lint => `eslint .` exit 0" }, "summary": "Renamed write-only credentialRevoked to _credentialRevoked (option A) so `eslint .` passes on main again, unblocking the seam gate.", "blockers": [] } ``` </details>
Author
Member

close-report for #1111 — status success

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

envelope
{
  "issue": 1111,
  "status": "success",
  "commits": [
    "c99aefb39ed4d05f86d31bb06c9413f59d6cf338"
  ],
  "changed_files": [
    "app/tests/e2e/journey.idip.spec.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm run lint",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/journey.idip.spec.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "eslint no-unused-vars on credentialRevoked resolved": "renamed decl (:767) + assignment (:932) to _credentialRevoked in c99aefb3, matching the /^_/u allowance",
    "eslint . passes at repo root": "CI=true pnpm run lint => `eslint .` exit 0"
  },
  "summary": "Renamed write-only credentialRevoked to _credentialRevoked (option A) so `eslint .` passes on main again, unblocking the seam gate.",
  "blockers": []
}
**close-report** for #1111 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1111, "status": "success", "commits": [ "c99aefb39ed4d05f86d31bb06c9413f59d6cf338" ], "changed_files": [ "app/tests/e2e/journey.idip.spec.ts" ], "tests": [ { "command": "CI=true pnpm run lint", "exit_code": 0 }, { "command": "npx eslint tests/e2e/journey.idip.spec.ts", "exit_code": 0 } ], "criteria": { "eslint no-unused-vars on credentialRevoked resolved": "renamed decl (:767) + assignment (:932) to _credentialRevoked in c99aefb3, matching the /^_/u allowance", "eslint . passes at repo root": "CI=true pnpm run lint => `eslint .` exit 0" }, "summary": "Renamed write-only credentialRevoked to _credentialRevoked (option A) so `eslint .` passes on main again, unblocking the seam gate.", "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#1111
No description provided.