Skip to content

fix(workflows): enforce immutable model routes - #512

Merged
andrei-hasna merged 30 commits into
mainfrom
fix/OPE2-00252-model-routing-enforcement
Aug 9, 2026
Merged

fix(workflows): enforce immutable model routes#512
andrei-hasna merged 30 commits into
mainfrom
fix/OPE2-00252-model-routing-enforcement

Conversation

@andrei-hasna

@andrei-hasna andrei-hasna commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Implements OPE2-00252 (Todos 0f00363b-fdfc-4870-ab74-bfabd819e3dc).

  • persists requested and effective route receipts through workflow admission, recovery, descendants, workers, and verifiers
  • revalidates exact gateway, provider, model, reasoning, tier, profile, worktree, context, and fallback constraints before external effects and provider attempts
  • rejects finite budget_usd before launch because the current production provider path has no provider-backed credit reservation/accounting controller
  • adds two-sided zero-provider-effect, restart/descendant, receipt, and accounting tests

Remote Rust, Bazel, generated-artifact, and exact-head checks are running. This PR remains draft and has no review request.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@andrei-hasna
andrei-hasna force-pushed the fix/OPE2-00252-model-routing-enforcement branch 2 times, most recently from 9fecf71 to 5cbca1f Compare August 9, 2026 00:39
Add two-sided failing-before coverage for exact route admission, fallback,
context, descendant parity, and provider credit ceilings.

Agent: Nausicaa
Persist the active permission-profile identity beside the compiled policy and restore both atomically for workflow workers and descendants.

Agent: Nausicaa
Apply the exact line wrapping reported by the remote formatting gate.

Agent: Nausicaa
@andrei-hasna
andrei-hasna force-pushed the fix/OPE2-00252-model-routing-enforcement branch 5 times, most recently from 0b740b5 to 2d242e0 Compare August 9, 2026 03:28
@andrei-hasna
andrei-hasna force-pushed the fix/OPE2-00252-model-routing-enforcement branch from 2d242e0 to 744b9a5 Compare August 9, 2026 04:12
@andrei-hasna
andrei-hasna marked this pull request as ready for review August 9, 2026 05:04
@andrei-hasna
andrei-hasna merged commit 23a11de into main Aug 9, 2026
35 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant