Skip to content

Route manual reflection through inference admission#317

Merged
oratis merged 1 commit into
mainfrom
codex/reflect-inference-admission
Jul 26, 2026
Merged

Route manual reflection through inference admission#317
oratis merged 1 commit into
mainfrom
codex/reflect-inference-admission

Conversation

@oratis

@oratis oratis commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • make inference permits own a single idempotent usage settlement
  • migrate account chat and gateway traffic to permit-owned settlement
  • route manual /reflect through account admission, quota, lease, metering, and debit
  • aggregate retry, cache, and desire-consolidation usage in reflection results
  • preserve local/BYO-key and operator-funded shared-token behavior

Failure semantics

  • billing/account-store admission or settlement failures fail closed with 503 billing_state_unavailable
  • the permit always releases its renewable tenant turn lease
  • a repeated settlement call within one request cannot double debit

Validation

  • npm run typecheck
  • npm test — 1444 passed, 1 skipped, 0 failed
  • npm run build

@oratis
oratis marked this pull request as ready for review July 26, 2026 06:58
@oratis
oratis merged commit dc9dfab into main Jul 26, 2026
1 check passed
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