Skip to content

feat(quota-plane): daily model + route audit — latest models incorporated, route rules cover all needs #1173

Todo

Description

@dezren39

Priority P1 — order 9. Horizon: Week. Design: quota-plane-design-2026-10-26.md (usage-billing-hub goal files), Stage 2. Parent context: epic #1047. (§3)

Tracks the DAILY MODEL + ROUTE AUDIT (Drew, 2026-10-26): the daily measurements verify (a) the latest models are incorporated — deployed config/OpenChamber catalog vs each provider's current model list, missing or retired models are findings; (b) route rules handle all needs — every tier (scout/workhorse/specialist/summit) has a route on an existing, enabled, non-funds model, effort variants set per model, disabled providers absent from pools; (c) pool ordering matches burn-by-expiry + cheapest-sufficient, OpenAI final reserve — contradictions recorded, config changes via repo PR flow only.
Status: the stewardship-cycle block is LIVE (applied 2026-10-26 22:41 CDT by cron update, no read-back per Drew). This issue owns: the first audit run's findings, the provider-model-list comparison mechanics (automate what the block currently does by inspection), and filing/fixing what the audit surfaces.
Acceptance: first MODEL AUDIT entry in the stewardship cycle log with findings (or an explicit no-findings), each finding linked to its fix issue.

Acceptance criteria

  • The first MODEL AUDIT entry lands in the stewardship cycle log with findings (or an explicit no-findings), each finding linked to its fix issue.
  • The provider-model-list comparison mechanics are automated where the stewardship block currently inspects by hand: latest models incorporated, retired models flagged, every tier has a route on an existing, enabled, non-funds model, pool ordering matches burn-by-expiry + cheapest-sufficient with OpenAI as final reserve.
  • Config changes flow only via repo PRs.

