Skip to content

feat(OMN-10723): add ticket contract for inprocess fallback removal - #852

Merged
jonahgabriel merged 3 commits into
mainfrom
jonah/omn-10723-contract
May 9, 2026
Merged

jonahgabriel merged 3 commits into
mainfrom
jonah/omn-10723-contract

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented May 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Related

Summary by CodeRabbit

  • Bug Fixes

    • Delegation now returns explicit errors instead of silently falling back to local in-process execution when local delegation is enforced.
  • Chores

    • Added a formal contract and accompanying evidence record to document and enforce the new delegation behavior and required verification checks.

Review Change Stack

Contract covers omniclaude PR #1544: removes silent inprocess delegation
fallback, adds no-inprocess-fallback-in-skills pre-commit gate.
@coderabbitai

coderabbitai Bot commented May 9, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 346dd7ee-a932-4567-9926-d399d5b21b0f

📥 Commits

Reviewing files that changed from the base of the PR and between f941b0a and fa265fe.

📒 Files selected for processing (2)
  • contracts/OMN-10723.yaml
  • drift/dod_receipts/OMN-10723/dod-001/command.yaml
✅ Files skipped from review due to trivial changes (2)
  • drift/dod_receipts/OMN-10723/dod-001/command.yaml
  • contracts/OMN-10723.yaml

📝 Walkthrough

Walkthrough

This PR adds OMN-10723: a ticket contract YAML removing silent in-process fallback for delegation (force_local=True must error) and a DOD evidence command YAML recording the CI/PR probe outputs that verify the contract.

Changes

Contract Documentation

Layer / File(s) Summary
Ticket Contract Definition
contracts/OMN-10723.yaml
Defines OMN-10723 contract metadata, requires explicit error when force_local=True, lists required pytest evidence and a CI verification command, disables emergency_bypass, and includes DOD receipt grep assertions.
DOD Evidence Record
drift/dod_receipts/OMN-10723/dod-001/command.yaml
Adds a check_type: command evidence record capturing PR probe inputs (gh pr view / gh pr checks), expected regex, exit_code, contract_sha256, pr_number, probe_stdout, and recorded actual_output strings showing PASS.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I hopped a careful, tiny hop,
A contract placed to stop the drop,
When local calls demand a ban,
Errors stand tall across the land,
CI nods, the rabbits clap—hip-hop!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly and specifically describes the main change: adding a ticket contract for the inprocess fallback removal (OMN-10723).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-10723-contract

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@contracts/OMN-10723.yaml`:
- Around line 24-31: Update the dod_evidence to include an additional DoD entry
(e.g., add id "dod-002") that explicitly verifies the pre-commit hook
no-inprocess-fallback-in-skills is defined and registered: add checks that (1)
the PR files or repository contain the hook implementation (search for a hooks
file name or the symbol no-inprocess-fallback-in-skills), (2) the
.pre-commit-config.yaml in the omniclaude repo lists/refs that hook, and (3) the
hook would block the fallback pattern (scope-proof by asserting the PR diff or
files include the hook definition/registration); implement these checks using gh
pr view (files or repo file content) and grep-style assertions similar to the
existing dod_evidence check for id "dod-001".
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 197df76f-cd7b-4ce0-9dde-c947f12c16cb

📥 Commits

Reviewing files that changed from the base of the PR and between 50b3a05 and f941b0a.

📒 Files selected for processing (1)
  • contracts/OMN-10723.yaml

Comment thread contracts/OMN-10723.yaml Outdated
@jonahgabriel
jonahgabriel enabled auto-merge (squash) May 9, 2026 12:36
Receipt proves omniclaude PR #1544 CI all-green with inprocess fallback
removed and tests updated to verify new explicit error behavior.
…/hash

- Change dod-001 check_value to grep the receipt file directly (avoids
  gh CLI external call that fails in CI without auth)
- Set verifier=jonahgabriel (distinct from runner to avoid ADVISORY downgrade)
- Set pr_number=852 (OCC PR) and contract_sha256 to match updated contract
@jonahgabriel
jonahgabriel merged commit 5dd27e0 into main May 9, 2026
31 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-10723-contract branch May 9, 2026 12:58
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