app: tsc --noEmit red on main — AppUpdateSurface named import from *.vue shim (+ foundingPage.test.ts:287) #1854
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#1854
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?
Found while landing #1834 (WKT-DEMO Drive A Task 6). On a clean
origin/maincheckout,cd app && pnpm exec tsc --noEmit -p tsconfig.jsonreports three errors (NOT introduced by #1834 — they reproduce with that work stashed):The first two look introduced by the recent
AppUpdateSurfacework (#1850,e868c556): the component is imported by NAME from a*.vuemodule, but the app's*.vuetype shim only exports a default. ThefoundingPage.test.ts:287one is a separatenever-callable.Why it matters: several e2e drive tasks' acceptance gates state
tsc --noEmitmust be clean (e.g. WKT-DEMO Drive A/B Task 6/8 verification). A red baseline makes that gate ambiguous — a worker must diff against the stashed tree to prove their own files are clean. Worth fixing the shim import (or the component's export) soapptypechecks green again.Ruled a follow-up (not fixed inline) under ADR 0174 — outside #1834's scope (rule 1: work only the ticket, file follow-ups). No app-report origin.
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
bug+ready-for-agent. Why a two-way door: a self-contained TypeScript fix, revertible by a later commit and proven by an existing probe —cd app && pnpm exec tsc --noEmit -p tsconfig.jsongoes from exit 2 → exit 0 whilepnpm exec vue-tsc --noEmit -p tsconfig.jsonstays green (exit 0). Not on the one-way-door list. Noapp-reportorigin (build-agent-filed, body confirms), so nolanding-pr. No UX flow/wireframe/seam referenced, so notneeds-design.Verified (reproduced on
0d332f92, cleanmain)cd app && pnpm exec tsc --noEmit -p tsconfig.json→ exit 2, exactly the three reported errors:pnpm exec vue-tsc --noEmit -p tsconfig.jsonis green — the app's own build gate (package.jsonbuild:vue-tsc -p tsconfig.json) does not see these becausevue-tscunderstands.vueinternals; plaintscreads the generic*.vueshim inapp/src/env.d.ts(default export only). This matters because several drive acceptance gates invoke plaintsc, notvue-tsc— e.g.docs/superpowers/plans/2026-09-24-wkt-founding-drive.md:113,308,896and2026-09-24-wkt-app-drive.md:765all runcd app && pnpm exec tsc --noEmit -p tsconfig.json. A red baseline makes "typecheck clean" ambiguous for those tasks.Root cause
AppUpdateSurface) —app/src/components/AppShell.vue:105declaresexport interface AppUpdateSurface.app/src/bootstrap.ts:40andapp/tests/unit/appShell.test.ts:5import it by name (import AppShell, { type AppUpdateSurface } from 'src/components/AppShell.vue'). Thedeclare module '*.vue'shim (app/src/env.d.ts:7) exports only a default, so plaintscsees no named member.foundingPage.test.ts:287) —journey.vm.openSection('identity', 1)calls adefineExposed method (FoundingJourney.vue:738) directly. Under the generic*.vueshim,journey.vm's method resolves tonever. The sibling call attests/unit/foundingPage.test.ts:105already works around this:(wrapper.vm as unknown as { openSection: (l: string, i: number) => void }).openSection('data', 0).The fix (suggested shape — the agent decides)
AppUpdateSurfaceinterface out ofAppShell.vue's<script>into a plain.tsmodule (e.g. a newapp/src/components/appUpdateSurface.ts, or an existing app-side types module). HaveAppShell.vueimport it for itsProps.update, and repointbootstrap.ts:40andappShell.test.ts:5to import the type from that.tsmodule. (A generic*.vueshim cannot carry per-file named exports; extraction is the durable fix, not shim edits.)foundingPage.test.ts:287, apply the sameas unknown as { openSection: (l: string, i: number) => void }cast already used at line 105.Acceptance / proof
cd app && pnpm exec tsc --noEmit -p tsconfig.json→ exit 0 (clean).cd app && pnpm exec vue-tsc --noEmit -p tsconfig.json→ stays exit 0.cd app && pnpm exec vitest run tests/unit/appShell.test.ts tests/unit/foundingPage.test.ts→ green.cd app && pnpm exec eslintclean on touched files.Small, mechanical, type-only — a candidate for a
model-sonnetlabel if the queue wants to right-size it (leaving the default in place is fine).swarm-claim host=bens-mac-04 run=32163
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1854 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope