meter: driven by the connector's own lease state, not the brake store (findings brake-store-broken-reads-as-held, braked-bounce-unobserved, rejected-reading-backs-off-six-hours, meter-failure-kind-read-by-nobody)
The meter reads the week only while a lease is held or was asked for less than a staleness period ago. A held swarm brake stops the units, so a braked or quiet swarm spends nothing; the brake path, the duplicate brake type, the store read, the frozen store fixture and the chrono serde feature are gone. A request is noted by the QuotaCell for as long as it lives (a 4 h lease counts) and wakes the meter. A lease asked of a metered cell with no weekly reading (every restart) waits up to 10 s for the meter's first read before it is lent, so it is not lent unobserved for its whole life. A call is a miss only if it left the reading unrefreshed: a rejected turn that reports its windows and then errors is no miss, so a rejected reading is kept fresh every period. The failure kind is logged on change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
877f7a92cd
commit
a98594ed39
7 changed files with 480 additions and 245 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
|
@ -1,3 +1,2 @@
|
|||
schemas/*.json text eol=lf
|
||||
crates/model-connector/tests/fixtures/wire_v4/* -text
|
||||
crates/claude-connector/tests/fixtures/*.cc -text
|
||||
|
|
|
|||
Loading…
Reference in a new issue