Provider-reported z.AI / GPT quotas for the Qtile widget pair #81
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/79-provider-quota-telemetry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the backend portion of #79; consumer tracked in lost-rob0t/dotfiles#233. User priority is the adjacent z.AI and GPT widgets before the new grapher.
Implemented
GET /api/v1/quotasin the Python capture/analytics runtime, with a versioned sanitized snapshot.Executed local verification
14 new Python/aiohttp tests pass, including a real loopback HTTP server and actual fake Codex subprocess handshake. Tests were written and run first: missing-module import RED, then 14-test GREEN. Python 3.13.5 / aiohttp 3.13.3. This is not a live-provider or Nix result.
Enablement / remaining verification
Set LLM_LOG_QUOTAS_ENABLED=1 on the Python capture service, provide a private local ZAI key file/env and an already-authenticated codex executable in the service environment. Those credentials and the user's machine are not available here. No deployment or live quota read is claimed. Full exact-head CI/package checks must pass before merging.
The independent Common Lisp Woo transport blocker on #74, and stacked rate/profile PRs #76/#77, remain unverified and are NOT represented as repaired by this telemetry PR.
Merged as
9f9971053dwith the expected-head guard on171cf7a21a. Both workflows on that implementation head passed: Analytics API 34732810083 and Quota telemetry exact-head contract 34732810084, including the full Python suite under Nix and the delivered Python package build/install checks.The final implementation also includes opt-in timeline coverage=fields (per-input/output report counts, backwards-compatible basic responses), completed-request accounting metadata, and a maximum of two off-event-loop corpus readers. Cancelled HTTP waiters do not prematurely release a live reader permit; excess scans receive 503 + Retry-After. Quota reads remain snapshot-only and independent.
Consumer dotfiles#235 is merged and pins this tested implementation. Local cross-repository HTTP/Cairo testing used synthetic quota inputs, not live account data. No live service deployment, user credential access or Qtile-session activation is claimed. The separate Woo transport blocker on #74 and stacked #76/#77 remain unmerged and are not repaired by this telemetry work.
Pull request closed