Skip to content

test: regression guard for #10443 Zen→Go aliasing (#10591) - #10594

Merged
dezren39 merged 1 commit into
mainfrom
queue/17405-10574-zen-pool-census
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/17405-10574-zen-pool-census

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

The pool-quota steward's step-6 page-truth check (#10591) currently counts provider rows against rendered pools. Since PR #10444 (merged 2026-11-15, closing #10443) the three OpenCode Zen door rows are deliberately aliased onto the opencode-go.* pools — they read the same plan meters, so rendering them as separate pools would double-count. The naive row-vs-pool count therefore reports a false "19 read vs 16 rendered" regression.

This PR adds regression tests in quota-current.test.ts that ensure the overlay:

  1. Never turns one meter into two pools when Zen and Go readings are identical
  2. Keeps the provider-level census (both Zen and Go rows present in gatherer.providers)
  3. Surfaces a genuinely divergent Zen reading as a credential row instead of hiding it

These tests guard the deliberate #10444 aliasing so future steward runs don't file false regressions.

Verification

  • All quota tests pass: bun test test/quota-gather-map.test.ts test/quota-current.test.ts test/quota.test.ts (167 tests)
  • TypeScript compiles cleanly

Closes

Closes #10591


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

The steward's step-6 page-truth check (#10591) must compare rendered pool
coverage against distinct pool service IDs, not raw provider rows. These
tests ensure the overlay:

- Never turns one meter into two pools when Zen and Go readings are identical
- Keeps the provider-level census (both Zen and Go rows present in gatherer)
- Surfaces a genuinely divergent Zen reading as a credential row instead of hiding it

This guards the deliberate #10444 aliasing (Zen door rows file under
opencode-go.* pools) so future steward runs don't file false regressions.
@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 02:27
@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-16T02:27:42.035163Z
We couldn’t complete this review. Comment @codex review to try again.
236ab0e 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.

@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, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

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.

pool-quota steward: step-6 page-truth check counts provider rows, not distinct pool service IDs — false regression filings after #10444 Zen aliasing

1 participant