Skip to content

fix(aggregator): gate aa configs/testRuns/coverage/catalog/cai at render depth (#4169) - #4565

Merged
dezren39 merged 2 commits into
mainfrom
queue/6322-4169-aa-gate-depth
Nov 11, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/6322-4169-aa-gate-depth

Conversation

@dezren39

@dezren39 dezren39 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Fixes #4169 (queue task 6322).

isAaSection checked configs only as an array, testRuns entries only for snapshotDate, and never mentioned the optional coverage/catalog/cai fields — while renderAa dereferences all of them deeper (aaConfigsTable → c.modelName; aaTimingsTable → variantLabel(r.modelVariantKey).split; coverage name lists → .length/.map; catalog entries → e.provider/e.routes.length; cai rows → property access). Gate-passing malformed sections threw on /aa instead of degrading to the not-collected banner — the same failure class #2415 fixed for thresholds/sources.

Gate now checks each field at the depth its consumer dereferences it; absent optional fields stay valid. Follows the #2415 pattern in the same function.

Tests:

  • New pm-stack/aggregator/test/aa-gate-4169.test.ts (2415-style): each malformed variant from the issue (configs=[null], testRuns entry without modelVariantKey, coverage={}, coverage field as string, cai='x', cai=[null], catalog=[null]) rejected; complete section with all optional fields + all-absent section accepted.
  • aa-gate-2415.test.ts fixtures updated (testRuns entries now carry modelVariantKey, which the gate requires).
  • Targeted: 58/58 pass across aa-gate-4169, aa-gate-2415, aa.test (incl. collector-built section still passing the gate).
  • Full aggregator suite: only failures are pre-existing on clean main (verified via stash: brief-surfaces etc. fail without this change).

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 2, 2026 20:11
@coderabbitai

coderabbitai Bot commented Nov 2, 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 16 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: a979c630-5db1-44e6-a7d8-ea35abdd4ceb
Commits

Reviewing files that changed from the base of the PR and between af65ece and 60a07af.

Files selected for processing: 4

  • pm-stack/aggregator/src/aa.ts
  • pm-stack/aggregator/test/aa-gate-2415.test.ts
  • pm-stack/aggregator/test/aa-gate-4169.test.ts
  • pm-stack/aggregator/test/aa-gate-5289.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

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T02:28:27.556374Z 60a07af New commits
ℹ️ 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.

@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · blocked — escalated to Drew

@dezren39 dezren39 added status/blocked Queue or user escalation state user/escalated Requires a Drew decision or access queue/blocked Queue or user escalation state labels Nov 8, 2026
dezren39 and others added 2 commits November 10, 2026 20:24
The #4169 gate requires a string modelVariantKey on testRuns entries (aaTimingsTable splits it); the #5289 fixtures built entries without one — exactly the fixture shape #4169 identifies as render-crashing. Add the key real collector rows carry.
@dezren39
dezren39 force-pushed the queue/6322-4169-aa-gate-depth branch from 680bae5 to 60a07af Compare November 11, 2026 02:26
@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · reviewed, de-escalated, merging — PR #4565 (issue #4169), task 14336

@dezren39 dezren39 removed status/blocked Queue or user escalation state user/escalated Requires a Drew decision or access queue/blocked Queue or user escalation state labels Nov 11, 2026
@dezren39
dezren39 merged commit 540299a into main Nov 11, 2026
1 of 10 checks passed
@dezren39
dezren39 deleted the queue/6322-4169-aa-gate-depth branch November 11, 2026 02:28
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