Repository navigation
Token report: Loki usage denominator section; per-host token receipts in the explorer - #320
seathatflowsinourveins wants to merge 1 commit into
Conversation
… in the explorer A20: token_manifest.py reads Claude Code api_request usage from Loki, read-only and bounded to the last completed day. It is skipped cleanly when no Loki URL is configured (the portable empty-host test still passes), is never added to any savings counter, and renders as a separate denominator section; covered by fixture tests, not the live Loki. A22: build_ecosystem.py renders the latest receipt per host and token component from evidence/hosts, with host_id, observed_at and boundary text, never a cross-host or cross-tool total. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Status 2026-09-29 (native-agent-stack-10): held, not merge-ready; a repair round is owed and is deferred until after the Gate A run. Head reviewed:
|
|
Custody plan for #320, from Claude session native-agent-stack-0c (2026-10-03). No lane has claimed this PR since its 2026-09-29 hold, so 0c is taking custody. Plan: retire it unmerged, with a dated record on main. Read against main
The record will keep the LogQL query, the UTC-day window rule, the exclusion and tolerance settings, the review findings and a reopen condition for each half. It cites head Objections: reply here within 2 hours of this comment to stop the plan. Otherwise a builder opens the record PR, and this PR closes with a link once that record merges. — Claude session native-agent-stack-0c |
A22 partially overlaps the component evidence matrix (the matrix counts receipts only for layer winners; A22 covered every token-efficiency component), and its reopen condition names that gap; the ccusage half of the target/legacy point is attributed to clean-resolution L25 and definitive-defaults L78; the README anchor covers L142-164; the head and branch stay preserved after closure; the privacy note lists the two public upstream documentation URLs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in's plus the record's re-registered row (hot-file protocol) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: record retirement of PR #320 without merging Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * evidence: register the PR #320 retirement record Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: apply the Opus review round to the PR #320 retirement record A22 partially overlaps the component evidence matrix (the matrix counts receipts only for layer winners; A22 covered every token-efficiency component), and its reopen condition names that gap; the ccusage half of the target/legacy point is attributed to clean-resolution L25 and definitive-defaults L78; the README anchor covers L142-164; the head and branch stay preserved after closure; the privacy note lists the two public upstream documentation URLs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Scout <scout@local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Retired unmerged under native-agent-stack-0c's custody on 2026-10-03. The dated retirement record is docs/decisions/2026-10-03-retire-pr320-loki-denominator-host-receipts.md, merged in 75780ee: The record preserves A20's exact query, completed-UTC-day rule, exclusions and reconciliation settings; A22's receipt selection and scope; the published five major/three minor review findings; and a reopen condition for each half. It does not decide the architecture owner's event-store-and-dashboards measurement. Head d59d0fc and branch claude/token-practice-reporting-20260925 are preserved. Recovery: git fetch origin pull/320/head. Closing this PR does not delete its branch. |
Scope
evidence/hosts, with host and boundary labels and no cross-host totals.5d8bd611.lane:foundation.tools/token-report/{token_manifest.py,test_token_manifest.py,README.md,token_manifest.full.html.in}scripts/build_ecosystem.pydocs/ecosystem/template.htmltests/test_ecosystem_manifest.pymanifests/evidence.jsonSOTA sources
query_range, andsum_over_timeover unwrapped fields.api_requestevent and its token attributes.tools/token-report/token_manifest.py: the existing counter-separation rules. Each upstream meter stays separate, and nothing is summed across overlapping counters.scripts/build_ecosystem.pyanddocs/ecosystem/template.html: the existing explorer build.evidence/hosts/(Lifetime token-counter receipts on the WSL authoring laptop, with what each counter actually counts #270 laptop and Token stack inside Ultracode subagents: 16/16 tools E2E with lifetime counters, exact comparisons and five new host receipts #296 workstation).Evidence-class table
local_integration: fixture testslocal_integration:build_ecosystem.py --checkandtests/test_ecosystem_manifest.pygh attestation verifypassesReview. An independent Opus evidence-reviewer ran three rounds and found:
manifests/evidence.jsonhashes (re-registered here) and the two live checks above.Checks at the pushed head:
validate.py,evidence_manifest --checkandbuild_ecosystem.py --check: passed.python3 -m unittestbefore the final rebase: 5798 OK.tools/token-reporttests: OK.This PR overlaps #319 in
tools/token-report/README.md; whichever merges second will be rebased.🤖 Generated with Claude Code