Skip to content

fix(aggregator): preserve retained meta quota windows - #12285

Merged
dezren39 merged 1 commit into
mainfrom
queue/20386-9358-meta-retained-overlay
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20386-9358-meta-retained-overlay

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #9358 by using the retained quota-current windows for the meta pool when its provider leg errors, instead of allowing the dated fallback (weekly 98, no 5h window) to mask them. The pool and freshness remain stale under the retained-entry contract in #1268; an errored tick is not presented as fresh/ok.

Evidence

  • Regression covers retained meta windows (5h 0 / weekly 100) with an errored _muse leg and a base fallback weekly 98.
  • bun test test/quota-current.test.ts — 76 passed.
  • bun test src/quota-gather-map.test.ts — 12 passed.
  • git diff --check — passed.
  • test/quota-contract.test.ts could not start its aggregator because web-push is not installed in this worktree; readiness assertion timed out.

The task acceptance wording asking for retained state=ok conflicts with the pinned retained freshness semantics. The issue decision comment records the chosen contract.


Show it working
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 22, 2026 01:43
@coderabbitai

coderabbitai Bot commented Nov 22, 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 24 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: 4e52a434-84d2-4c3a-a547-51ad87c79f39
Commits

Reviewing files that changed from the base of the PR and between 71befc2 and ea496a7.

Files selected for processing: 2

  • pm-stack/aggregator/src/quota-current.ts
  • pm-stack/aggregator/test/quota-current.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 22, 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-22T01:44:50.989952Z ea496a7 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.

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-stack(aggregator): /api/quota.json meta pool disagrees with the quota read — page weekly 98/stale vs read weekly 100/ok at the same measuredAt

1 participant