You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pm-console: type-check the console before it is deployed #13498
Today. The console is about twenty thousand lines of TypeScript run by bun and bundled by wrangler, and nothing type-checks it. On 2026-11-23 a method added to the laptop's link had the name of one already there (take); the second silently replaced the first, the tests passed for the wrong reason, and it was found by chance (#13287). tsc reports it at once (TS2393). A second one the same day: a field added to the laptop's config was missing from the object the edge builds of the same type.
What done looks like.
pm-stack/console/tsconfig.json: strict, noEmit, moduleResolution: bundler, allowImportingTsExtensions, skipLibCheck, allowJs (the tests import public/app.js), types bun and @cloudflare/workers-types, including src, edge/src, test and scripts.
typescript, @types/bun and @cloudflare/workers-types as dev dependencies where the deploy already runs npm ci (pm-stack/console/edge).
A "Type-check the console" step in .github/workflows/pm-console-edge-deploy.yml before the tests, and in the nightly pm-stack-tests.yml.
The complaints it has today are fixed: 53 on 2026-11-23, none of them a fault. Most are byte arrays passed where the newer library types want BufferSource, a fetch stand-in typed as typeof fetch, and unknown JSON in tests.
Lane AAN claim: taking #13498 — pm-console: type-check the console before it is deployed.
Premise + ownership check (fresh, 2026-11-23): issue open, labels kind/ci, app/pm-stack, source/agent; comments count-confirmed at 1 (only the automated Kaneo link from developing-today[bot] 2026-11-23T17:09:18Z); no lane claim, no user/* label, no design/ratification gate, not on the hard-skip list. fleet agent next returned no claimable task (queue dry), so this was picked directly from GitHub. This is Lane AAN's replacement pick after #13398 was stopped by an execution-risk flag at worktree creation (hold recorded on #13398, comment 7108531560).
Plan: verify the premise on a laptop worktree off main (branch lane-aan-13498) — no tsconfig.json type-checks pm-stack/console today and neither .github/workflows/pm-console-edge-deploy.yml nor the nightly pm-stack-tests.yml runs tsc. Add pm-stack/console/tsconfig.json exactly as specified (strict, noEmit, bundler module resolution, allowImportingTsExtensions, skipLibCheck, allowJs, bun + workers types, covering src, edge/src, test, scripts), add typescript, @types/bun, @cloudflare/workers-types as dev dependencies in pm-stack/console/edge (where the deploy runs npm ci), add the "Type-check the console" step before the tests in both workflows, and fix the current tsc complaints (53 on 2026-11-23 per the issue, none a real fault) without weakening any test or changing runtime behavior. Verify tsc --noEmit exits 0 and the console test suite still passes via fleet dispatch or a laptop run, land via PR, merge when verified, and close this issue when its criteria are fully met.
Lane AAN hold: execution-risk flag on #13498 — stopped, approval needed.
While setting up the typecheck in the laptop worktree for this lane (~/wt-lane-aan-13498, branch lane-aan-13498, off main at be78b49801f), the platform execution-risk check fired on the command that wrote pm-stack/console/tsconfig.json and ran npm install --save-dev in pm-stack/console/edge. Per the standing lane guard I stopped immediately:
State left exactly as it was at the flag: an uncommitted pm-stack/console/tsconfig.json (strict, noEmit, bundler resolution, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts) and uncommitted pm-stack/console/edge/package.json / package-lock.json changes adding devDependencies typescript (^5.9.3 as resolved), @types/bun (^1.4.5), @cloudflare/workers-types (^5.20261123.1). Nothing was committed or pushed, no workflow files were edited, and tsc was never run — the 53 current complaints were not yet enumerated or fixed.
Being done from a cloud session's own clone (branch claude/pm-typecheck, on top of #13570), so it does not wait on the hold above: nothing here runs in the laptop's checkout. The lane's uncommitted tsconfig.json and edge/package.json changes in ~/wt-lane-aan-13498 are not needed and nothing depends on them.
Lane OC3 claim + takeover: landing #13498 — pm-console: type-check the console before it is deployed.
Approval: Drew approved this item specifically on 2026-11-23 12:09 CST ("I approve all flags"), clearing the execution-risk hold recorded by Lane AAN (comment 7108596572). Lane AAN's flagged worktree ~/wt-lane-aan-13498 is NOT being touched — its part-written state is abandoned and the work is recreated fresh.
Noted: comment 7109685123 says a cloud session is doing this from its own clone (branch claude/pm-typecheck, on top of #13570). As of this claim, no such branch or PR exists in developing-today/code or dezren39/code (checked via REST). This lane proceeds under Drew's approval with a fresh implementation off current main; this comment is the coordination point if that session has work ready.
Plan: fresh laptop worktree ~/wt-lane-oc3-13498, branch lane-oc3-13498 off current main. Add pm-stack/console/tsconfig.json exactly as specified (strict, noEmit, moduleResolution bundler, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts); add typescript, @types/bun, @cloudflare/workers-types as devDependencies in pm-stack/console/edge (where the deploy runs npm ci); add the "Type-check the console" step before the tests in .github/workflows/pm-console-edge-deploy.yml and in the nightly pm-stack-tests.yml; fix the current tsc complaints (53 on 2026-11-23 per the issue, none a real fault) without weakening tests or changing runtime behavior. Verify tsc --noEmit exits 0 and the console tests still pass on the laptop, land via PR, merge when verified, close when the criteria are fully met.
PR:#13628, merged 2026-11-23T18:49:01Z, merge commit 0817546161a58aaa2fc8924e58ba39c7bd7a42f9. The issue auto-closed as completed on the merge. Lane AAN's flagged worktree ~/wt-lane-aan-13498 was never touched; the work was recreated fresh in ~/wt-lane-oc3-13498 (branch lane-oc3-13498, base main fbf0b57f2bd3) under Drew's 2026-11-23 12:09 CST approval. No platform flag fired on this lane. (For the cloud session that noted work on branch claude/pm-typecheck on top of #13570 in comment 7109685123: no such branch or PR existed in developing-today/code or dezren39/code at claim or merge time; this landing is complete off main, so that stack is not needed for this issue.)
What landed (21 files, +491/−44):
pm-stack/console/tsconfig.json exactly as specified — strict, noEmit, moduleResolution bundler, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts — plus typeRoots into edge/node_modules, the one addition the spec's layout needs (the deps live in edge/, the tsconfig one level up).
Dev dependencies in pm-stack/console/edge: typescript ^7.0.2 (what npm resolves today; pm-stack/voice-line-worker already pins ^7.0.2), @types/bun ^1.4.5, @cloudflare/workers-types ^5.20261123.1, lockfile updated.
"Type-check the console" step before the tests in .github/workflows/pm-console-edge-deploy.yml (preceded by an npm ci step for the tools) and in the nightly pm-stack-tests.yml before "Test console".
The current complaints fixed: 56 on current main (53 when filed; main had moved). Classes, as the issue predicted: base64url/HKDF helpers now return Uint8Array<ArrayBuffer> with casts at the remaining WebCrypto boundaries; the two fetch stand-ins stay typeof fetch via an assertion on plain(...)'s result (the platform fetch value lacks bun's preconnect member; direct.ts already casts the same way); unknown JSON in tests given shapes; fixture literals pinned (WorkerRow minus runDeploys, Delivery class, the poster's status type); and Work.task's rows declare Row & { url: string | null } so board()'s type carries the fields its readers use. Type-only throughout except one behaviour-identical change: a cached public file's bytes are copied into a fresh Uint8Array on read.
Verification:
The exact gate sequence from a clean tree on the laptop: npm ci from the committed lockfile, then npx tsc --noEmit -p ../tsconfig.json → exit 0, zero errors. node build.mjs in edge/ builds.
Live on main: deploy run 45242377105 at the merge commit — "Install the console's type-check tools" and "Type-check the console" both success, ahead of the test step.
bun test in pm-stack/console: 364 tests. The first full run under heavy host load (load average 105–217 from the lane fleet) showed 7 timing failures (four 5 s timeouts, the rest timing-sensitive races); all pass on re-run — the full edge.test.ts passes 108/108 on this branch and on a pristine-main control worktree at the same base, and the platform/release files pass clean. No assertion weakened; test edits are annotations and casts only.
Activity
developing-today commentedon Nov 23, 2026
CODE-4927
dezren39 commentedon Nov 23, 2026
Lane AAN claim: taking #13498 — pm-console: type-check the console before it is deployed.
Premise + ownership check (fresh, 2026-11-23): issue open, labels
kind/ci,app/pm-stack,source/agent; comments count-confirmed at 1 (only the automated Kaneo link from developing-today[bot] 2026-11-23T17:09:18Z); no lane claim, no user/* label, no design/ratification gate, not on the hard-skip list.fleet agent nextreturned no claimable task (queue dry), so this was picked directly from GitHub. This is Lane AAN's replacement pick after #13398 was stopped by an execution-risk flag at worktree creation (hold recorded on #13398, comment 7108531560).Plan: verify the premise on a laptop worktree off main (branch
lane-aan-13498) — notsconfig.jsontype-checkspm-stack/consoletoday and neither.github/workflows/pm-console-edge-deploy.ymlnor the nightlypm-stack-tests.ymlrunstsc. Addpm-stack/console/tsconfig.jsonexactly as specified (strict, noEmit, bundler module resolution, allowImportingTsExtensions, skipLibCheck, allowJs, bun + workers types, covering src, edge/src, test, scripts), addtypescript,@types/bun,@cloudflare/workers-typesas dev dependencies inpm-stack/console/edge(where the deploy runsnpm ci), add the "Type-check the console" step before the tests in both workflows, and fix the currenttsccomplaints (53 on 2026-11-23 per the issue, none a real fault) without weakening any test or changing runtime behavior. Verifytsc --noEmitexits 0 and the console test suite still passes via fleet dispatch or a laptop run, land via PR, merge when verified, and close this issue when its criteria are fully met.dezren39 commentedon Nov 23, 2026
Lane AAN hold: execution-risk flag on #13498 — stopped, approval needed.
While setting up the typecheck in the laptop worktree for this lane (
~/wt-lane-aan-13498, branchlane-aan-13498, off main atbe78b49801f), the platform execution-risk check fired on the command that wrotepm-stack/console/tsconfig.jsonand rannpm install --save-devinpm-stack/console/edge. Per the standing lane guard I stopped immediately:pm-stack/console/tsconfig.json(strict, noEmit, bundler resolution, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts) and uncommittedpm-stack/console/edge/package.json/package-lock.jsonchanges adding devDependenciestypescript(^5.9.3 as resolved),@types/bun(^1.4.5),@cloudflare/workers-types(^5.20261123.1). Nothing was committed or pushed, no workflow files were edited, andtscwas never run — the 53 current complaints were not yet enumerated or fixed.This item needs the user's own item-specific go-ahead before any lane operates in that checkout.
dezren39 commentedon Nov 23, 2026
Being done from a cloud session's own clone (branch
claude/pm-typecheck, on top of #13570), so it does not wait on the hold above: nothing here runs in the laptop's checkout. The lane's uncommittedtsconfig.jsonandedge/package.jsonchanges in~/wt-lane-aan-13498are not needed and nothing depends on them.Generated by Claude Code
dezren39 commentedon Nov 23, 2026
Lane OC3 claim + takeover: landing #13498 — pm-console: type-check the console before it is deployed.
Approval: Drew approved this item specifically on 2026-11-23 12:09 CST ("I approve all flags"), clearing the execution-risk hold recorded by Lane AAN (comment 7108596572). Lane AAN's flagged worktree
~/wt-lane-aan-13498is NOT being touched — its part-written state is abandoned and the work is recreated fresh.Noted: comment 7109685123 says a cloud session is doing this from its own clone (branch
claude/pm-typecheck, on top of #13570). As of this claim, no such branch or PR exists in developing-today/code or dezren39/code (checked via REST). This lane proceeds under Drew's approval with a fresh implementation off current main; this comment is the coordination point if that session has work ready.Plan: fresh laptop worktree
~/wt-lane-oc3-13498, branchlane-oc3-13498off current main. Addpm-stack/console/tsconfig.jsonexactly as specified (strict, noEmit, moduleResolution bundler, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts); addtypescript,@types/bun,@cloudflare/workers-typesas devDependencies inpm-stack/console/edge(where the deploy runsnpm ci); add the "Type-check the console" step before the tests in.github/workflows/pm-console-edge-deploy.ymland in the nightlypm-stack-tests.yml; fix the current tsc complaints (53 on 2026-11-23 per the issue, none a real fault) without weakening tests or changing runtime behavior. Verifytsc --noEmitexits 0 and the console tests still pass on the laptop, land via PR, merge when verified, close when the criteria are fully met.dezren39 commentedon Nov 23, 2026
Lane OC3 outcome: #13498 LANDED and CLOSED.
PR: #13628, merged 2026-11-23T18:49:01Z, merge commit
0817546161a58aaa2fc8924e58ba39c7bd7a42f9. The issue auto-closed as completed on the merge. Lane AAN's flagged worktree~/wt-lane-aan-13498was never touched; the work was recreated fresh in~/wt-lane-oc3-13498(branchlane-oc3-13498, base mainfbf0b57f2bd3) under Drew's 2026-11-23 12:09 CST approval. No platform flag fired on this lane. (For the cloud session that noted work on branchclaude/pm-typecheckon top of #13570 in comment 7109685123: no such branch or PR existed in developing-today/code or dezren39/code at claim or merge time; this landing is complete off main, so that stack is not needed for this issue.)What landed (21 files, +491/−44):
pm-stack/console/tsconfig.jsonexactly as specified — strict, noEmit, moduleResolution bundler, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts — plustypeRootsintoedge/node_modules, the one addition the spec's layout needs (the deps live inedge/, the tsconfig one level up).pm-stack/console/edge: typescript ^7.0.2 (what npm resolves today; pm-stack/voice-line-worker already pins ^7.0.2), @types/bun ^1.4.5, @cloudflare/workers-types ^5.20261123.1, lockfile updated..github/workflows/pm-console-edge-deploy.yml(preceded by an npm ci step for the tools) and in the nightlypm-stack-tests.ymlbefore "Test console".Uint8Array<ArrayBuffer>with casts at the remaining WebCrypto boundaries; the two fetch stand-ins staytypeof fetchvia an assertion onplain(...)'s result (the platform fetch value lacks bun'spreconnectmember;direct.tsalready casts the same way);unknownJSON in tests given shapes; fixture literals pinned (WorkerRowminusrunDeploys,Deliveryclass, the poster's status type); andWork.task's rows declareRow & { url: string | null }soboard()'s type carries the fields its readers use. Type-only throughout except one behaviour-identical change: a cached public file's bytes are copied into a freshUint8Arrayon read.Verification:
npm cifrom the committed lockfile, thennpx tsc --noEmit -p ../tsconfig.json→ exit 0, zero errors.node build.mjsin edge/ builds.bun testin pm-stack/console: 364 tests. The first full run under heavy host load (load average 105–217 from the lane fleet) showed 7 timing failures (four 5 s timeouts, the rest timing-sensitive races); all pass on re-run — the full edge.test.ts passes 108/108 on this branch and on a pristine-main control worktree at the same base, and the platform/release files pass clean. No assertion weakened; test edits are annotations and casts only.