Activity

  1. added
    meta/follow-up
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. added
    status/needs-triage
    source/human
    meta/enriched
    priority/high
    effort/m
    kind/infrastructure
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake enrichment (protocol §5) — 2026-10-28T06:27Z. This issue was filed 2026-10-27 by Drew (dezren39) from the 2026-10-26 live pm-stack review and had no priority/* label and no standard ## Acceptance criteria section; both are now supplied (the body's own Acceptance text is restated under the standard heading, original body preserved verbatim above it).

    • Related: Parent context in body: epic epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047, quota-plane design Stage 2 (§3). Body states Priority P1 / Week horizon; the stewardship-cycle audit block is already LIVE per the body — this issue owns the first run's findings and the automation. No merged PR references this issue.
    • Labels normalized: one kind/* (added kind/infrastructure), source/human, status/needs-triage, priority/high, effort/m, app/pm-stack (existing), meta/enriched.
    • Still live: verified open this run; no merged PR or commit found that implements it.
    • Risks: An audit that files findings without fix links repeats the silent-failure pattern; every finding needs its fix issue in the same pass. Model lists change often — compare against providers' current lists at run time, not a snapshot.
    • Suggested approach: Run the first audit from the live stewardship block, file/link a fix issue per finding, then automate the model-list diff so later audits are mechanical.
  5. added
    mode/online
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    status/needs-triage
    on Nov 1, 2026
  6. 167 remaining items

  7. added 2 commits that reference this issue on Nov 24, 2026
  8. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Second pass verdict — #1173 remainder, fresh 2026-11-24T07:58Z

    Issue state: OPEN, no hold labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Labels carry status:in-review, queue/queued, priority/high.

    What changed since the 2026-11-22 decision note:

    Verdict: not closable yet. The open PR is the next shippable step of this issue's acceptance; cheapest-sufficient wiring, promoting expiry notes to findings, and the live catalog basis all explicitly wait on it per the PR body.

    Routed: enqueued task 22395 (pr_shepherd for PR #14082) — address the CodeRabbit minor, refresh against main if needed, run node --test bin/check-pool-ordering.test.mjs plus the config guard with/without --plans, merge. Cheapest-sufficient / notes-to-findings / live-catalog work follows after #14082 lands, not in parallel on the same checker.

  9. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Remainder routing — lane oc-code-01, 2026-11-24T08:20Z.

    PR #14082 MERGED (315f5a0): burn-by-expiry --plans wiring is on main; shepherd task 22395 completed as verified merge. No live queue task covers what is left.

    Routed follow-on: validate the checker's expiry derivation against the live plan store's actual reset instants and promote expiry-order mismatches from notes to findings where validated (checker header names this as the explicit follow-up). Cheapest-sufficient stays deferred (store fee is a subscription price, not cost per unit of work — needs a design decision) and the live catalog basis stays open (no live proxy-kind source). Follow-on packet enqueued; this issue stays open.

  10. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Follow-on packet enqueued as queue task 22745 (repo-health-code-pilot): validate expiry derivation vs live reset instants, promote notes to findings where validated. Cheapest-sufficient + live-catalog deferred per the routing note above.

  11. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    oc-code-08, queue task 22745 (2026-11-24): validation of the --plans expiry derivation against live reset instants is blocked. The plan records readable from this lane carry no actual reset instants: the opencode-go and mistral-education quotas are calendar/720h, and the rest report resets unknown, with no resetAt. Without those instants no expiry-order mismatch can be validated, so no notes were promoted to findings. bin/check-pool-ordering.test.mjs passes 21/21 at origin/main 5ea57f5. Resume when a plan store with resetAt for the calendar quotas is readable from this lane.

  12. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    agent-note:v1
    state: parked (recheck 2026-11-25, park condition still unmet)

    • Agent: Felix (Muse sandbox seat), lane felix
    • Session / ID: queue task 22745 (re-drawn 2026-11-25T08:44Z)

    Recheck of the 2026-11-24 park (evidence note by oc-code-08): the resume condition — a plan store readable from the lane carrying actual reset instants (resetAt) for the calendar quotas — is still not met on this seat.

    • The only plan store readable here, ~/.local/share/opencode/plans.json, is an empty stub: 0 plans, 0 pools, last modified 2026-11-22, and contains no reset fields at all.
    • No other readable store on this seat carries resetAt / reset instants for the calendar (720h) quotas.

    So the --plans expiry derivation still cannot be validated against live reset instants, and no expiry-order notes are promoted to findings. Task 22745 is re-parked with the same artifact resume condition: "plan store readable with resetAt on calendar quotas". Cheapest-sufficient and live-catalog basis remain deferred per the packet, not attempted.

  13. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    agent-note:v1
    state: parked (third validation attempt, 2026-11-25; blocker re-verified live, unchanged)

    • Agent: Felix (Muse sandbox seat), lane felix
    • Session / ID: queue task 22745 (re-drawn 2026-11-25T09:17Z)

    Fresh evidence this pass (not a re-assertion of the earlier parks):

    1. Live plan store read from the laptop (amd-6, ~/.local/share/opencode/plans.json, via fleet shell): 9 active plans. Quotas: claude-max / meta-high-usage / openai-drewrypope / openai-popesdrew / open-design-go carry a 168h window with NO resetRule; command-code-go a 720h window with no resetRule; clinepass no quotas; only opencode-go and mistral-education carry resetRule: "calendar" (720h). No plan or quota anywhere in the store carries a resetAt or any observed reset instant. This seat's own store is an empty stub (plans: []).
    2. The checker (main, bin/check-pool-ordering.mjs) was run against that live store copy: guard passes; every derivable expiry is the single instant 2026-12-01T00:00:00Z (the 720h calendar-month boundary from the two calendar quotas); all other pools report unknown. The run emits zero expiry-order mismatch notes — with one shared derived instant there is no pair of derivable pools that can be out of order, so there is literally nothing to promote this pass.

    Conclusion: the acceptance's first clause still cannot be met. Validation "against the live store's actual reset instants" needs the store to record actual reset instants; today it records only window lengths and (twice) a calendar rule. The gap is upstream in the #1270 quota plane (the store's producer), not in the checker: the derivation itself is internally consistent for the two calendar quotas it can see.

    Resume condition (non-person): the #1270 plan store records actual reset instants for its quotas (e.g. a resetAt per quota, or an equivalent observed-reset field), at which point the derivation can be compared against actuals and mismatches promoted exactly where validated. Cheapest-sufficient and live-catalog basis remain deferred per the packet (no cost-per-unit basis; no live proxy-kind source) — not attempted.

    Task 22745 parked again with this evidence; recheck in 24h.

  14. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Queue task 22745 (fourth validation attempt, 2026-11-26, lane any-n): resume condition still unmet, verified fresh this pass.

    • Local live plan store now carries 9 plans (no longer a stub), but zero resetAt fields anywhere in the file: only opencode-go and mistral-education carry resetRule calendar (720h); all other quotas report window lengths with no reset instants.
    • bin/check-pool-ordering.test.mjs passes 21/21 on origin/main; the checker itself is healthy — the gap is upstream data, not checker code.

    Blocking task 22745 on #1270 (quota-plane producer) with dep-recheck: validation needs the store to record actual reset instants.

  15. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census 2026-11-29 (lane CEN-C01) — body + all 60 comments re-read. Consolidated blocker state:

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass, concurring with the parallel census note (lane CEN-C01) already on this thread, whose claims I verified against live state in this pass. STRENGTHS: the audit machinery is healthy (bin/check-pool-ordering.mjs passes 21/21 on main; the stewardship audit block is live) and the blocker is pinned exactly — across four validation attempts the live plan store carries no resetAt instant anywhere, so expiry-ordering validation has nothing to validate. PRIORITY VALIDATION: priority/high, single, correct (P1 by the body's own ordering; important and time-sensitive). FIXES I APPLIED: none needed. REMAINS: the producer-side fix (record reset instants in the plan store), then the audit validates end-to-end; queue task 22745 tracks the recheck. No Drewry decision needed.

  17. added
    app/pm-stack
    on Nov 29, 2026
  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: No app/*/area/* label — the quota-plane lives in the PM stack, so app/pm-stack was added. Everything else complete, with an ## Acceptance criteria section.

    Strengths: A recurring audit with a crisp done-condition (latest models incorporated; route rules cover all needs), honestly sized at effort/m, and queued with a named owner state.

    Actions taken by this census: Labels added: app/pm-stack.

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

    app/pm-stackeffort/mepic/pm-stackkind/infrastructuremeta/enrichedmeta/follow-upmode/onlinepriority/highqueue/queuedsource/humanstatus/in-reviewtask/triagework/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions