Skip to content

fix(aggregator): dated Meta charge incidents + truthful Meta blocked note (charges 22.89 → 42.89) - #994

Merged
dezren39 merged 1 commit into
mainfrom
fix/charges-dated-incidents
Oct 26, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/charges-dated-incidents

Conversation

@dezren39

@dezren39 dezren39 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Completes the dashboard /quota truth fix. extractCharges was structurally unable to emit any Meta charge beyond the hard-coded 2026-10-25 pair; it now iterates dated single-charge incidents in both established record formats (registry billing-incident bullets + quota-view 'Newer dated charge' records), deduped on date+amount+card. extractMeta gains a billing-blocked branch: a dated 402 billing_not_configured read walls the pool with a truthful note instead of note: null. Verified against the real quota-view/registry: 5 charge rows totaling $142.89 incl. 2026-10-26 $20.00 Citi Costco •9545; Meta walled with the blocked note; Go pools unchanged (80%/62%). Full suite 126 pass, tsc clean.


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

extractCharges only knew the 2026-10-25 two-charge pattern and
hard-coded its two rows, so the 2026-10-26 $20 METAPAY charge
(Citi Costco ending 9545) recorded in both the provider registry
and quota-view could never reach the charges table (stuck at
$122.89). Add a dated-incident pass over both established record
formats, deduped on date+amount+card, each row with its own date
and payment method. Total is now $142.89 against the real records.

extractMeta: a dated 402 billing_not_configured read now outranks
the past-reset early return and walls the pool WITH a truthful
note (blocked-status mapping, not measured consumption) instead
of a bare walled/100% with note: null.

Tests: companion cases in usage.test.ts (single incident, deduped
across both records) and quota.test.ts (blocked read after the
reset). Full suite 126 pass, tsc clean.
@dezren39
dezren39 requested a review from a team as a code owner October 26, 2026 16:58
@dezren39
dezren39 merged commit 14dd66b into main Oct 26, 2026
2 of 4 checks passed
@dezren39
dezren39 deleted the fix/charges-dated-incidents branch October 26, 2026 16:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T16:59:21.086582Z 5c30638 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 Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

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.

1 participant