Skip to content

fix(aggregator): remove inline banding copies shadowing aa-explorer module (#7562) - #8141

Merged
dezren39 merged 1 commit into
mainfrom
queue/14444-7562-aa-explorer-inline-banding
Nov 11, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14444-7562-aa-explorer-inline-banding

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #7562. PR #3737 extracted the Cost Explorer computations into aa-explorer-computations.js, but the inline logEdges / scoreEdges / bandIndex definitions inside the emitted page script's IIFE in pm-stack/aggregator/src/render.ts were never removed. They shadowed the module imports for every in-IIFE call site, so the browser ran untested inline copies of the banding functions while the Bun tests exercised the module copies.

Change

Verification

  • The new regression test fails on the unfixed code (not /function bandIndex\s*\(/) and passes with the fix — the oracle was run both ways.

  • bun test test/aa.test.ts test/aa-explorer-computations.test.ts on the laptop: 50 pass, 0 fail. (Local runs need PM_AGG_FRESHNESS_PORT set to a free port because the laptop's long-running aggregator already holds the default freshness port 4871; the test-spawned server inherits it.)

  • Full aggregator suite (bun test test/): 2036 pass, 5 fail — the failures are pre-existing and unrelated (quota pool assembly in test/quota.test.ts fails identically on the clean tree with this change stashed; the remaining full-suite failures are in collector/projects/dns/program areas this diff does not touch). This diff touches only the aa banding script and the aa test file, and both aa suites are fully green.

Queue: task 14444, repo-health-code-pilot, lane code-j.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 07:23
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T07:23:26.906215Z
We couldn’t complete this review. Comment @codex review to try again.
4ef8814 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 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 30 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: d9d0f42d-2ebf-44ea-a83d-4867e7737677
Commits

Reviewing files that changed from the base of the PR and between d263f09 and 4ef8814.

Files selected for processing: 2

  • pm-stack/aggregator/src/render.ts
  • pm-stack/aggregator/test/aa.test.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

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

Codex disposition (task 14444, lane code-j): the Codex code review on commit 4ef8814 did not complete - the review summary at 2026-11-10T07:23Z reports the review failed because Codex usage limits for code reviews are reached, and no review findings or inline comments were produced on this PR. There is therefore no Codex finding to fix or rebut for this diff; the failure is a reviewer-capacity limit, not a code finding. Local verification stands in the PR body (regression test run both ways; aa suites 50 pass / 0 fail).

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · awaiting CI (task 14444)

  • Codex gate disposition: the Codex review on this PR did not produce findings — the review run itself failed ("You have reached your Codex usage limits for code reviews", review state failed on 4ef8814, no inline review comments exist). There is no Codex finding to fix or rebut; the flag is a failed review, not an undispositioned finding.
  • CI: basic checks still QUEUED on fresh check by lane code-h; task 14444 parked again for CI per the 5-minute rule.

@dezren39
dezren39 merged commit 13b8114 into main Nov 11, 2026
2 of 5 checks passed
@dezren39
dezren39 deleted the queue/14444-7562-aa-explorer-inline-banding branch November 11, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant