Skip to content

contracts(OMN-11591): add OCC evidence for generate_reverse_patch implementation - #1629

Merged
jonahgabriel merged 4 commits into
devfrom
jonah/omn-11591-occ-evidence
May 25, 2026
Merged

jonahgabriel merged 4 commits into
devfrom
jonah/omn-11591-occ-evidence

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds contracts/OMN-11591.yaml contract for the generate_reverse_patch decision gate ticket
  • Adds drift/dod_receipts/OMN-11591/ with receipts for: PR existence, local validation, deploy assessment, and this OCC PR
  • Required to satisfy the verify / verify receipt gate on omnibase_core PR evidence(OMN-7465): add remote delegation receipts #1154

Linked PR

omnibase_core PR #1154: feat(OMN-11591): implement generate_reverse_patch decision gate

Evidence

Evidence-Source: OCC#1626

Summary by CodeRabbit

  • Chores
    • Added ticket metadata configuration defining schema and verification references for internal tracking
    • Added deployment assessment evidence record confirming no live deployment required and pure library function usage
    • Added local validation evidence documenting type checking and unit test execution results
    • Added reference verification evidence for related pull request documentation

Review Change Stack

…lementation

Adds contract YAML and dod_receipts for OMN-11591. omnibase_core PR #1154
implements the previously-stubbed generate_reverse_patch method in
ContractDiffComputer. Required to satisfy the receipt gate on PR #1154.
@coderabbitai

coderabbitai Bot commented May 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@jonahgabriel, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 43 minutes and 16 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9f9d676f-8025-45c7-9174-82a84f1eaf18

📥 Commits

Reviewing files that changed from the base of the PR and between a8a504f and 75adb4b.

📒 Files selected for processing (6)
  • contracts/OMN-11591.yaml
  • drift/dod_receipts/OMN-11591/dod-deploy-assessment/command.yaml
  • drift/dod_receipts/OMN-11591/dod-local-validation/command.yaml
  • drift/dod_receipts/OMN-11591/dod-occ-pr/command.yaml
  • drift/dod_receipts/OMN-11591/dod-omnibase-core-pr-1154/command.yaml
  • src/onex_change_control/boundaries/migration_inventory.yaml
📝 Walkthrough

Walkthrough

This PR adds definition-of-done (DoD) evidence collection for ticket OMN-11591. A contract file defines the ticket metadata and four required DoD checks, while three evidence receipt files record that deployment assessment, local validation (mypy + pytest), and upstream PR verification have all passed.

Changes

OMN-11591 DoD Evidence Collection

Layer / File(s) Summary
Ticket Contract Definition
contracts/OMN-11591.yaml
Contract establishes OMN-11591 metadata and declares four dod_evidence requirements: omnibase_core PR #1154 verification, local validation, deploy assessment, and OCC PR evidence, all marked verified.
DoD Evidence Receipts
drift/dod_receipts/OMN-11591/dod-deploy-assessment/command.yaml, drift/dod_receipts/OMN-11591/dod-local-validation/command.yaml, drift/dod_receipts/OMN-11591/dod-omnibase-core-pr-1154/command.yaml
Three receipt files record execution results: deploy assessment confirms no live deploy required and pure library function, local validation captures mypy strict and pytest output, and PR verification captures GitHub CLI query of upstream PR metadata.

🎯 1 (Trivial) | ⏱️ ~3 minutes

🐰 A ticket bundled neat,
With evidence so sweet—
Receipts of checks that passed,
Definitions overcast,
DoD complete! 🎉

🚥 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 PR title clearly and specifically summarizes the main objective: adding OCC evidence documentation for the generate_reverse_patch implementation ticket (OMN-11591).
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-11591-occ-evidence

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

Adds dod-occ-pr receipt referencing PR #1629 (this PR) to complete
the evidence chain for OMN-11591.

@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: 2

