ModelConnector/crates/claude-connector/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 65665225bf meter: the weekly reading is kept fresh by one real claude call, not an endpoint the token cannot reach
The usage endpoint answers 403 to a setup token (inference scope only), so the poll
could never work. The connector's own claude -p call already carries the week in its
rate_limit_event (captured 2026-11-03: seven_day utilization 0.06 and its reset).
The meter makes that call (haiku, no tools, trivial prompt) when the seven_day
reading is 15 minutes stale, only while the swarm brake store reads released, and
backs off per consecutive miss. Deleted usage_poll, the ureq dependency, and the
quota rule that only a polled reading needed (POLLED, rejection-stands).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 12:16:40 +01:00
..
fixtures meter: the weekly reading is kept fresh by one real claude call, not an endpoint the token cannot reach 2026-11-03 12:16:40 +01:00
config_document.rs usage-meter-poll: gate fixes: the timeout is read per request, serve has a refusal test, the RFC 850 guard is pinned 2026-11-01 03:30:55 +01:00
lease.rs lease v2: committed byte goldens, rustfmt 2026-10-31 05:38:48 +01:00
lease_wire_golden.rs lease v2: committed byte goldens, rustfmt 2026-10-31 05:38:48 +01:00