GeezerVison is showing github.com — epic(quota-plane): Stage 2 — 15-minute quota gathering in the PM stack, token adapters, automated pool decisions · Issue #1149 · developing-today/code
epic(quota-plane): Stage 2 — 15-minute quota gathering in the PM stack, token adapters, automated pool decisions #1149In progress 5 / 65 of 6 issues completedIn progress 5 / 65 of 6 issues completed DescriptionStage-2 epic under #1047, per Drew's direction 2026-10-26 22:41 CDT. Design: quota-plane-design-2026-10-26.md (usage-billing-hub goal files), Stage 2. Parent context: epic #1047.
Direction, in Drew's terms: quotas and plan details gathered routinely at every regular interval (~15 minutes) by a process inside the PM stack; that data informs automated decisions the OpenCode pools make; Muse may change the plumbing so the stack reaches quota data directly — for browser-only dashboards, pull from a file or use the browser token directly against the undocumented API the dashboard page calls; all but two providers are reachable that way, and the two exceptions carry their own integration-plan issues (login -> capture token -> undocumented dashboard API); visibility stays fully current, with a pull on page load when data is older than ~1-5 minutes.
Priority order (children filed in this order; horizons on org Project #4):
- P0 Gatherer service (15-min tick, quota-current)
- P0 Token-adapter framework
- P0 Exceptions audit — name the two
- P1 OpenCode consumption contract
- P1 Adapters: ClinePass / OpenCode Go / Claude / Command Code
- P1 Exception integration: Meta
- P1 Exception integration: Google/Antigravity
- P1 Aggregator lazy refresh on page load
- P1 Daily model + route audit (stewardship block LIVE 2026-10-26)
- P2 Quota-plane visibility (gatherer health on /quota)
- P2 Stage-3 design (predictive quota ops)
Acceptance for the epic: every held provider's quota arrives via the gatherer at 15-minute cadence (or its exception issue closes with the file-export fallback live); OpenCode placements consume the fresh data; /quota freshness is self-evident per provider.
Acceptance criteria
- Every held provider's quota arrives via the gatherer at ~15-minute cadence, or its exception issue closes with the file-export fallback live.
- OpenCode placements consume the fresh quota data.
- /quota freshness is self-evident per provider.
Sub-issuesCollapse Sub-issuesSub-issues5 of 65 of 6 Issues completedLoading 6 sub-issues Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 27, 2026 Children filed 2026-10-26 (priority order; horizons on org Project #4):
- feat(quota-plane): quota-gatherer service in the PM stack — 15-minute tick, quota-current contract #1151 P0 — Gatherer service (15-min tick, quota-current) · Week
- feat(quota-plane): browser-token adapter framework — managed credentials, fail-closed dashboard-API clients #1153 P0 — Browser-token adapter framework · Week
- audit(quota-plane): name the two token-exception providers definitively #1155 P0 — Exceptions audit: name the two · Week
- feat(quota-plane): OpenCode pools consume quota-current — measured placement, rotation, demotion #1157 P1 — OpenCode consumption contract · Week
- feat(quota-plane): adapter — ClinePass via dashboard session token #1159 P1 — ClinePass adapter · Week | feat(quota-plane): adapter — OpenCode Go console, per-workspace windows #1161 P1 — OpenCode Go adapter · Week | feat(quota-plane): adapter — Claude via claude.ai session (usage API) #1163 P1 — Claude adapter · Month | feat(quota-plane): adapter — Command Code via CLI/app credential #1165 P1 — Command Code adapter · Month
- plan(quota-plane): exception integration — Meta (login, token capture, console API) #1167 P1 — Exception integration: Meta · Month
- plan(quota-plane): exception integration — Google/Antigravity (login, token capture, panel API) #1169 P1 — Exception integration: Google/Antigravity · Month
- feat(quota-plane): aggregator lazy refresh — pull on page load when data >5 min old #1171 P1 — Aggregator lazy refresh (>5 min) · Week
- feat(quota-plane): daily model + route audit — latest models incorporated, route rules cover all needs #1173 P1 — Daily model + route audit · Week
- feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175 P2 — Quota-plane status view · Month
- design(quota-plane): Stage 3 — predictive, self-tuning quota operations #1177 P2 — Stage-3 design (predictive quota ops) · Month
Design: files/quota-plane-design-2026-10-26.md in the usage-billing-hub goal workspace.
dezren39 commented on Oct 28, 2026 Intake review
Fleet monitor intake pass (protocol §5), 2026-10-28.
- Related: Stage-2 epic under epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047 (quota plane); design: quota-plane-design-2026-10-26.md (usage-billing-hub goal). Stage 1 context lives on the parent epic.
- Still live: the 15-minute gatherer + placement consumption is not live; the body's own acceptance line (gatherer cadence, placements consuming fresh data, /quota freshness self-evident) is unmet.
- Body edit: the acceptance existed only as prose — appended a structured
## Acceptance criteria section distilled verbatim from it; original body preserved above.
- Risks: the two browser-only provider exceptions can silently stall the epic — their exception issues need to exist and be named here before the cadence work starts, or Stage 2 reads done while two providers are dark.
- Suggested approach: gatherer cadence first with per-provider freshness surfacing, then wire OpenCode placement consumption, then close out the two exception paths (integration or file-export fallback).
- Labels normalized: kind/feature, source/human, status/needs-triage, priority/high, effort/l, app/pm-stack, meta/epic, meta/enriched.
dezren39 commented on Oct 30, 2026 Epic leg filed: #2490 — unify(quota-plane): one quota read path — server endpoint, CLI, and aggregator gatherer must share the direct credential-store read.
This is the read-path unification leg of this epic, filed at Drew's direction 2026-10-29 ("there was supposed to be a unification in the 3 quota read methods"). It names the three divergent readers (OpenChamber server credential projection / CLI server-first+store-fallback / gatherer direct store read), tonight's divergence evidence (developing-today-forks/openchamber#858 Antigravity, #1301 Meta exporter), and the acceptance test that all three surfaces return identical windows in the same tick. It absorbs #1169's read-path half by reference (token capture stays with #1169) and depends on the #1167/#1301 Meta leg, expedited tonight. dezren39 commented on Nov 23, 2026
Lane xaltha — #1149 pickup via priority rung, stand-down (2026-11-23). Fresh re-verification this pass, concurring with lanes any-o (08:02Z), NU (08:41Z), RT (10:46Z), oc-code-08 (12:01Z): no lane-buildable slice remains. #1173 OPEN/in-review with PR #12666 still OPEN (another worker's — collision); #1270 OPEN with slice 2 flag-held awaiting Drew; #2490 and #1177 OPEN/in-review (gated). No PR, no new issues. Moving on to the next queue hand. dezren39 commented on Nov 23, 2026
Lane agent-next-25-local — #1149 pickup via priority rung (2026-11-23). No PR; epic remains open.
Fresh verification since the prior #1149 reconciliation:
No independent code slice was safe to take from this checkout: the #1173 implementation is already in an open PR, and #1270's remaining daily schedule hook requires doc/fleet-schedule-registry.md, which has pre-existing local edits here. I left those edits untouched and did not duplicate either line of work. No acceptance criterion on #1149 is newly evidenced complete, so the epic stays open. Recheck on the next lane poll after one of these child states changes. dezren39 commented on Nov 23, 2026
Lane xaltha — #1149 pickup via priority rung, stand-down (2026-11-23). Fresh re-verification this pass, concurring with agent-next-25-local (16:01Z): no lane-buildable slice remains. #1173 OPEN/in-review with PR #12666 still OPEN (another worker's — collision); #1270 OPEN (remaining daily schedule hook needs doc/fleet-schedule-registry.md, pre-existing local edits elsewhere); #2490 and #1177 OPEN/in-review (gated). No PR, no new issues. Moving on to the next queue hand. dezren39 commented on Nov 23, 2026 Lane any-n — #1149 pickup via priority rung, stand-down (2026-11-23 ~18:05Z). Fresh first-hand verification, concurring with any-o/NU/RT/oc-code-08/xaltha/agent-next-25-local today: no lane-buildable slice. #1173 OPEN with PR #12666 OPEN (another worker's — collision); #1270 OPEN (slice 2 flag-held awaiting Drew, slice 3 primary-seat scheduling); #2490 OPEN (deploy leg held elsewhere); #1177 OPEN (design-review gated). No PR, no new issues. dezren39 commented on Nov 23, 2026 Lane code-j (OpenChamber scheduled Fleet lane), #1149 pickup via priority rung, 2026-11-23. No PR, no code change.
Fresh first-hand verification:
New finding for #1270 slice 3 (daily reconciliation wiring):
- pm-stack/provider-usage/reconcile.py load_measured() reads provider-usage-snapshot.json (keyed
providers dict with a plan field). That file is dated 2026-11-03 (hatch-personal keep-the-four-repos-healthy/hidden_files).
- The live measured source is ~/.local/state/pm-aggregator/quota-current.json, refreshed every 15 min, but its shape differs:
providers is a LIST of objects with providerId and no plan field. So re-running the daily diff against live data would still show the measured leg as empty even after the gatherer is healthy.
- Slice needed: a schema adapter (quota-current -> measured leg) with a fixture test, then the daily timer. Not started by this lane: it changes the measured contract tested by test_reconcile.py and needs a registry row in doc/fleet-schedule-registry.md, which has pre-existing local edits in the primary checkout.
Next lane action: take #1270 slice 3a = quota-current adapter + fixture test (repo: pm-stack/provider-usage/), then slice 3b = daily timer + registry row. dezren39 commented on Nov 23, 2026
Lane xaltha — #1149 pickup via priority rung, stand-down (2026-11-23 ~21:45Z). Fresh first-hand verification this pass; no lane-buildable slice remains.
- feat(quota-plane): daily model + route audit — latest models incorporated, route rules cover all needs #1173 OPEN/in-review, PR feat(route-audit): check pool ordering — OpenAI final reserve (#1173) #12666 still OPEN (xaltha branch
xaltha/1173-pool-ordering); the remaining finding-5 fix sits uncommitted in worktree code-12235 and is blocked on Drew's pick (reorder traffic / scope the rule / record an exception) — a genuine owner decision.
- feat(quota-plane): plan-store / tracker / measured reconciliation diff (daily) #1270 OPEN; slices 1–2 landed (slice 2 landed 14:27Z under Drew's batch approval; PR fix(quota-plane): canonicalise fee_period vocabulary in reconcile.py diff (#13375) #13395 merged, plan-store 9 / tracker 9 / measured 0, no drift). Remainder is the daily schedule hook in
doc/fleet-schedule-registry.md — primary-seat cron work, not a repo PR.
- unify(quota-plane): one quota read path — server endpoint, CLI, and aggregator gatherer must share the direct credential-store read #2490 OPEN/in-review; PR fix(meta-exporter): isolate malformed quota windows #13116 still OPEN (another worker's — the usage/limit-fixture next slice waits on it). Deploy leg landed (PR chore(flake): bump openchamber pin 683121ce -> 88ca37a75 (#2490) #13130 merged); remainders are the primary-seat
nixos switch and live check, both walled by the mcpx check failures (mcpx: check phase e2e timing tests fail under parallel build load (two runs, two different tests) #13131).
- design(quota-plane): Stage 3 — predictive, self-tuning quota operations #1177 OPEN/in-review; Stage-3 design approved and merged (PR design(quota-plane): Stage 3 — predictive, self-tuning quota operations (#1177) #12702); follow-ups live under epic epic(quota-plane): Stage 3 — predictive, self-tuning quota operations #12694 (impl(quota-plane): stage-3 S1 — forecast product: per-tick quota-forecast from the analytics pace math #12695, impl(quota-plane): stage-3 S2 — forecast accuracy ledger + backtest harness over the snapshot history #12696), not this epic.
- Epic acceptance criteria 1–3 previously recorded met; not re-measured here.
No PR, no code change. Releasing the hand. dezren39 commented on Nov 23, 2026 code-g note (2026-11-23): child #1177 (Stage-3 design) verified complete and closed — design PR #12702 merged 2026-11-22, Drew approved, Stage-3 epic #12694 + children #12695-12701 filed (S1 already landed). No PR from this slice (close-with-evidence only). Open children now: #1173 (daily audit remainder: burn-by-expiry automation + live catalog basis; checker PR #12666 open), #2490 (deploy remainder: nixos switch + live parity check), plus epic-level acceptance re-check. dezren39 commented on Nov 24, 2026 Lane any-n — fresh check (2026-11-24): no independent Stage-2 implementation slice remains in this epic. The cadence exception #1159 is CLOSED; the per-provider /quota freshness child #1175 and Stage-3 design child #1177 are CLOSED; and the OpenCode pool-ordering PR #12666 is now MERGED (the #1173 issue itself remains OPEN). The epic criteria have prior evidence on this issue and their owning children. Remaining open work is separately tracked in #1173, #1270, and #2490; I did not duplicate those scopes or change their ownership. No PR or code change from this pass. dezren39 commented on Nov 24, 2026
Lane xaltha — #1149 pickup via priority rung, slice landed (2026-11-23 ~23:00 CST). PR #14082 open.
What this slice does: wires --plans into bin/check-pool-ordering.mjs (#1173 item 1, burn-by-expiry): the checker reads the #1270 plan store and reports each pool's quota window end, the expiry order per tier pass, and a note when the config order burns a later-expiring ordered pool before an earlier-expiring one. Window-end derivation decided and recorded in the checker header: a calendar window is the calendar period containing now (24h → next UTC midnight, 168h → next Monday 00:00 UTC, 720h → 1st of next month); anything else is unknown, never guessed. Provider ids are normalised for matching (open-design/opendesign, _claude/claude, _openai.alt/openai).
Verification: remote dispatch only. fleet queue dispatch is blocked from this seat by TLS #13185 (plus a relay-proxy timeout), so the fleet-command.yml fallback was used; run 45324807575 (via nix shell nixpkgs#nodejs_24, the image has no node) is success: 21/21 tests, guard passes on the canonical config with and without --plans. The first fallback run failed on node: command not found, not on the code.
What the canonical config reports: exit 0, reserve passes everywhere. One tension surfaced as a note (not a finding): sol-plan (OpenAI-backed, expires 2026-11-30) is tried after spark-plan (expires 2026-12-01) in specialist — burn-by-expiry and the reserve rule point opposite ways there. Follow-up on #1173: validate the derivation against the live store's actual reset instants, then promote expiry mismatches from notes to findings. Cheapest-sufficient remains unwired.
Not taken: the finding-5 fix still sits uncommitted in worktree code-12235, still awaiting Drew's pick (reorder traffic / scope the rule / record an exception) — a genuine owner decision, untouched. #1270 slice 3 stays primary-seat scheduling; #2490's remainders stay primary-seat. No other PR from this pass. developing-today-fleet commented on Nov 26, 2026 Fresh monitor triage (2026-11-26, task 24333): #1149 remains OPEN; Stage-2 acceptance is not newly complete, and the remainder is already tracked, so no duplicate fix packet is warranted. Current evidence: #1173 remains OPEN; its burn-by-expiry checker PR #14082 is MERGED, but follow-up validation still lacks quota resetAt/observed instants in the available plan store (latest #1173 note, 2026-11-26). #1270 remains OPEN on its daily stewardship-cycle wiring and the measured-leg freshness gap; its existing owner work is unchanged. #2490 remains OPEN after PR #13116 merged; its remaining deployed-CLI/live parity check is blocked by the recorded mcpx check failures (#13131), with deploy/live-check work already separately tracked. #1177 and #1159 are CLOSED. Verdict: keep #1149 open until these tracked child remainders and the acceptance evidence close; no new packet or code change from this triage. developing-today commented on Nov 27, 2026 Triage refresh (2026-11-26, queue task 25091): the same-day verdict in task 24333 remains correct; fresh child comments since that note confirm the remaining Stage-2 work is still tracked and not a new epic-level slice.\n\n- #1173: remains OPEN; task 22745 is blocked because the plan store still has no actual resetAt values. The checker tests are green (21/21); this is an upstream data prerequisite, not a checker-code gap.\n- #1270: remains OPEN; its 2026-11-26 task 24955 note confirms tracker/store no-drift, while the measured leg is still empty and the daily stewardship schedule is still unwired. No worker packet was routed because neither remainder has an available lane executor.\n- #2490: remains OPEN; task 24901 confirms the final NixOS switch and live CLI-vs-gatherer parity are still gated by mcpx check timing (#13131) and the fork FOD mismatch (opencode#2700). No new packet from that triage.\n- #1159 and #1177: CLOSED.\n\nVerdict: #1149 remains OPEN until its remaining acceptance evidence lands. All remaining work is already tracked under these children/blocks; no duplicate child or fix packet is warranted from this triage. developing-today commented on Nov 27, 2026 🤖 Agent note (lane code-j, 2026-11-27, triage task 25554): concur with the 00:01Z refresh — epic remains open; child work/blocks already tracked.
- Fresh state confirms feat(quota-plane): daily model + route audit — latest models incorporated, route rules cover all needs #1173, feat(quota-plane): plan-store / tracker / measured reconciliation diff (daily) #1270, unify(quota-plane): one quota read path — server endpoint, CLI, and aggregator gatherer must share the direct credential-store read #2490 OPEN; feat(quota-plane): adapter — ClinePass via dashboard session token #1159 and design(quota-plane): Stage 3 — predictive, self-tuning quota operations #1177 CLOSED. feat(quota-plane): daily model + route audit — latest models incorporated, route rules cover all needs #1173 resetAt is an upstream data prerequisite; feat(quota-plane): plan-store / tracker / measured reconciliation diff (daily) #1270 still lacks measured leg/schedule; unify(quota-plane): one quota read path — server endpoint, CLI, and aggregator gatherer must share the direct credential-store read #2490 remains gated by mcpx: check phase e2e timing tests fail under parallel build load (two runs, two different tests) #13131 and opencode#2700.
- No duplicate child or fix packet. Keep Stage 2 open until remaining acceptance evidence lands. Refs epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047, Queue reprioritization programme 2026-11-24: full census, reorder, unblock #14158.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|