Repository navigation
Fix pm-aggregator typecheck: 8 errors across 5 files (#15718) - #16351
Conversation
Run 46065979204 fails the Typecheck step (bunx tsc --noEmit) with 8 errors; the aggregator test step never runs. Fix at cause: - src/work-mobile-views.ts: drop 3 dead switch cases (needs_triage/recent/cold_backlog). The view-level early returns above narrow MobileViewId, so these cases are unreachable (TS2678). Behavior-preserving by construction. - test/aa-explorer-computations.test.ts: annotate byCost/bandOf params as (typeof rows)[number] (2x TS7006). - test/actions-exec-apply-alerts.test.ts: trim the incident literal to the Pick contract buildApplyFailureIncident declares (TS2353). - test/actions-exec-apply.test.ts: annotate the failing decide mock as Promise<DecideResult> against the narrowed union (TS2322). - test/work-mobile-views.test.ts: import type WorkView from its defining module work-projection.ts (TS2459; type-only, runtime dep unchanged). Verification: bunx tsc --noEmit exit 0 (was 8 errors); 67/67 tests pass across the 4 touched test files. Remaining CI aggregator-test failures (loadConfig/resolveBrokerAnswer/schedule-registry) are in untouched files owned by other tracks.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
🤖 Lane 1707-E (landings discovery, charlie ADVANCE 2026-11-27 17:07 CST) — claiming verification + merge shepherding for this PR. Claim-scan firsthand: ALL comments (1 — CodeRabbit skip only) and ALL reviews (0) on this PR; no live claim. Linked issue #15718's latest note (oc-code-03, task 24370, 23:04:31Z) records this PR as open with the fix complete; no verification dispatch is recorded on the PR itself. Gate I will merge on: PR OPEN/non-draft/CLEAN/MERGEABLE at exact head |
|
🤖 Lane 1707-E — MERGED.
|
Fixes the Typecheck step failure of the pm-aggregator workflow (run 46065979204, head d4b6f2f):
bunx tsc --noEmitreported 8 errors across 5 files, so the aggregator test step never ran.Cause (verified against the run log, reproduced locally pre-fix)
src/work-mobile-views.ts(288-290)TS2678 x3: dead switch cases (needs_triage/recent/cold_backlog) unreachable after the view-level early returns narrowMobileViewId. Removed; behavior-preserving by construction.test/aa-explorer-computations.test.ts(515,534)TS7006 x2: untypedbyCost/bandOflambdas. Annotated as(p: (typeof rows)[number]).test/actions-exec-apply-alerts.test.ts(59)TS2353: incident literal carriedstate/attempts/updatedAtoutside thePickcontractbuildApplyFailureIncidentdeclares. Trimmed to the contract.test/actions-exec-apply.test.ts(194)TS2322: decide mock'sokwidened tobooleanagainst the narrowedDecideResultunion. AnnotatedPromise<DecideResult>.test/work-mobile-views.test.ts(23)TS2459:type WorkViewimported from a module that only holds it locally. Imported from defining modulework-projection.ts(type-only; runtime dep unchanged).Evidence
bunx tsc --noEmitinpm-stack/aggregatorreproduced all 8 errors on currentorigin/main; matches run 46065979204's log.bunx tsc --noEmitexit 0.PM_AGG_SOURCE=fixtures PM_AGG_DEV=1 bun teston the 4 touched test files: 67 pass, 0 fail.bun testshows only seat-environment timeouts (dashboard-assembly deadlines, ~381s wall on this seat vs 46s on CI), none in touched files.Merge danger
Low: no runtime code paths change (one unreachable-branch deletion, four test-only type corrections). Remaining CI aggregator-test failures (loadConfig x6, resolveBrokerAnswer x4, schedule-registry x3 per run 46043832873) live in untouched files owned by other tracks; this PR unblocks the Typecheck step so those surface again.
Task: 24370 (repo-health-code-pilot).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-27T23:03:47Z", "session_id": "ses_e5de28b39c7ffelCdE4agb6tHs", "lane": null, "host": "amd", "worktree": "/home/user/git/fleet/24370-15718-typecheck", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/fleet/24370-15718-typecheck", "repo": "developing-today/code", "branch": "queue/24370-15718-typecheck", "sha": "b61c88985b187a6993b82bae1c8e54a0ae0e2537" }, "auth_subject": "oc-code-01", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.