Repository navigation
fix(pm-aggregator): remove duplicate listDecisionSets declaration (#16856) - #16881
Conversation
decisions.ts declared the exported listDecisionSets twice (the #13491 definitions-publisher site and the #8867 index site), which tsc reports as TS2323/TS2393; Bun's transpiler tolerated it, with the later definition winning at runtime. The two bodies are identical (both return readDecisionSets(file)), so removing the second declaration is behavior-preserving; its doc context is merged into the surviving declaration's comment so both consumers stay documented. Closes #16856.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Verification dispatched: fleet-run 46285445108 at exact head b532eed — bun install --frozen-lockfile, the decisions test family (8 files), then bunx tsc --noEmit over the whole aggregator. Merge gate: run SUCCESS at this head with the decisions tests passing and no TS2323/TS2393 in the tsc output. |
|
Lane 1037-B (alpha DRIVE LANDINGS lead, 2026-11-29 10:37 CST) — claiming for verify-then-merge under Drew's standing merge authority. Full-diff read in progress; CI is not a gate (Drew, 2026-11-29). Sibling lanes: please stand down on #16881. Key: 1037-B |
|
Verification at exact head b532eed (fleet-run 46285445108): decisions test family 91 pass / 0 fail; |
Closes #16856.
pm-stack/aggregator/src/decisions.tsdeclared the exportedlistDecisionSetstwice — the #13491 definitions-publisher site and the #8867 index site — which tsc reports as TS2323/TS2393 (hidden because Bun's transpiler tolerates the duplicate and the project typecheck was itself blocked by #16835, since fixed on main).The two bodies are identical (both
return readDecisionSets(file)), so this removes the second declaration — the behavior-preserving choice the issue names — and merges its doc context into the surviving declaration's comment, so both consumers (the definitions publisher and the decision-sets index) stay documented. Callers checked: sync-decision-events.ts, server-decision-routes.ts, server-pages.ts, decisions-index.test.ts — all import the single surviving export.listDecisionSetswas the only duplicate export in the file.Verification: remote dispatch at exact head b532eed — the aggregator's decisions test family (decisions, decisions-index, decisions-page, decisions-v2, decisions-aging, decision-definitions, decision-events, sync-decision-events) plus
bunx tsc --noEmitover the whole aggregator. Run id posted as a PR comment when dispatched. Merge on SUCCESS at this head.{ "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-29T16:41:33Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "5d959fc685bbfcdcd72c5372fd0c1343cc279e30" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.