Skip to content

R4H: OpenRouter free daily counter sensor — over-limit safe, never a lease - #1463

Draft
mark-e-deyoung wants to merge 3 commits into
rdte/free-quota-inflight-revocation-20261203from
rdte/r4e-openrouter-free-sensor-20261206
Draft

mark-e-deyoung wants to merge 3 commits into
rdte/free-quota-inflight-revocation-20261203from
rdte/r4e-openrouter-free-sensor-20261206

Conversation

@mark-e-deyoung

@mark-e-deyoung mark-e-deyoung commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Draft / additive Go source-only donor / no provider calls. Stacked on existing AD #20 Go free quota source PR #1357 exact base 2e48961cf01b0c4a939410a57d0a66fd564312bd. Exact HEAD 43489129da3051ee8eae6e27fd6478c3be33df15. Public native Go1.26.11 linux-amd64 race/vet run #47652716726 PASS with six new OpenRouter tests plus all existing pacing/atomic reservation regressions; public source hygiene #47652716754 PASS. Original first red CI caught a missing is_provisioning_key claim; fixed to require explicit false (like is_management_key). This iteration adds an official-docs-derived valid exhausted overrun case used=1004 limit=1000 remaining=0 and rejects contradictory positive remaining.

Only additive rdte/freequota/openrouter_daily_linux.go, its test and one public CI workflow. Strict parser of GET /api/v1/key free-model daily used,limit,remaining with UTC-day/observation-clock bounds, exact nonnegative integers, no raw response/account/key/budget fields emitted. The output is UNTRUSTED_SENSOR_ONLY: AuthenticatedProviderSource=false, SharedLedgerKnown=false, ReservationState=NOT_RESERVED, MayAuthorizeInference=false. Existing AD quota.Evaluate rejects untrusted readings; synthetic 50/day slice limits and overflow controls are tests, NOT current account entitlement or permission. No credentials, protected workflow, account query, physical wire permit, shared lease, model inference, funded credits or source merge. Protected R4 preflight is independently owned in private AD PR950 and remains unmerged.

…D quota sensor

Strict schema/UTC/secret boundaries. Never authenticate raw provider JSON or
turn quota signal into a shared lease. Test via existing Go quota feasibility
and atomic reservation witnesses with synthetic trusted controls.
…OpenRouter sensor

Preserve first red CI negative: absent is_provisioning_key must HOLD.
@mark-e-deyoung mark-e-deyoung changed the title R4E: OpenRouter free quota sensor without admission authority (AD #20 donor) R4E: untrusted OpenRouter daily free quota sensor (no admission grant) Dec 6, 2026
…rence grant

Observed daily used may exceed ceiling while remaining stays zero. Accept
and record as exhausted, reject contradictions. Preserve untrusted sensor
and AD #20 atomic lease/physical-request launch holds.
@mark-e-deyoung mark-e-deyoung changed the title R4E: untrusted OpenRouter daily free quota sensor (no admission grant) R4H: OpenRouter free daily counter sensor — over-limit safe, never a lease Dec 6, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant