Skip to content

aggregator: finish quota throughput data + record the design contract (#851) #3933

Open

Description

@dezren39

Context

Follow-up from #851 and tracker hygiene task #1183. Slice 1 shipped the quota panel in PR #892, but its implementation issue #890 explicitly deferred throughput burn segments and token-rate history to slice 2. On current main, QuotaView has historical BurnSegment and QuotaPool has active-session/model/token and burnTokensPerMin fields, but scripts/collect-fleet-feed.ts emits burn: [] and does not populate live burnTokensPerMin; those fields are only present in fixtures. The root project-management design record also does not yet record the quota data contract, per-source refresh cadence, and wall-detection rule required by #851.

Existing related work remains distinct: #1172 tracks uninstrumented-provider coverage, #1174 tracks quota actions on /today and /attention, and #1184 is the coherence epic. This issue carries the remaining #851 throughput/design-record gap; it does not replace those follow-ups.

Acceptance criteria

  • Update the project-management stack design record with the joined quota/throughput model, refresh cadence by source, and per-pool wall/near-limit rules; link this issue from the record.
  • Live quota data attributes active sessions and cumulative tokens by provider/pool/model, and reports measured recent token rate where its source supports it (no fabricated estimates).
  • Historical burn segments are populated from observed usage across reset windows when the source data supports them; empty/missing history is represented honestly.
  • /api/quota.json and /quota expose the same live data, including model-choice/headroom guidance; the OpenChamber quota picker remains the source for values it already exposes.
  • Targeted tests cover live mapping, reset-boundary history, and honest missing-data behavior.

Activity

  1. added
    kind/featureNew feature or capability request
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    meta/follow-upFollow-up spun out of earlier work
    effort/mMedium: expected under 1 day of work
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 1, 2026
  2. added
    queue/queuedHas a queued task in the Supabase agent queue
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  3. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  4. removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 3, 2026
  5. 6 remaining items

  6. added
    status/triagedTriaged and routed (see agent note)
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/triagedTriaged and routed (see agent note)
    on Nov 3, 2026
  7. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · done

  8. added
    status/triagedTriaged and routed (see agent note)
    queue/queuedHas a queued task in the Supabase agent queue
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).

    Queue task(s) [8320] were marked done, and some work did land:

    No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11684.

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

Metadata

Metadata

Assignees

Labels

app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/follow-upFollow-up spun out of earlier workpriority/normalOrdinary priority (the default)queue/queuedHas a queued task in the Supabase agent queuesource/queue-workerFiled or worked by the queue/worker pilotstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions