Skip to content

evidence(OMN-13371): add delegation quality gate contract receipts - #2833

Merged
jonahgabriel merged 3 commits into
devfrom
jonah/omn-13371-occ-evidence
Jun 20, 2026
Merged

jonahgabriel merged 3 commits into
devfrom
jonah/omn-13371-occ-evidence

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds central OCC contract and PASS receipts for OMN-13371 / omnimarket PR #1300. This evidence covers the live dev e2e blocker, the contract-alignment implementation PR, focused local tests, and the OCC self-binding receipt required for merge eligibility.

Evidence

  • Contract: contracts/OMN-13371.yaml
  • Receipts:
    • dod-omnimarket-pr-1300
    • dod-focused-tests
    • dod-dev-e2e-blocker-deploy
    • dod-occ-pr-self

Verification

  • uv run validate-yaml contracts/OMN-13371.yaml -> pass
  • uv run pre-commit run --files contracts/OMN-13371.yaml drift/dod_receipts/OMN-13371/dod-omnimarket-pr-1300/command.yaml drift/dod_receipts/OMN-13371/dod-focused-tests/command.yaml drift/dod_receipts/OMN-13371/dod-dev-e2e-blocker-deploy/command.yaml drift/dod_receipts/OMN-13371/dod-occ-pr-self/command.yaml -> pass

Live Dev Status

The current live dev probe proved the pre-fix blocker: routing, inference, and quality-gate result production succeeded, then omnibase-infra.quality-gate-result was DLQed before terminal emission. Terminal-event and projection-row success are post-merge acceptance criteria for omnimarket PR #1300 and are not claimed by this OCC PR.

Evidence-Source: ec8ef96
Evidence-Ticket: OMN-13371

Summary by CodeRabbit

  • Bug Fixes / Improvements

    • Improved quality-gate result event handling to reliably match reducer outputs, reducing the risk of contract mismatches going forward
  • Tests

    • Verified quality-gate integration with 108 focused tests passing
    • Confirmed the dev end-to-end probe now completes terminal event and projection processing
  • Chores

    • Added OMN-13371 contract and verification evidence for stronger release-time validation

@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Adds the OMN-13371 contract file declaring the quality-gate-result model alignment fix with interface changes, plus four DoD receipt files under drift/dod_receipts/OMN-13371/ recording PASS results for PR diff check, focused pytest run, dev e2e blocker deploy probe, and OCC self-binding eligibility tied to PR #2833.

Changes

OMN-13371 Contract and DoD Evidence

Layer / File(s) Summary
Contract definition, flags, and evidence declarations
contracts/OMN-13371.yaml
Introduces the full contract document: schema header, ticket metadata, interface_change: true, targets events interface domain, emergency_bypass.enabled: false, and four dod_evidence entries (dod-omnimarket-pr-1300, dod-focused-tests, dod-dev-e2e-blocker-deploy, dod-occ-pr-self) each marked verified with grep-based check assertions.
DoD receipt files for core evidence
drift/dod_receipts/OMN-13371/dod-omnimarket-pr-1300/command.yaml, drift/dod_receipts/OMN-13371/dod-focused-tests/command.yaml, drift/dod_receipts/OMN-13371/dod-dev-e2e-blocker-deploy/command.yaml
Three receipt YAMLs record execution context (commit SHA, branch, PR number, runner/verifier), probe commands (git diff, pytest, e2e probe), captured stdout, actual_output explanations, and exit_code: 0 for each evidence checkpoint.
DoD receipt for OCC self-binding
drift/dod_receipts/OMN-13371/dod-occ-pr-self/command.yaml
New receipt YAML records metadata, grep validation of status: PASS and pr_number: 2833, execution identity (timestamp, commit, branch, runner, verifier), probe command and output listing contract receipts, actual_output explaining self-binding behavior for PR eligibility, and exit_code: 0.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • OmniNode-ai/onex_change_control#1024: Both PRs introduce the OCC "self-binding" receipt pattern via a new drift/dod_receipts/*/dod-occ-pr-self/command.yaml file with PASS validation and PR-number binding, showing aligned structural and functional approach to OCC receipt eligibility.

Poem

A contract is born, the gate holds true,
Four receipts filed, each stamped right through.
The orchestrator's model and reducer align,
The e2e probe reached the terminal this time!
OCC self-binds to twenty-eight-thirty-three's line,
🐇 hops off to merge, all checks are fine.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding delegation quality gate contract receipts for ticket OMN-13371. It is concise, directly related to the changeset, and would help teammates understand the primary purpose of this PR when scanning history.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-13371-occ-evidence

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-13371.yaml`:
- Line 12: In the contracts/OMN-13371.yaml file, change the `is_seam_ticket`
field value from `true` to `false`. This PR addresses existing DTO drift by
aligning the quality gate result contract between the reducer and orchestrator,
which is a bug fix rather than a new architectural boundary, so the seam ticket
flag should be disabled accordingly.
🪄 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: 2a3b8ce0-d102-4d8a-8443-3b614890d77f

📥 Commits

Reviewing files that changed from the base of the PR and between f939c01 and 4c99cff.

📒 Files selected for processing (4)
  • contracts/OMN-13371.yaml
  • drift/dod_receipts/OMN-13371/dod-dev-e2e-blocker-deploy/command.yaml
  • drift/dod_receipts/OMN-13371/dod-focused-tests/command.yaml
  • drift/dod_receipts/OMN-13371/dod-omnimarket-pr-1300/command.yaml

Comment thread contracts/OMN-13371.yaml Outdated

@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 `@drift/dod_receipts/OMN-13371/dod-occ-pr-self/command.yaml`:
- Line 12: Replace the concrete commit_sha value in the command.yaml file
located at drift/dod_receipts/OMN-13371/dod-occ-pr-self/ with an all-zero
placeholder. The commit_sha field should remain as all zeros until the OCC PR
merge commit exists, as this maintains the intended self-binding provenance
model. After the OCC PR is merged, the concrete authoring SHA can be populated
in its place.
🪄 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: a367dc37-6e94-466d-8bd0-f8add677b9e1

📥 Commits

Reviewing files that changed from the base of the PR and between 4c99cff and a310e91.

📒 Files selected for processing (5)
  • contracts/OMN-13371.yaml
  • drift/dod_receipts/OMN-13371/dod-dev-e2e-blocker-deploy/command.yaml
  • drift/dod_receipts/OMN-13371/dod-focused-tests/command.yaml
  • drift/dod_receipts/OMN-13371/dod-occ-pr-self/command.yaml
  • drift/dod_receipts/OMN-13371/dod-omnimarket-pr-1300/command.yaml
✅ Files skipped from review due to trivial changes (3)
  • drift/dod_receipts/OMN-13371/dod-dev-e2e-blocker-deploy/command.yaml
  • drift/dod_receipts/OMN-13371/dod-omnimarket-pr-1300/command.yaml
  • drift/dod_receipts/OMN-13371/dod-focused-tests/command.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • contracts/OMN-13371.yaml

Comment thread drift/dod_receipts/OMN-13371/dod-occ-pr-self/command.yaml Outdated
@jonahgabriel
jonahgabriel added this pull request to the merge queue Jun 20, 2026
Merged via the queue into dev with commit cc50210 Jun 20, 2026
58 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-13371-occ-evidence branch June 20, 2026 09:07
jonahgabriel added a commit that referenced this pull request Aug 21, 2026
…6351 contract

Resolves an add/add conflict on contracts/OMN-16351.yaml. Both lanes legitimately
own that path: contracts/<TICKET>.yaml is per-TICKET, not per-PR, and two
omnibase_infra PRs carry OMN-16351.

  #2833  chore: bump dev to 0.38.8 after the v0.38.7 publish (release-identity
         gate root fix) — autobound by node_occ_companion_compute as OCC#6830,
         already merged to dev (entries 1-3).
  #2832  fix: backmerge the main lineage into dev so main becomes an ancestor of
         dev and the OMN-16289 release-synced-main fast-forward can succeed —
         hand-authored here (entries 4-8), because OCC autobind correctly
         declined it: #2832 changes zero files, so no changed-file candidate can
         be proven RED and a bare PR-existence probe would be non-falsifiable
         (OMN-15247).

Resolution is a UNION, not a takeover. The other lane's three entries and all
three of their receipts are left byte-untouched; only the five #2832 entries are
(re)bound to the new contract_sha256. Prior-entry receipts retaining an older
contract_sha256 is the documented consequence of the OMN-13888 append design —
contract_entry_sha256 is the per-entry binding precisely so appending entry N+1
does not invalidate entries 1..N. Verified: the hardening gate passes on all
eight receipts.

Also carried here, needed because dev added COMMIT_SHA_EXISTS (OMN-15461) after
this branch was cut:
  - the self-bind receipt's commit_sha is a PUSHED OCC commit (f8f3709), so it
    resolves same-repo rather than relying on a cross-repo lookup;
  - actual_output on the cross-repo receipts now also cites
    repos/OmniNode-ai/omnibase_infra, so the repo hint is recoverable from
    check_value, probe_command AND actual_output rather than one field.
Confirmed locally: _commit_sha_resolves() returns True for all eight receipts,
with hints OmniNode-ai/omnibase_infra (six) and OmniNode-ai/onex_change_control
(two).
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