GeezerVison is showing github.com — aggregator: forecast per-pool quota exhaustion intervals · Issue #3983 · developing-today/code
aggregator: forecast per-pool quota exhaustion intervals #3983DescriptionParent chain: #1184 → #1256 → this issue. GitHub currently caps #1184 at 100 direct sub-issues and rejects additional links (REST 422), so implementation slices are nested under #1256, already a native child of #1184; no existing parent links were changed.
Design context: #1256; doc/2026-11-01T21-07-00Z_design_pm-stack_forecasting/2026-11-01T21-07-00Z_design_pm-stack_forecasting.md (§2). Depends on the measured live-rate contract in #3933; do not duplicate its quota extraction or near-limit/wall threshold rules.
Goal
Add a time-to-exhaustion interval that composes live per-pool usage, observed rate, and reset time, complementing (not replacing) the existing point-pace and quota-wall derivations.
Acceptance criteria
- Consume the live quota contract from aggregator: finish quota throughput data + record the design contract (#851) #3933: pool identity, remaining/limit, reset time, measured timestamped burn, source age/coverage, and explicit missing/estimated markers.
- Where enough fresh rate observations exist, return an exhaustion interval and whether its P50/P80 falls before or after reset; expose the rate window and source.
- If rate, remaining amount, or reset is missing/stale, or there is no measured burn history, return an explicit unknown state rather than “safe” or a fabricated date.
- Reuse aggregator: finish quota throughput data + record the design contract (#851) #3933 existing near-limit/wall rules; do not add another threshold/attention path. Queued issues are not converted into token demand; any scheduled-work scenario must be separately labelled and use attributable measured inputs.
- Tests cover reset boundaries, stale/missing rates, zero rate, limit already reached, and a measured exhaustion-before-reset case.
Activitydeveloping-today commented on Nov 3, 2026 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 dezren39 commented on Nov 12, 2026 agent-note:v1
task: 8750
lane: any-o
state: picked_up
worker: repo-worker-code
finding: #3983 is OPEN with no hard-stop labels; #3933 is CLOSED via merged PR #7354, and the live-rate contract is confirmed in the recorded completion. Canonical implementation PR #8522 is OPEN at head 8b1dea3; prior session binding was cleared in queue cleanup, and this task is now claimed by lane any-o.
next: Resume PR #8522: freshly verify checks, mergeability, and diff; if checks are still pending, park with the CI resume condition.
dezren39 commented on Nov 12, 2026 agent-note:v1
task: 8750
lane: any-o
state: in-progress
worker: repo-worker-code
finding: Resumed canonical PR #8522 and added reset_passed handling for dated windows whose reset is at or before now, including the at-limit regression test. Merged current origin/main with a merge commit and pushed head 31d9863. Targeted forecast + #3933 tests pass (32); GitHub reports MERGEABLE. New checks are running/queued.
next: Wait at most five minutes for checks; park if still pending.
dezren39 commented on Nov 12, 2026 agent-note:v1
task: 8750
lane: any-o
state: parked
worker: repo-worker-code
finding: PR #8522 is MERGEABLE at head 5e7e688. The expired-reset CodeRabbit finding is fixed with a regression test; targeted tests pass (32/32). Latest-main parity check, proxy fallback, docs build, affected-embed and scripts-test 3.12 passed during the bounded poll; scripts-test 3.14 and mcpx checks were still pending. The earlier parity failure came from main advancing with PR #8923; after merging latest main, parity now passes.
resume: Recheck every CI result and review thread on the exact head; if all required checks are green and findings are dispositioned, revalidate issue/PR and merge.
dezren39 commented on Nov 12, 2026 🤖 Agent note · done — PR #8522 merged with all Codex findings dispositioned (task 8750, lane code-c)
- Agent: queue worker lane code-c (task 8750; claimed direct — the lane row's 2026-11-03 opencode session ses_e5e5668ee9dffew1e9HBjhjSbN no longer exists in the laptop session store, i.e. the stale-binding pattern; the implementation was already complete on the PR)
- Merge: PR feat(aggregator): per-pool quota exhaustion intervals from measured burn (#3983) #8522 merged 2026-11-12T20:53:50Z, merge commit 2d27f3b, head 5525bf1. The gate named in the packet (aggregator: finish quota throughput data + record the design contract (#851) #3933 contract) was already satisfied. Remaining CI failures on the PR were only the clean-main mcpx set tracked by issue fleet-stalling: main mcpx test failures block clean PR checks (run 43191539255) #8900 (mcpx-test unit / e2e shards 0,3,4,5 / ci-ok) — this PR is aggregator-only.
- Codex disposition (all four findings replied on their threads and resolved):
- P2 freshness-before-exhausted (4533929230): already fixed on the branch — freshness check precedes the exhausted shortcut, stale sources return
unknown/stale_source.
- P1 property coverage (4533929234): already present — seeded property tests assert P80-never-later-than-P50 and foreign/reset-straddling observations never change a forecast.
- P2 live-overlay forecasts (4533929238): already fixed —
overlayQuotaCurrent deletes pool.exhaustion when it replaces/adopts/clears windows, with a test.
- P2 obsolete rate pairs (4555789594): fixed in this pass, commit 9141f3f — rate pairs are now filtered by recency relative to
now (later side ≤ RATE_WINDOW_MS old), not just separation; regression test from the finding's own example (yesterday's pairs + one observation now → unknown/no_measured_burn), ablation-verified (fails without the fix).
- Tests:
bun test test/quota-exhaustion.test.ts test/quota-current.test.ts — 71 pass, 0 fail on the merged head (re-run after merging current main into the branch).
- Disposition: issue aggregator: forecast per-pool quota exhaustion intervals #3983 closed on this evidence (the PR carried no closing keyword). Task 8750 completes
fixed_merged.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|