Skip to content

feat(OMN-10211): add ticket contract for substrate_gates scaffold - #493

Merged
jonahgabriel merged 2 commits into
mainfrom
jonah/omn-10211-contract
Apr 28, 2026
Merged

jonahgabriel merged 2 commits into
mainfrom
jonah/omn-10211-contract

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds contracts/OMN-10211.yaml — ticket contract for Task 1 of OMN-10210 (Substrate Adoption Phase 1)
  • OMN-10211 scaffolds the substrate_gates package in omnibase_core: BaseGateCheck, GateViolation, has_allow_annotation, main_for_gate
  • dod_evidence covers: package presence in PR diff, 18 unit tests, CI green status, and deploy-gate rationale (pre-commit CLI tool, not a runtime service)

Ticket

OMN-10211 (epic OMN-10210)

Related

omnibase_core PR: OmniNode-ai/omnibase_core#958

Summary by CodeRabbit

  • Documentation
    • Added contract specifications defining verification steps, test requirements, and acceptance criteria for the substrate_gates package including unit tests, type checking, code analysis, and CI validation.

Adds contract for Task 1 of OMN-10210 (Substrate Adoption Phase 1).
OMN-10211 scaffolds BaseGateCheck, GateViolation, has_allow_annotation,
and main_for_gate in omnibase_core — the shared AST-check infrastructure
for all 8 substrate enforcement gates.
@github-actions
github-actions Bot enabled auto-merge April 28, 2026 17:01
@coderabbitai

coderabbitai Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@jonahgabriel has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 4 minutes and 41 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d1726c23-bd36-46e6-a677-810fa4a582a2

📥 Commits

Reviewing files that changed from the base of the PR and between 5f83036 and fcef1ca.

📒 Files selected for processing (1)
  • contracts/OMN-10211.yaml
📝 Walkthrough

Walkthrough

A new contract YAML file (OMN-10211.yaml) is added that defines scaffolding deliverables and verification requirements for the substrate_gates package, including unit test commands, mypy type-checking, pre-commit validation, and manual Definition of Done checks.

Changes

Cohort / File(s) Summary
New Contract Definition
contracts/OMN-10211.yaml
Introduces contract specification with 18 unit test commands, mypy CLI entrypoint checks, pre-commit hook validation, CI status verification for a PR, and manual DOD entries confirming presence of package files, exported symbols (BaseGateCheck, GateViolation), and pre-commit static-analysis gates.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A contract springs forth from the warren deep,
With gates to check and promises to keep,
Eighteen tests shall hop and play,
While mypy types guard the way,
The substrate_gates shall surely reap! ✨

🚥 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 title clearly summarizes the main change: adding a contract YAML file for OMN-10211 that defines the substrate_gates package scaffolding deliverable and verification requirements.
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-10211-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 the current code and only fix it if needed.

Inline comments:
In `@contracts/OMN-10211.yaml`:
- Around line 34-38: The check currently only searches for BaseGateCheck but the
description promises both GateViolation and BaseGateCheck; update the contract
checks to verify both symbols by either changing the existing check_value to
look for both (e.g., use an OR regex matching GateViolation and BaseGateCheck)
or add a second check entry that greps for GateViolation so both GateViolation
and BaseGateCheck are validated.
🪄 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: 7db5e396-fbcc-489f-ae0d-390a689af5f4

📥 Commits

Reviewing files that changed from the base of the PR and between 8cb4689 and 5f83036.

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

Comment thread contracts/OMN-10211.yaml Outdated
@jonahgabriel
jonahgabriel disabled auto-merge April 28, 2026 17:18
@jonahgabriel
jonahgabriel added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 3405888 Apr 28, 2026
24 of 25 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-10211-contract branch April 28, 2026 17:37
@jonahgabriel
jonahgabriel restored the jonah/omn-10211-contract branch April 28, 2026 17:50
jonahgabriel added a commit that referenced this pull request Apr 28, 2026
…tes scaffold

Adds the 5 ModelDodReceipt files Receipt-Gate requires for OMN-10211's
contract (PR #493):
- dod-001/command.yaml: substrate_gates files in PR 958 diff (PASS)
- dod-002/command.yaml: BaseGateCheck + GateViolation exports (PASS)
- dod-003/command.yaml: 18 unit tests in PR 958 diff (PASS)
- dod-004/command.yaml: deploy-verified — Code Quality PASS, substrate_gates is a
  pre-commit CLI tool not a runtime service, no Docker deploy required (PASS)
- dod-005/command.yaml: PR 958 OPEN against main with acceptance criteria met (PASS)

Each receipt was generated by running its contract's check_value command
against omnibase_core PR #958 head (commit 12c1fa74). All commands exited 0
with confirming output captured in probe_stdout / actual_output.

Unblocks the verify / Receipt-Gate failure on omnibase_core PR #958. The PR's
deploy-gate also re-passed in run 25068494069 once OMN-10211's contract
landed (PR #493) — only Receipt-Gate was waiting on these receipt files.

Part of epic OMN-10210 — Substrate Adoption Phase 1.
andywu42 pushed a commit to andywu42/onex_change_control that referenced this pull request Jun 10, 2026
* feat(OMN-10420): contract + receipts for ticket-identity binding

Pairs with omnibase_core PR implementing I3 invariant: OCC evidence
must provably belong to the same ticket as the code PR.

Receipts verify:
  - dod-001: 9 identity-binding tests pass (5 required plan cases)
  - dod-002: 68 existing receipt_gate tests pass (no regressions)
  - dod-003: EVIDENCE_SOURCE/TICKET_PATTERN exported in __all__
  - dod-004: CLI accepts --evidence-ticket and --branch-name flags

* fix(OMN-10420): tighten OCC receipt evidence checks

* docs(OMN-10457): receipt evidence for YC demo epic PRs

Adds ModelTicketContract YAML + DoD receipts for three omnimarket PRs
failing the receipt gate: OMN-10461 (Projection Query API Server, OmniNode-ai#490),
OMN-10460 (Cost Event Publication Daemon, OmniNode-ai#491), and OMN-10465 (Build Loop
+ Merge Sweep as bus-driven nodes, OmniNode-ai#493).

* docs(OMN-10457): add OCC receipt gate evidence
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