Skip to content

gather-quota: cut quota_records sink from Supabase to Turso (Wave 3, #5690) - #6655

Merged
dezren39 merged 1 commit into
mainfrom
agent/quota-gatherer-turso-sink
Nov 7, 2026
Merged

dezren39 merged 1 commit into
mainfrom
agent/quota-gatherer-turso-sink

Conversation

@dezren39

@dezren39 dezren39 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Drew 2026-11-06: escalate the Supabase→Turso migration immediately.

The PM quota gatherer's DB sink now writes agent_quota_records in Turso muse-platform via the libsql HTTP pipeline (INSERT OR IGNORE on PK (source, id, ts); token by name turso.muse-platform-rw-token) instead of Supabase agent.quota_records via the Management API. Fail-soft contract unchanged; TURSO_QUOTA_SINK=0 (or legacy SUPABASE_QUOTA_SINK=0) disables.

Verified live from the worktree before merge: one full tick (14 providers ok) wrote 17 opencode-quota rows; Turso count 2,425 → 2,442. Pairs with the quota-recorder.py sink flip (same table, source muse-subscription). Remaining for #5690 quota_records: PG top-up extract for the 2026-11-06 18:25Z→outage window + PG drop, executed in the same migration pass.


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

…5690)

The PM quota gatherer sink now writes agent_quota_records in Turso
muse-platform via the libsql HTTP pipeline (INSERT OR IGNORE on the
(source,id,ts) PK, token by name turso.muse-platform-rw-token)
instead of Supabase agent.quota_records via the Management API.
Fail-soft contract unchanged; TURSO_QUOTA_SINK=0 (or the legacy
SUPABASE_QUOTA_SINK=0) disables. Verified live from this worktree:
one tick wrote 17 opencode-quota rows to Turso.
@dezren39
dezren39 requested a review from a team as a code owner November 7, 2026 01:19
@coderabbitai

coderabbitai Bot commented Nov 7, 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 59 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: ed8f6114-55ea-40e2-aec9-373b066db000
Commits

Reviewing files that changed from the base of the PR and between fff580f and 6f0e3a2.

Files selected for processing: 1

  • pm-stack/aggregator/scripts/gather-quota.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

@dezren39
dezren39 merged commit eabbbb5 into main Nov 7, 2026
2 checks passed
@dezren39
dezren39 deleted the agent/quota-gatherer-turso-sink branch November 7, 2026 01:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 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-07T01:20:48.922607Z 6f0e3a2 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.

1 participant