GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(quota): add quota-plane status view (#1175) by dezren39 · Pull Request #4006 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

/quota now exposes gatherer tick state and provider freshness without treating missing evidence as healthy. The standalone heartbeat can supersede stale embedded status after a failed tick; provider cause/source/cadence/fallback are shown only when recorded.

liveSource.quota
  read quota-current.json + standalone heartbeat
  select newest valid heartbeat
  overlay provider freshness
renderQuota
  tick summary + provider health table
  unknown stays unknown; errors are escaped

Evidence

  • Before: /quota showed pool-level freshness only; a newer standalone failed heartbeat was ignored.
  • After: quota status renders last/expected tick, adapter health, measuredAt, source class, cadence, fallback and last error; no current-data file still shows the heartbeat.
  • bun test test/quota-current.test.ts test/live-quota-status.test.ts test/token-adapter.test.ts test/render.test.ts test/usage.test.ts — 116 passed.
  • Full aggregator test run: 934 passed, 1 failed in unrelated test/slice3.test.ts (missing claude-code registry record). bun run typecheck remains blocked by existing missing @types/web-push and test typing diagnostics.

Merge Danger

Door: Two-way.

Blast Radius: Medium — quota status UI/model and aggregator runtime file configuration; existing quota windows remain unchanged.

Draft pending full acceptance/review and CI. Generic upstream provider errors without structured adapter status intentionally render as unknown rather than guessing from error text.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
WIP: add quota-plane status view (#1175)
c3a9b12
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 1, 2026
feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175
Closed
@github-actions github-actions Bot assigned dezren39 Nov 2, 2026
@dezren39 dezren39 mentioned this pull request Nov 3, 2026
epic(quota-plane): Stage 2 — 15-minute quota gathering in the PM stack, token adapters, automated pool decisions #1149
Open
3 tasks
@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · handed off

  • Agent: repo queue worker, lane code-g (repo-worker-code)
  • Session / ID: cron repo-queue-worker-shift-g run 2026-11-08 12:23 CST; task 13368
  • Found via: queue claim · task 13368
  • Task: task 13368 shepherds PR feat(quota): add quota-plane status view (#1175) #4006 (batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1; linked issue feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175). Fresh check: PR feat(quota): add quota-plane status view (#1175) #4006 is OPEN, no hard-stop labels on the PR; issue feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175 is OPEN. Execution-lane assignment returned opencode — handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
  • Expectation: claimant session drives task 13368 to a terminal state. Attempts 1/4.
  • Links: task 13368 · PR feat(quota): add quota-plane status view (#1175) #4006 · issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · blocked

  • Agent: queue worker (repo-worker-code), lane code-b
  • Session / ID: task 13368, repo-queue-worker-shift-b, 2026-11-08 12:20 CST shift
  • Found via: queue claim
  • Task: task 13368 (pr_shepherd, PR feat(quota): add quota-plane status view (#1175) #4006, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1) was returned by this lane's atomic claim, and the §1b lane call assigned it to opencode — but the first checkpoint returned the verdict "task 13368 is not claimed by repo-worker-code" while queue health stayed healthy. Same anomaly as task 12405 in the previous lane-b shift. Treating it as a verdict, not a backend failure: this lane stands down and does not park or work task 13368; the current holder owns its terminal state.
  • Expectation: current holder drives PR feat(quota): add quota-plane status view (#1175) #4006 (open at head c3a9b12) to its terminal state.
  • Links: PR feat(quota): add quota-plane status view (#1175) #4006, issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · handed off

  • Agent: queue worker (repo-worker-code), lane code-l
  • Session / ID: task 13368
  • Found via: queue claim
  • Task: pr_shepherd for PR feat(quota): add quota-plane status view (#1175) #4006 (parent issue Unowned PR batch from branch disposition (2026-11-07) #7297) — execution lane assigned opencode; handing off to the laptop claimant
  • Expectation: The opencode-claimant launches a bound session for task 13368; that session drives task 13368 to its terminal state. This lane does not work task 13368 directly.
  • Links: PR feat(quota): add quota-plane status view (#1175) #4006, issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition labels Nov 8, 2026
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

agent-note:v1
lane: code-u
task: 13368
stage: handed_off
Handed off to opencode claimant (lane assignment row 4959) for PR #4006 shepherding under batch issue #7297. Parked 1200s for claimant binding.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · handed off

  • Agent: repo queue worker, lane code-b (repo-worker-code)
  • Session / ID: cron repo-queue-worker-shift-b run 2026-11-08; task 13368
  • Found via: claimed task 13368 this shift; execution-lane assignment returned opencode
  • Task: task 13368 for PR feat(quota): add quota-plane status view (#1175) #4006 / issue Unowned PR batch from branch disposition (2026-11-07) #7297 (pr_shepherd). Fresh check: PR feat(quota): add quota-plane status view (#1175) #4006 is OPEN, draft, head c3a9b12, branch queue/4895-1175-quota-status-view, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
  • Expectation: claimant session drives task 13368 to a terminal state.
  • Links: task 13368 · PR feat(quota): add quota-plane status view (#1175) #4006 · issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · handed off

  • Agent: queue worker (repo-worker-code), lane code-b
  • Session / ID: task 13368 (pr_shepherd, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297)
  • Task: handing task 13368 for PR feat(quota): add quota-plane status view (#1175) #4006 to the opencode claimant; companion note on batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 (comment 6729054393). Task parked 1200s for the claimant window.
  • Expectation: claimant session drives PR feat(quota): add quota-plane status view (#1175) #4006 to a finish-or-close disposition per the packet (hard-stop labels re-checked fresh before any merge or close).
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Queue task 13368 — blocked pending safe disposition

Fresh revalidation at 2026-11-09T01:46:59Z: PR #4006 is OPEN/DRAFT at c3a9b12893cb40c72179a2519c0cbc84ddd7f9e8; labels are status/parked and queue/parked (none of held, user/owned, do-not-merge, do-not-auto-edit). The PR reports one successful check, but GitHub reports the branch non-mergeable/dirty.

No superseding canonical implementation was found: current main fda54ffdb96b227e3c31219ea940bc4a17f6a677 has neither the quota status renderer nor the independent quota heartbeat overlay, and linked issue #1175 remains open. Therefore closing as superseded is unsupported. Finishing requires a substantial rebase/port: the PR is 3,786 commits behind main (1 commit ahead), and a separate existing worktree already has conflicts in the quota implementation files. I left that worktree and all PR state untouched.

Issue #1175 still records an explicit Drew decision request (#1175 (comment)). This task is blocked pending direction to authorize a fresh, isolated rebase/port and finish; no merge, close, branch deletion, or label change was made.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · shepherd blocked — the merge-or-close decision is escalated to Drew (task 13368)

  • Agent: repo-worker lane any-d
  • Fresh state (2026-11-11): PR feat(quota): add quota-plane status view (#1175) #4006 still OPEN, still DRAFT, head unchanged c3a9b12, labels status/parked + queue/parked only. No work was done on the PR.
  • Why blocked: the underlying issue feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175 carries user/escalated + status/blocked + queue/blocked. Its block note (task 11913, 2026-11-08, decision recorded at comment 6726355807) frames the exact question this shepherd would have to answer: (a) finish and land feat(quota): add quota-plane status view (#1175) #4006, or (b) close/abandon feat(quota): add quota-plane status view (#1175) #4006 so the remainder becomes a clean fix packet. That decision is Drew's and still pending — a hard stop for this lane under the runbook.
  • New evidence for that decision: the PR is now PARTIALLY superseded on main — pm-stack/aggregator/src/quota-current.ts, src/quota-gather-map.ts, and test/quota-current.test.ts from its file list already exist on current main (landed via other work). Whichever way the decision goes, it needs a diff of the PR's remaining files (render.ts, model.ts, config.ts, sources/live.ts, gather-quota.ts, the nixos module) against main first — not a file-list comparison.
  • Queue: task 13368 blocked on the feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175 escalation; it revives when Drew rules (a) or (b).
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

state: closed as superseded — salvage diff vs current main recorded (lane code-c, task 13368, #7297 batch shepherd)

Salvage comparison against current origin/main (not a file-list comparison — per-file content and the live deployment):

  • The quota-plane status view this PR proposed is live on main and far beyond this branch: /quota serves 200 on the running aggregator, and main's versions of every shared file are substantially larger than the branch's (quota-current.ts 611 vs 464 lines; quota-gather-map.ts 1101 vs 612; gather-quota.ts 914 vs 516; quota-current.test.ts 1290 vs 753), with active development since (feat(quota-plane): adapter — Claude via claude.ai session (usage API) #1163 Claude adapter, fix(quota-plane): Meta portal-session lapse surfaces as 'no-data' error instead of a distinct lapsed state #8294 lapsed-session classification, 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 retained-entry heartbeat preservation).
  • ONE unique remainder was found, and it is recorded on feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175 as a scoped follow-on rather than silently dropped: the standalone gatherer-heartbeat file read. This branch adds PM_AGG_QUOTA_HEARTBEAT_FILE (quota-gatherer-heartbeat.json) so a gatherer tick that fails before writing quota-current.json is still visible — newest standalone heartbeat wins over the embedded one, and the heartbeat stays visible when quota-current.json is missing entirely (branch-only test: test/live-quota-status.test.ts). Main has no quotaHeartbeatFile config and no standalone read. Porting it is a real change, not a rebase: main's GathererSummary lacks the branch's durationMs/error fields and the per-provider health mapping from heartbeat.perProvider (e.g. adapterStatus session-expired → health "expired", measuredAt null), so it needs a model + summarize extension on current main.
  • Everything else in this PR is superseded by main's evolved implementation; merging or rebasing this 1-commit, 5882-behind branch would regress it.

Closing as superseded. The heartbeat remainder is scoped on #1175 with a queued follow-on task.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 closed this Nov 13, 2026
@dezren39
dezren39 deleted the queue/4895-1175-quota-status-view branch November 14, 2026 20:02
@dezren39 dezren39 mentioned this pull request Nov 19, 2026
fix(quota): surface standalone gatherer heartbeat #11998
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.