Skip to content

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 #9358

Closed

Description

@dezren39

Observed by the pool-quota steward, 355th run, 2026-11-13T07:19–07:24Z (step-6 PM page-truth check).

The aggregator quota page disagrees with the source OpenCode quota read for the meta pool — the pass-through rule (PR #5080) says a fresh read replaces the pool's windows, state AND note, so the page should render exactly what the read reports.

Read (quota-current.json, source opencode-quota, tick generatedAt 2026-11-13T07:15:04.796Z, heartbeat ok:true, all legs ok):

  • meta entry: state ok, measuredAt 2026-11-13T07:09:00.542Z, windows: 5h 0, weekly 100, credits_balance $148.57. Weekly resets Sun Nov 15 6:00 PM CST (1794787200000).

Page (GET http://localhost:4870/api/quota.json, same tick — its gatherer section carries generatedAt 2026-11-13T07:15:04.796Z):

  • meta pool: state stale, freshness {measuredAt: 2026-11-13T07:09:00.542Z, source: opencode-quota, state: stale}, windows: weekly 98 only — the 5h window is absent.

Diff: weekly percent 100 (read) vs 98 (page); pool state ok vs stale at the same measuredAt; 5h window present in the read, missing on the page. Every other rendered pool row matched the read exactly this run (14 pool rows + turso SaaS row checked; claude 100/89/98, openai.main 99, openai.alt 0/100, both opencode-go splits 0/100/100, etc.).

Impact: the page understates the Meta wall (98 vs a known 100 = CLOSED pool) and marks a 6-minute-old read stale. The steward did NOT edit quota-view prose to compensate (per the step-6 rule, a page/read disagreement is an aggregator bug, not a steward input problem).

Watch-and-surface only from the steward side; the fix belongs to the aggregator quota-extract path for the _muse→meta service mapping.

Activity

  1. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Pool-quota steward 356th run update (2026-11-13T08:22Z): RESOLVED at the 08:15Z tick — the page now matches the read for meta. Hub read (quota-current.json, measuredAt 2026-11-13T08:15:53.027Z, state ok): 5h 0 / weekly 100. Page (/api/quota.json): meta 5-hour 0 / weekly 100, state "walled", freshness measuredAt 2026-11-13T08:15:53.027Z state ok — identical. Pools matched 15/15 this run. The 07:15Z disagreement (page weekly 98 / stale / no 5h window vs read weekly 100 / ok / 5h 0) did not recur. Leaving open for aggregator-side confirmation; no steward action taken.

  3. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Pool-quota steward 359th run, 2026-11-13: the meta page-vs-read disagreement RECURRED transiently, then resolved on the next tick.

    • 11:15:01Z hub tick: meta leg in error ("no-data: provider reported ok but no window carried a percentage"); hub entry retained from the failed tick with measuredAt 2026-11-13T11:09:23.948Z, weekly 100, state ok.
    • The aggregator page (/api/quota.json fetched during that tick window) rendered meta at the SAME measuredAt 2026-11-13T11:09:23.948Z as weekly 98, state/freshness "stale" — page weekly 98/stale vs read weekly 100/ok at the same measuredAt, the exact pattern in this issue's title.
    • 11:20:39Z tick: meta leg ok again, fresh measuredAt 11:20:52.836Z, weekly 100; the page now renders meta walled weekly 100 with ok freshness — disagreement resolved by the fresh tick. Page-vs-read otherwise 15/15 this run.

    Recording the recurrence for aggregator-side confirmation; the steward made no input-side change (pass-through display, per #5080).

  4. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh (pool-quota-steward 376th run, 2026-11-14T04:26Z): page-vs-read disagreement on the meta pool at the 2026-11-14T04:20:34.967Z gatherer tick (page /api/quota.json fetched against that tick).

    • Read (quota-current.json, serviceId meta via the _muse entry, measuredAt 2026-11-13T23:32:06.644Z, state ok): weekly 100, 5h 0.
    • Page (pool id meta): weekly 98, state "stale", freshness measuredAt identical (2026-11-13T23:32:06.644Z), and the read's 5h window is not rendered.

    Same measuredAt, different weekly percentage (98 vs 100) — the page is not a pure pass-through for this pool at this tick. Context: the gatherer's meta heartbeat leg is in error this cycle ("no-data: provider reported ok but no window carried a percentage") and the live laptop /api/quota/meta probe returns ok:true with null window percentages, so the read's only meta windows are the stale 23:32Z entry. All other 13 rendered pool rows matched the read exactly at this tick, plus the turso SaaS row (14/15).

  5. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh (pool-quota-steward 377th run, 2026-11-14T05:20Z): page-vs-read disagreement on the meta pool persists at the 2026-11-14T05:15:09.150Z gatherer tick (page /api/quota.json fetched against that tick).

    • Read (quota-current.json, serviceId meta via the _muse entry, measuredAt 2026-11-13T23:32:06.644Z, state ok): weekly 100, 5h 0.
    • Page (pool id meta): weekly 98, state "stale", freshness measuredAt identical (2026-11-13T23:32:06.644Z), and the read's 5h window is not rendered.

    Same measuredAt, different weekly percentage (98 vs 100) — the page is not a pure pass-through for this pool at this tick; identical disagreement to the 376th run's refresh. Context: the gatherer's meta heartbeat leg is again in error this cycle ("no-data: provider reported ok but no window carried a percentage") and the live laptop /api/quota/meta probe returns ok:true with null window percentages, so no fresher read entry exists. All other rendered pools matched the read at this tick (14/15 with turso SaaS row).

  6. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Pool quota steward — 378th run observation (2026-11-14, daily pass run):

    Meta page-vs-read disagreement PERSISTS at the fresh hub tick:

    • Source read (quota-current.json, generatedAt 2026-11-14T06:15:16.143Z): the meta entry is the stale leg (hub leg state error, "no-data: provider reported ok but no window carried a percentage"), measuredAt 2026-11-13T23:32:06.644Z, windows 5h 0 / weekly 100, weekly resets Sun Nov 15 6:00 PM CST.
    • Page (/api/quota.json at the same tick): pool meta renders weekly 98 at the identical freshness measuredAt 2026-11-13T23:32:06.644Z (state "stale") and drops the read's 5h window entirely.
    • Live :3000 probe @~06:20Z: ok:true with null window percentages — no fresh percentage exists; the pool stays CLOSED on last known.
    • All other 13 rendered pool rows + the turso SaaS row matched the read exactly this run (14/15). This remains an aggregator bug, not a steward input problem; no quota-view prose edited.
  7. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh (pool-quota-steward 379th run, 2026-11-14T07:21Z): page-vs-read disagreement on the meta pool persists at the 2026-11-14T07:15:12.640Z gatherer tick (page /api/quota.json fetched against that tick).

    • Read (quota-current.json, serviceId meta via the _muse entry, measuredAt 2026-11-13T23:32:06.644Z, state ok): weekly 100, 5h 0.
    • Page (pool id meta): weekly 98, state "stale", freshness measuredAt identical (2026-11-13T23:32:06.644Z), and the read's 5h window is not rendered.

    Same measuredAt, different weekly percentage (98 vs 100) — the page is not a pure pass-through for this pool at this tick; identical disagreement to the 377th and 378th runs' refreshes. Context: the gatherer's meta heartbeat leg is again in error this cycle ("no-data: provider reported ok but no window carried a percentage") and the live laptop /api/quota/meta probe returns ok:true with null window percentages, so no fresher read entry exists. All other rendered pools matched the read at this tick (14/15 with turso SaaS row).

  8. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh (pool-quota-steward 380th run, 2026-11-14T08:20Z): page-vs-read disagreement on the meta pool persists at the 2026-11-14T08:15:07.649Z gatherer tick (page /api/quota.json fetched against that tick).

    • Read (quota-current.json, serviceId meta via the _muse entry, measuredAt 2026-11-13T23:32:06.644Z, state ok): weekly 100, 5h 0.
    • Page (pool id meta): weekly 98, state "stale", freshness measuredAt identical (2026-11-13T23:32:06.644Z), and the read's 5h window is not rendered.

    Same measuredAt, different weekly percentage (98 vs 100) — the page is not a pure pass-through for this pool at this tick; identical disagreement to the 377th, 378th and 379th runs' refreshes. Context: the gatherer's meta heartbeat leg is again in error this cycle ("no-data: provider reported ok but no window carried a percentage") and the live laptop /api/quota/meta probe returns ok:true with null window percentages, so no fresher read entry exists. All other rendered pools matched the read at this tick (14/15 with the turso SaaS row). Watch-and-surface only.

  9. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh (pool-quota-steward 381st run, 2026-11-14T09:21Z): page-vs-read disagreement on the meta pool persists at the 2026-11-14T09:15:08.909Z gatherer tick (page /api/quota.json fetched against that tick).

    • Read (quota-current.json, serviceId meta via the _muse entry, measuredAt 2026-11-13T23:32:06.644Z, state ok): weekly 100, 5h 0.
    • Page (pool id meta): weekly 98, state "stale", freshness measuredAt identical (2026-11-13T23:32:06.644Z), and the read's 5h window is not rendered.

    Same measuredAt, different weekly percentage (98 vs 100) — the page is not a pure pass-through for this pool at this tick; identical disagreement to the 377th–380th runs' refreshes. Context: the gatherer's meta heartbeat leg is again in error this cycle ("no-data: provider reported ok but no window carried a percentage") and the live laptop /api/quota/meta probe returns ok:true with null window percentages, so no fresher read entry exists. All other rendered pools matched the read at this tick (14/15 with the turso SaaS row). Watch-and-surface only.

  10. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Pool-quota steward run 382 (2026-11-14T10:22Z) — meta page-vs-read disagreement persists, unchanged in shape:

    • Source read: quota-current.json tick generatedAt 2026-11-14T10:15:03.515Z; meta entry retained from the failed tick (heartbeat leg "no-data: provider reported ok but no window carried a percentage"), measuredAt 2026-11-13T23:32:06.644Z, weekly 100 / 5h 0, credits $148.57, weekly resets 2026-11-16T00:00:00Z.
    • Page: /api/quota.json (200, carrying that same 10:15:03.515Z tick) renders the meta pool at that identical measuredAt with weekly 98 and drops the read's 5h window entirely.
    • All other rendered pools matched the read exactly this run (14/15 checks incl. the turso SaaS row; only meta disagrees). Live :3000 probe of meta returns ok:true with null percentages, as before.

    Same diff as the previous steward refreshes on this issue; recording the recurrence, no new root-cause claim.

  11. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Pool quota steward — 383rd run, 2026-11-14T11:21Z step-6 page-vs-read check.

    Read: quota-current.json generatedAt 2026-11-14T11:15:05.262Z (fresh). Meta leg in error again ("no-data: provider reported ok but no window carried a percentage"); the retained read entry is measuredAt 2026-11-13T23:32:06.644Z with windows 5h 0 / weekly 100, credits $148.57.

    Page: /api/quota.json renders the meta pool at that identical measuredAt 2026-11-13T23:32:06.644Z with weekly 98 only — the page drops the read's 5h window and renders weekly 98 where the read carries 100. Same disagreement as the 381st/382nd runs; all other rendered pools (13/14) plus the turso SaaS row matched the read exactly on percentages and freshness this run.

    This is a read-vs-page disagreement (aggregator), not a steward input problem; no quota-view prose edited to compensate.

  12. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh — 384th pool-quota run, 2026-11-14T12:25Z (observation ~12:15–12:25Z).

    The meta disagreement persists, unchanged in shape:

    • Source read (quota-current.json, generatedAt 2026-11-14T12:15:08.886Z, source openchamber-quota / opencode-quota): the meta leg is in error again this tick (no-data: provider reported ok but no window carried a percentage), so the read retains its last entry at measuredAt 2026-11-13T23:32:06.644Z carrying weekly 100 and a 5h window at 0 (credits $148.57).
    • Page (http://localhost:4870/api/quota.json, same tick): pool meta renders weekly 98 with freshness measuredAt 2026-11-13T23:32:06.644Z — the identical measuredAt — and drops the read's 5h window.

    Same measuredAt, different weekly percentage (98 vs 100), and a missing window. All other rendered pools matched the read this run (13/14 pool rows exact on percentages, plus the turso SaaS row exact). Watch-and-surface only from the steward; the fix belongs to the aggregator path.

  13. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Pool-quota steward 385th run refresh (2026-11-14T13:30Z): the meta disagreement persists unchanged at the fresh hub tick.

    • Source read: quota-current.json generatedAt 2026-11-14T13:19:18.786Z; meta leg in error "no-data: provider reported ok but no window carried a percentage"; retained entry measuredAt 2026-11-13T23:32:06.644Z carries weekly 100 / 5h 0.
    • Page: /api/quota.json renders the meta pool at that identical measuredAt with weekly 98 and drops the read's 5h window.
    • Live laptop :3000 /api/quota/meta probe this run: ok:true with null percentages (no fresh percentage exists) — the pool stays closed on last known.

    Same read-vs-page diff as the prior steward refreshes; no other pool disagreed this run (14/15 incl. the turso SaaS row).

  14. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Steward refresh — 386th run, 2026-11-14T14:30Z (quota read tick 2026-11-14T14:15:07.884Z)

    Meta page-vs-read disagreement persists, in a new form:

    • Read (quota-current.json, source openchamber-quota): the meta leg errored this tick ("no-data: provider reported ok but no window carried a percentage"); the retained meta entry is measuredAt 2026-11-14T13:45:32.173Z and carries NO percentages — rolling null, weekly null.
    • Page (/api/quota.json): renders meta weekly 98% with freshness measuredAt 2026-11-14T13:45:32.173Z (state "stale") — the identical measuredAt as the read's retained entry.
    • The page's 98 matches neither the current read entry at that measuredAt (weekly null) nor the last percentage-carrying read entry (weekly 100 @ 2026-11-13T23:32:06.644Z, the subject of the previous refreshes on this issue).

    All other rendered pools matched the read exactly this run (13/14 pool rows + the turso SaaS row). Watch-and-surface only from the steward; the fix belongs to the aggregator pass-through.

  15. 37 remaining items

  16. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Decided: A retained meta read keeps its exact windows, while freshness/state reflects the current errored provider leg rather than falsely reporting ok.
    Why: The established retained-read contract in #1268, #6942, and #7033 distinguishes retained quota values from current freshness; #9358’s reported defect is the substituted weekly 98 and missing 5h window.
    Undo: A later PR can change the contract and regression expectations if a source-backed policy explicitly changes retained-entry freshness semantics.
    By: OpenChamber scheduled lane any-o

  17. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  18. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Picked up task 20386. Fresh revalidation: issue #9358 is OPEN, no held/user-owned/do-not-auto-edit labels, and no named PR; prior “Drew decision” park is superseded by decision recorded above. I will preserve retained windows while exposing errored-leg freshness.

  19. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Task 20386 delivered as PR #12285: retained meta quota-current windows now replace the conflicting dated fallback after an errored leg, while freshness remains stale per #1268. Regression and targeted quota-current/gather-map tests pass. The quota-contract integration test could not start because this worktree lacks web-push; see PR evidence. PR is open and checks currently neutral/skipped. No backlog or sweep-log edits from this lane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions