Skip to content

Bind approvals and budgets to authorization context - #4

Merged
FranklinNexus merged 1 commit into
mainfrom
codex/keyveil-v0.3-context-hardening
Jul 11, 2026
Merged

Bind approvals and budgets to authorization context#4
FranklinNexus merged 1 commit into
mainfrom
codex/keyveil-v0.3-context-hardening

Conversation

@FranklinNexus

Copy link
Copy Markdown
Contributor

What changed

  • bind approval grants to a versioned canonical intent, session, policy version, and budget scope
  • enforce budget-scope idempotency and cross-session replay blocking
  • return fail-closed receipts for unavailable approval and budget dependencies
  • publish v0.3.0 receipt and intent contracts in the API and workbench
  • update FastAPI and setup-python dependency bounds

Why

Intent ids alone did not prevent payload or authorization-context substitution. The public reference now makes authority, budget ownership, and receipt fields explicit and testable.

Verification

  • 57 tests with warnings treated as errors
  • Ruff, compileall, and pip check
  • clean Python 3.12 container
  • Docker build and nine-scenario HTTP smoke test
  • desktop and 390px responsive browser review with no console errors or horizontal overflow

@FranklinNexus
FranklinNexus merged commit 7fa7ca7 into main Jul 11, 2026
4 checks passed
@FranklinNexus
FranklinNexus deleted the codex/keyveil-v0.3-context-hardening branch July 11, 2026 04:01
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