Repository navigation
R4H: OpenRouter free daily counter sensor — over-limit safe, never a lease - #1463
Draft
mark-e-deyoung wants to merge 3 commits into
Draft
mark-e-deyoung wants to merge 3 commits into
mark-e-deyoung wants to merge 3 commits into
Conversation
…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.
…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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft / additive Go source-only donor / no provider calls. Stacked on existing AD #20 Go free quota source PR #1357 exact base
2e48961cf01b0c4a939410a57d0a66fd564312bd. Exact HEAD43489129da3051ee8eae6e27fd6478c3be33df15. 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 caseused=1004 limit=1000 remaining=0and rejects contradictory positive remaining.Only additive
rdte/freequota/openrouter_daily_linux.go, its test and one public CI workflow. Strict parser ofGET /api/v1/keyfree-model dailyused,limit,remainingwith 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.