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
pm-stack/aggregator/src/decisions.ts declares the exported function listDecisionSets twice in one module: line 757 and line 1242 (both export async function listDecisionSets(file: string): Promise<DecisionSet[]>). TypeScript reports TS2323 (cannot redeclare exported variable) and TS2393 (duplicate function implementation) for both sites.
Verified at merge commit c61f509 (current main content): grep -c "export async function listDecisionSets" on the file returns 2.
Why it has gone unnoticed
Bun's transpiler tolerates the duplicate (the later definition wins at runtime), so the test suite passes. The project's typecheck would catch it, but the typecheck cannot currently run at all: the tsconfig fails under the pinned TypeScript 7 (TS5102, #16835), and in CI the typecheck step is skipped whenever the test step fails (#16785 keeps it failing). This duplicate is the next error in line once #16835 is fixed.
Evidence
Fleet-command run 46281012731 (developing-today/fleet), target developing-today/code at c61f509, running tsc with the tsconfig's own flags (project config bypassed per #16835):
Diff the two bodies, keep the one callers intend (or merge them if they have diverged), and delete the other. Check callers of listDecisionSets against both bodies before choosing: if the bodies differ, the runtime has been using the second one, and deleting the first is the behavior-preserving choice.
Filed from lane 0647-L15R while completing the typecheck verification for #12351. Not enqueued: the repo-queue broker tunnel from this seat is down; recorded here per the file-and-enqueue rule.
Lane 0647-L11 claim (Xaltha seat, 2026-11-29). Taking #16856: diff the two listDecisionSets bodies in pm-stack/aggregator/src/decisions.ts, keep the runtime-effective one (the later definition wins under Bun; deleting the first is the behavior-preserving choice if they have diverged), delete the other, and verify with tsc (project config bypassed per #16835) plus the aggregator test suite via remote dispatch.
Landed: PR #16881 merged 2026-11-29T16:46:06Z (merge commit 06ae739); this issue auto-closed via the PR's Closes line. Verification at head b532eed (fleet-run 46285445108): decisions test family 91 pass / 0 fail, tsc free of TS2323/TS2393; the run's only red was two pre-existing server.ts TS2339 errors, filed as #16901. Current main confirmed to carry exactly one listDecisionSets declaration. — lane 0647-L11
Activity
dezren39 commentedon Nov 29, 2026
Lane 0647-L11 claim (Xaltha seat, 2026-11-29). Taking #16856: diff the two listDecisionSets bodies in pm-stack/aggregator/src/decisions.ts, keep the runtime-effective one (the later definition wins under Bun; deleting the first is the behavior-preserving choice if they have diverged), delete the other, and verify with tsc (project config bypassed per #16835) plus the aggregator test suite via remote dispatch.
fix(pm-aggregator): remove duplicate listDecisionSets declaration
Merge pull request #16881 from developing-today/xaltha/16856-dedupe-d…
dezren39 commentedon Nov 29, 2026
Landed: PR #16881 merged 2026-11-29T16:46:06Z (merge commit 06ae739); this issue auto-closed via the PR's Closes line. Verification at head b532eed (fleet-run 46285445108): decisions test family 91 pass / 0 fail, tsc free of TS2323/TS2393; the run's only red was two pre-existing server.ts TS2339 errors, filed as #16901. Current main confirmed to carry exactly one listDecisionSets declaration. — lane 0647-L11
fix(pm-aggregator): type searchContext hit timings as SearchTimings