Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1251
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
ciseam is RED on main and has been sinceb5cb2c30(2026-09-06 00:24:58Z, "#1244 — the three provision/re-apply drives pass the dash getter to installLegCapture"). Three main pushes have landed on top of it (3e8cb171,25d102a8,5855aecf) and every one of them reds the same way.Failing stage (
scripts/seam-smoke.sh:166):TypeScript: build (tsc), test (vitest), lint (eslint).pnpm -r run buildandpnpm -r run testpass; the failure is the last command in the stage,pnpm run lint:Reproduced verbatim at main's head (
5855aecf) with./node_modules/.bin/eslint app/tests/e2e/{provision-archive,provision-nextcloud,settings-brand-reapply}.live.spec.ts.Cause
prefer-constresolves as[2, {destructuring: "any", ignoreReadBeforeAssign: false}](verified viaeslint --print-config). WithignoreReadBeforeAssign: false, the rule reportslet x;…x = v;whenever the declaration and the single write sit in the same scope — even when a closure reads the binding before that write.That is exactly the #1244 shape. In all three drives:
let dash: Page | undefined;is declared in the test callback body,installLegCapture(live.app, live.runDir, () => dash)(the lazy getter) is registered a few lines later, whiledashis still undefined — deliberately, so leg 1 / the founding prefix captures tolerate it,dash = ext.page;is the single write, also directly in the test callback body.The rule's autofix (
const dash = ext.page) would break the drive: it moves the binding belowinstallLegCapture, so the getter closes over a TDZ/undeclareddashand every leg-frame capture throws. Do not apply--fixhere.Why the sibling drives are green:
journey.device.spec.ts:220andjourney.idip.debug.spec.ts:174use the same lazy-dashpattern but write it from a nested scope (journey.device.spec.ts:466inside a callback,journey.idip.debug.spec.ts:176inside atry), whichprefer-constdoes not report. The three #1244 drives write at the same scope level as the declaration. The difference is incidental, not intentional.Fixes on the table (pick one — this needs a call, not a guess)
letand add// eslint-disable-next-line prefer-constwith a one-line why ("read by the installLegCapture getter before the write — const would hoist it below the registration"). Three lines, no Standards-contract change.'prefer-const': ['error', { ignoreReadBeforeAssign: true }]ineslint.config.mjs. This is ESLint's documented escape hatch for precisely the declare → closure-reads → assign-later shape, and it would cover the pattern everywhere rather than three times. Buteslint.config.mjsbills itself as "the Standards review contract for TypeScript" (CODING-STANDARDS.md), so loosening a rule there is a standards decision, not a mechanical repair — hence this ticket rather than a healer commit.Adjacent gap (not this ticket's fix, worth a look)
.sandcastle/git-hooks/pre-pushgates factory drift (#932) and Go (#198), but has no TypeScript lint gate. A TS lint break therefore lands on main and is only caught post-push byci. That is howb5cb2c30shipped red and why three further commits rode on top of it. If the shape recurs, a pre-pushpnpm run linton changed TS would close it.Evidence
heal-Matou-idss-1788666697-3679075, signature64b0fa91dd74, run https://git.matou.nz/Matou/idss/actions/runs/18682run-verdict.txt:stage=TypeScript: build (tsc), test (vitest), lint (eslint)/exit=1/ELIFECYCLE Command failed with exit code 1.swarm-claim host=matou-dev-server-01 run=18673
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling: Fix 1 (product-local eslint-disable), not Fix 2 (config).
Each of the three #1244 drives keeps
let dashand gains a// eslint-disable-next-line prefer-constwith a one-line why (theinstallLegCapturegetter closes overdashbefore the single write, so--fixtoconstwould hoist the binding below the registration and every leg-frame capture would throw a TDZ). Three lines, zero change toeslint.config.mjs— the Standards review contract stays intact, so this is a mechanical CI repair rather than a standards loosening.Why two-way: fully revertible by a later commit (delete three comment lines, or swap in Fix 2 if a session later prefers the repo-wide
ignoreReadBeforeAssign: true), and provable by an existing check —pnpm run lintgoes from red to green. Not on the one-way-door list (no credentials, no security-posture widening, no trust accept, no data destruction, no spend).Proof:
eslint app/tests/e2e/{provision-archive,provision-nextcloud,settings-brand-reapply}.live.spec.tsred before / green after.The adjacent pre-push TS-lint-gate gap is noted but out of scope here (protected path
.sandcastle/git-hooks/pre-push, #445) — filing separately if it is not already tracked.close-report for #1251 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope