Skip to content

aggregator(quota): claude stale rendering substitutes an old quota-view row — page shows weekly 68% while the read carries 33/61/0 @23:21Z #7033

Closed

Description

@dezren39

Found by the pool-quota steward, 231st run, 2026-11-08T01:15Z tick. Same rendering class as #6942 (opendesign), now observed for claude.

Read (quota-current.json, source opencode-quota, generatedAt 2026-11-08T01:15:16.628Z):

  • heartbeat perProvider claude = error (01:11Z tick: 'Claude session expired. Open Claude Code to sign in again.'; 01:15Z tick: 'Rate limited. Retrying soon.'). Live :3000 /api/quota/claude probe: ok:false, 'Not configured'.
  • The providers[] entry for claude (serviceId anthropic:claude-pro) carries the dated fallback windows standing: 5h 33% / 7d 61% / Fable:7d 0%, measuredAt 2026-11-07T23:21:30.537Z, state ok (fallback entry).

Page (/api/quota.json, same tick, gatherer generatedAt identical 2026-11-08T01:15:16.628Z):

  • anthropic:claude-pro renders state 'stale', freshness {measuredAt 2026-11-07T23:21:30.537Z, source opencode-quota, state stale}, windows: [{name weekly, percent 68, resetsAt 2026-10-28T14:00:00-05:00}] — a quota-view dated row from October, NOT the read's fallback windows — note: 'Freshest dated read in the stewardship quota view; Claude exposes no host-side meter.'

Diff: per the pass-through rule (PR #5080), a pool whose read entry is in error should show that error as its freshness with the dated fallback windows standing. Here the freshness shows 'stale' rather than the read error, and the read's dated fallback windows (33/61/0 @23:21Z) do not stand — they are replaced by an older quota-view row (weekly 68%, resets 2026-10-28).

All other read-backed rendered pools matched the read 12/13 on presence, freshness and percentages this run (opendesign, whose identical stale-rendering bug is #6942, recovered this run: fresh 0/0 @01:15Z on both read and page); turso saas section matched. This is an aggregator rendering bug, not a steward input problem; no quota-view prose was edited to compensate.

Acceptance criteria

  • When the claude gatherer leg errors, /api/quota.json and /quota render the pool's freshness as that read error (not 'stale').
  • The last dated fallback windows from the read stand in the rendering, with percentages identical to the read entry (this report: 5h 33% / 7d 61% / Fable:7d 0% @2026-11-07T23:21:30.537Z).
  • The quota-view row (weekly 68%) is not substituted for the read's windows when the read carries a dated fallback entry.
  • Other pools' rendering is unchanged (12/13 matched the read in this report).

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    and removed on Nov 10, 2026
  4. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: triage-step
    • State: triaged
    • Verdict: work kind task/small-fix · priority/normal · effort/s · kind/bug (as filed)
    • Priority why: priority/normal retained from filing; Drew priorities brief line 4 (keep the four repos healthy).
    • First step: Trace the claude pool rendering path in the aggregator quota page against quota-current.json and find where the stale row wins over the fresh read.
    • Acceptance: Page renders the fresh read's windows/state for claude, or marks staleness honestly per the read-vs-page contract (the aggregator(quota): opendesign stale rendering drops the dated fallback windows — page shows no windows + 'No dated read' while the read carries 0/0 @18:15Z #6942 class) Aggregator quota tests green
    • Fix packet: repo-health:v1:fix:developing-today/code:issue:7033 → queue repo-health-code-pilot, task 14442 (enqueued by triage-step this run)
  5. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  6. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 10, 2026
  7. 11 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked (awaiting CI)

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked (duplicate ownership)

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-x, task 14442

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Lane code-g resumed task 14442 (issue #7033, PR #8105) from awaiting_ci — parking again: CI still pending.

  13. added a commit that references this issue on Nov 10, 2026
  14. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  15. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: code-w
    task: 14621
    issue: #7033
    stage: done
    note: Task 14621 (small_fix, issue #7033) completed by lane code-w as already_done. Fresh verification: issue #7033 is CLOSED (stateReason COMPLETED, closed 2026-11-10T08:09:26Z) because PR #8105 merged at 2026-11-10T08:09:24Z (merge commit 9df40d0) under task 14442. No work remains for this packet.

  16. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Pool-quota steward 297th run — read-vs-page disagreement on the openai.main pool row (NEW instance; verified from two independent reads):

    The read (quota-current.json tick 2026-11-10T21:21:48.365Z, source opencode-quota): the OpenAI Main credential legs are in ERROR — heartbeat legs openai.main and _openai both state error, "Session expired — please re-authenticate with OpenAI"; the codex rows for credential "OpenAI Main (drewrypope)" and "OpenAI (_openai, drewrypope) — self-contained" carry no windows and state error. The retained Main entries stand at weekly 100 (measured 2026-11-10T21:15:13Z, resets Fri 2026-11-13T14:28:52Z). A live laptop probe of /api/quota/openai.main at ~21:25Z confirms: ok:false, same session-expired error, credential "OpenAI Main (drewrypope)".

    The page (GET http://localhost:4870/api/quota.json, same 21:21 tick): the pool row id openai.main, plan "ChatGPT (Main — drewrypope)", renders state "healthy" with windows 5-hour 0% / weekly 65% and freshness measuredAt 2026-11-10T21:21:51.621Z state ok — those are the Alternate account's windows (credential "OpenAI Alternate (Student - popesdrew)", whose codex row carries serviceId openai.main in the read). The sibling _openai row on the same page renders correctly: state error, freshness error "Session expired", fallback weekly 100 standing.

    So one account's fresh windows are being substituted onto another account's pool row when that account's own legs error, instead of the error + dated-fallback rendering the pass-through specifies. Every other rendered pool matched the read this run (14/15 exact-or-faithful; this row is the disagreement). Steward did not edit any quota-view prose to compensate. The underlying session expiry itself is tracked by #6120 (auto-renewal end state); this comment covers only the page/read mismatch. This issue was found CLOSED at check time; comment posted as the refresh per the steward's step-6 duty.

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/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/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