🤖 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-11591.yaml`:
- Around line 25-26: The contract's check_value requests headRefOid but the
recorded receipt is missing it; either remove headRefOid from the contract's
check_value to match the recorded output, or update the receipt so the
probe_command and probe_stdout include headRefOid (re-run the command to capture
the actual JSON output) ensuring the contract's check_value, the receipt's
probe_command, and probe_stdout all contain the same JSON fields.

In `@drift/dod_receipts/OMN-11591/dod-local-validation/command.yaml`:
- Around line 19-20: The contract grep is looking for the literal substring '830
passed' but the receipt's actual_output value contains "830/830 contracts suite
passing" (and "10 passed" earlier), so the pattern never matches; either update
the actual_output entry named actual_output to include the exact phrase the
contract expects (e.g., change the string to include "830 passed") or (better)
update the contract's grep pattern that currently searches for '830 passed' in
OMN-11591.yaml to match the real output (for example match "830/830" or "830/830
contracts suite passing"); modify whichever is appropriate so the grep and the
actual_output string align.
🪄 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: 19b9aa16-b105-4438-8c9b-21f82d9f0675

📥 Commits

Reviewing files that changed from the base of the PR and between 526b62e and a8a504f.

📒 Files selected for processing (4)
  • contracts/OMN-11591.yaml
  • drift/dod_receipts/OMN-11591/dod-deploy-assessment/command.yaml
  • drift/dod_receipts/OMN-11591/dod-local-validation/command.yaml
  • drift/dod_receipts/OMN-11591/dod-omnibase-core-pr-1154/command.yaml

Comment thread contracts/OMN-11591.yaml Outdated
Comment thread drift/dod_receipts/OMN-11591/dod-local-validation/command.yaml
All four receipt files were missing the required contract_sha256 field.
Hash value: sha256:aed523e3b25f851e2313d33cf87eae8a7793d2aba63e401be3f93b4897d45831
@jonahgabriel
jonahgabriel merged commit e36c06b into dev May 25, 2026
24 of 26 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-11591-occ-evidence branch May 25, 2026 20:02
andywu42 pushed a commit to andywu42/onex_change_control that referenced this pull request Jun 10, 2026
…ts for 10 omnibase_infra PRs (OmniNode-ai#1121)

* evidence(OMN-11188): batch OCC contracts + receipts for 10 omnibase_infra PRs

Unblocks receipt-gate for omnibase_infra closeout batch. Each contract binds
to its consumer PR via a dod-infra-pr-<num> receipt with the live head SHA
(captured 2026-05-18) verified via gh pr view.

Tickets (all part of OMN-11188 platform hardening epic except 11066/11072):
- OMN-11066 -> infra OmniNode-ai#1629 (pattern-b-dispatch topic plugin_managed)
- OMN-11072 -> infra OmniNode-ai#1628 (omnibase_compat pin guard test)
- OMN-11196 -> infra OmniNode-ai#1638 (runtime manifest emission)
- OMN-11197 -> infra OmniNode-ai#1641 (runtime_manifests projection)
- OMN-11198 -> infra OmniNode-ai#1640 (/v1/introspection/manifest endpoint)
- OMN-11199 -> infra OmniNode-ai#1637 (projection contract declarations)
- OMN-11200 -> infra OmniNode-ai#1642 (projection freshness SLA monitor)
- OMN-11201 -> infra OmniNode-ai#1639 (data_provenance migration)
- OMN-11207 -> infra OmniNode-ai#1645 (evidence bundle writer)
- OMN-11208 -> infra OmniNode-ai#1643 (seed provenance enforcement, advisory)

OMN-7601, OMN-11069, OMN-11142, OMN-11185 are excluded: their OCC contracts
already exist on main; they only need Evidence-Source PR body updates
(handled separately on each infra PR).

* chore: retrigger CI with updated PR body (drop epic mention)

* chore: retrigger CI with updated PR title (drop OMN-11188 epic from title)

* evidence(OMN-7601): replace placeholder contract with PR-bound contract+receipt

Existing OMN-7601 contract on main used placeholder dod-001..dod-004 evidence
with no on-disk receipts (validator returns missing_receipt). Replace with a
single concrete dod-infra-pr-1632 evidence item plus a real PASS receipt
bound to omnibase_infra PR OmniNode-ai#1632 head SHA b1770ada (verified live).

Unblocks omnibase_infra PR OmniNode-ai#1632 receipt-gate alongside the other 10 contracts
in this batch.

* evidence(OMN-11196,OMN-11197,OMN-11198): add dod-occ-pr-1121 self-binding receipts

PR 1121's verify failed with pr_ticket_mismatch — receipts only bound to
downstream infra PRs (1638/1641/1640). Receipt-gate requires at least one
PASS receipt bound to the OCC PR's own number per [[reference_occ_receipt_binding]].

Adds self-binding receipts for the 3 tickets cited in this OCC PR's title.
andywu42 pushed a commit to andywu42/onex_change_control that referenced this pull request Jun 10, 2026
…#1311)

* docs(OMN-7980): bind omniclaude PR 1629 receipt evidence

Adds drift/dod_receipts/OMN-7980/dod-omniclaude-pr-1629/command.yaml with
a PASS receipt binding to omniclaude PR OmniNode-ai#1629
(feat(OMN-7980): wire OpenRouter delegation backend,
head SHA: a55a8f91708ec205deb780d8ff6f905b0a75ab74).

Updates contracts/OMN-7980.yaml to add the dod-omniclaude-pr-1629 evidence
item so the receipt gate can resolve the binding.

[skip-receipt-gate: occ-self-evidence]

* docs(OMN-7980): add self-binding OCC PR 1311 receipt for receipt gate

Adds drift/dod_receipts/OMN-7980/dod-occ-pr-1311/command.yaml and updates
contracts/OMN-7980.yaml so OCC PR OmniNode-ai#1311's own receipt gate can verify that
a PASS receipt exists binding to this PR.

Also fixes yamlfmt formatting on contracts/OMN-7980.yaml from the first commit.

* docs(OMN-7980): add contract_sha256 to all receipts per OMN-10421

All four OMN-7980 receipts (dod-wave-local-evidence, dod-occ-pr-1204,
dod-omniclaude-pr-1629, dod-occ-pr-1311) were produced after 2026-04-30
and require the contract_sha256 field per OMN-10421.

contract_sha256: sha256:0dd4dbe9b0adf6e2141183334d22617151b71c43df4cefeebc44e6c7e415de01
jonahgabriel added a commit that referenced this pull request Jul 7, 2026
…3642)

* evidence(OMN-14001): add learning loop receipts

* evidence(OMN-14001): bind OCC self receipt

* evidence(OMN-14001): add deploy scope receipt

* evidence(OMN-14001): bind OCC self receipt to PR

* evidence(OMN-14001): mark deploy-scope check for gate

* evidence(OMN-14001): make deploy-scope receipt check CI-safe

* ci(OMN-14001): refresh stale imperative guard

* evidence(OMN-14001): resolve receipt review findings

* fix(OMN-14001): format OCC self receipt
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