Conversation
… with a judge-shaped body gate
…rants into a separate inference ledger
…lity, policy and meter untouched
…d grant request fails fast instead of retrying
…t generation as v2
… shape and shared stale-realm fate
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.
Summary
request_inference_grant/release_inference_grant(uid 2000 only via the native relay's SO_PEERCRED): short-lived, model/effort-scoped proxy grants so Paideia judges and the optimizer share the broker's credential authority without holding the refresh token.inference_bearers, own map and meter): exact model/effort, no tools/tool_choice, canonical forwarding, one request in flight, TTL ≤ 10 min with in-flight abort, 64 requests / 2M tokens per grant, at most 8 live grants.inferenceLedgerPath(service.json v2), rowskind: "inference"deduped by grant+request; the wake fuse ignores them. Stale realm surfaces asauth_stalefor grants.renderGrokInferenceClientConfig(sha-pinned per model×effort): lean judge client config withmax_retries = 0(default retries hung refused judges >45 s).generationand callernonce; the verifier requires{expectedNonce, minGeneration}and refuses v1.Stacked on #26.
Verification
npm test: 778 pass / 0 fail (one unrelated load flake on the first run). Typecheck, build,verify:contract-manifest,verify:production-closurepass.🤖 Generated with Claude Code