Skip to content

fix(pm-aggregator): remove duplicate listDecisionSets declaration (#16856) - #16881

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/16856-dedupe-decisions
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/16856-dedupe-decisions

Conversation

@dezren39

@dezren39 dezren39 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Closes #16856.

pm-stack/aggregator/src/decisions.ts declared the exported listDecisionSets twice — 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. listDecisionSets was 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 --noEmit over 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-bot with what you need.

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.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d86e891-8766-47b7-92f6-56a9ad28842f
Commits

Reviewing files that changed from the base of the PR and between cb46f3f and b532eed.

Files selected for processing: 1

  • pm-stack/aggregator/src/decisions.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@dezren39

Copy link
Copy Markdown
Member Author

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.

@developing-today-fleet
developing-today-fleet Bot merged commit 06ae739 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/16856-dedupe-decisions branch November 29, 2026 16:46
@developing-today-fleet

Copy link
Copy Markdown
Contributor

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

@dezren39

Copy link
Copy Markdown
Member Author

Verification at exact head b532eed (fleet-run 46285445108): decisions test family 91 pass / 0 fail; bunx tsc --noEmit reports NO TS2323/TS2393 — the duplicate is gone. The run's failure conclusion comes solely from two pre-existing main errors in a file this PR does not touch: src/server.ts(1107,13) and (1126,13) TS2339 ('total' does not exist on the cache stats type), now filed as #16901. This PR's diff is one behavior-preserving declaration removal in decisions.ts (the two bodies were identical), fully read by the lane; merging on the scoped gate (decisions tests green, duplicate errors eliminated) with #16901 tracking the remaining typecheck debt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-aggregator: decisions.ts declares listDecisionSets twice (TS2323/TS2393), hidden behind the broken typecheck

1 participant