Lease socket answers a usage readout #1

Merged
eureka merged 5 commits from eureka-body/lease-usage-readout into main 2026-11-06 22:55:18 +00:00
Owner

Cut eureka-body:cut_spec:cut-lease-usage-readout.r1 (reports h1, h2; Soul s1 then s2 holds, two Lows: the wide-flood residual, addressed by readers polling one-shot with jitter in cut-plan-readout-live; test imports formatted here). The lease socket answers a usage readout from the one QuotaCell: no lease, no caller check, no token read, never wakes the meter; readouts have their own pool of 4 and get Busy over it; lease_v2 fixtures byte-identical.

🤖 Generated with Claude Code

Cut eureka-body:cut_spec:cut-lease-usage-readout.r1 (reports h1, h2; Soul s1 then s2 holds, two Lows: the wide-flood residual, addressed by readers polling one-shot with jitter in cut-plan-readout-live; test imports formatted here). The lease socket answers a usage readout from the one QuotaCell: no lease, no caller check, no token read, never wakes the meter; readouts have their own pool of 4 and get Busy over it; lease_v2 fixtures byte-identical. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Readouts no longer take a lease's connection slot: the accept loop admits
max_connections + READOUT_CONNECTIONS, a lease holds one of max_connections
after it is read, a readout one of READOUT_CONNECTIONS, and a readout over its
limit is refused Busy rather than dropped. Socket tests hold the service lock
and a metered cell across readouts (no asking, no week wait, no lock), flood
the readout pool beside leases, and pin the refusal. The new public request
type is LeaseUsageReadoutRequest so it no longer shares a name with the kit's
EnvelopeKind::UsageReadoutRequest; wire bytes and fixtures are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 61cc59d9a0 into main 2026-11-06 22:55:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/ModelConnector!1
No description provided.