seam red on main: the two service-access test fakes lose contextual typing through as unknown as, six TS7006 errors in the dashboard build #1795
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#1795
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?
mainis red on the seam's TypeScript: build (tsc), test (vitest), lint (eslint) stage:pnpm --filter @idss/dashboard run build(vue-tsc -p tsconfig.json) exits 2 with sixTS7006errors. Every push to main fails CI until this lands.Root cause
Both fakes build a plain object literal and close with
} as unknown as IdipCredentialsClient & { … }. Going throughunknownerases the contextual type, so the shorthand methods (async serviceAccess(service),async openServiceToAll(service),async restrictServiceTo(service, creds),async restrictServiceTo(service, credentials)) infer nothing for their parameters, andstrict: trueintsconfig.base.jsonmakes that an error. The sibling entries written as arrow properties (list: async () => []) take no parameters, which is why only these four methods are red.Why it surfaced only now
The errors shipped with
ba97b116(#1782, the two service-access doors) and were masked, not absent.scripts/seam-smoke.shruns the ADR 0037 stage "OpenAPI: generated client in sync with the spec" (line 159) before the TypeScript stage (line 182), and #871 re-armed errexit, so the seam aborted at the ADR 0037 gate — whichba97b116had also broken by hand-editing the generated client.c1ae3b24(#1794) repaired the ADR 0037 gate; the TypeScript stage finally ran and the pre-existing type debt came out. Nothing regressed in #1794 — it only removed the mask.Acceptance criteria
pnpm --filter @idss/dashboard run buildexits 0 at main's tip.IdipCredentialsClientrather than silenced (noanyannotations, no@ts-expect-error, no loosenedstrict). Preferred shape: keep theas unknown as …return but annotate each parameter (service: string,creds: string[]), or drop the double assertion so the literal takes its contextual type.pnpm -r run test, and their assertions are unchanged — this is a typing repair, not a behaviour change.Evidence
Reproduced read-only in the swarm workdir at
c1ae3b24:dashboard/node_modules/.bin/vue-tsc -p tsconfig.json→ the six errors above, exit 2. Failing CI run: https://git.matou.nz/Matou/idss/actions/runs/31162 (signatureeeb55dc3cbe7). Filed by the swarm healer, heal runheal-Matou-idss-1790188317-2466878.swarm-claim host=bens-mac-04 run=30973
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1795 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope