Skip to content

evidence(OMN-14616): bind omnimarket 1769 head b56971 - #4193

Merged
jonahgabriel merged 3 commits into
devfrom
jonah/omn-14616-occ-1769-head-b56971
Jul 15, 2026
Merged

jonahgabriel merged 3 commits into
devfrom
jonah/omn-14616-occ-1769-head-b56971

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

OMN-14616 refreshed OCC evidence for OmniNode-ai/omnimarket#1769 after the product head moved to b5697123b95cd776367bc61343b41e5f0c8fc6ee.

Validation:

  • uv run validate-yaml contracts/OMN-14616.yaml
  • uv run python scripts/validation/check_receipt_hardening.py drift/dod_receipts/OMN-14616
  • uv run python scripts/lint_contract_check_values.py contracts/OMN-14616.yaml
  • PYTHONPATH=/Users/jonah/Code/omni_home/omnibase_core/src uv run python -m omnibase_core.validation.validator_occ_append_only --repo . --ticket-id OMN-14616 --base-ref origin/dev
  • uv run python scripts/ci/run_contract_compliance_check.py --pr 1769 --repo OmniNode-ai/omnimarket --contracts-dir contracts --workspace /Users/jonah/Code/omni_home/omni_worktrees/OMN-14616/omnimarket
  • uv run pre-commit run --files contracts/OMN-14616.yaml drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml drift/dod_receipts/OMN-14616/dod-pr-1769-state-coverage-b56971/command.yaml drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-local-verification-b56971/command.yaml drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-deploy-scope-b56971/command.yaml drift/dod_receipts/OMN-14616/dod-occ-self-bind-pr-4193/command.yaml

Evidence-Source: OCC#4193
Evidence-Ticket: OMN-14616
Evidence-Commit: bea41b2
Evidence-Head: b5697123b95cd776367bc61343b41e5f0c8fc6ee

@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR refreshes OMN-14616 evidence for omnimarket PR #1769 at head b5697123, adding four PASS command receipts and corresponding contract entries for product-head, state-coverage, local-verification, and deploy-scope checks.

Changes

OMN-14616 evidence refresh

Layer / File(s) Summary
Contract evidence entries
contracts/OMN-14616.yaml
Adds refreshed product-head, state-coverage, local-verification, and deploy-scope dod_evidence records, including adequacy receipt artifacts and supersession of earlier head-specific evidence.
Verification command receipts
drift/dod_receipts/OMN-14616/*-b56971*/command.yaml
Adds four PASS command records with contract hashes, execution metadata, probe output, commit context, and exit code 0.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly reflects the PR’s main change: refreshing OMN-14616 evidence to bind omnimarket PR 1769 to the new head commit.
✨ 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-14616-occ-1769-head-b56971

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

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

🤖 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-14616.yaml`:
- Around line 264-271: Replace the blacklist-based deploy-scope check in the PR
validation command with an exact allowlist comparison of the complete gh pr diff
--name-only output. Require the changed files to be precisely the four expected
paths—contract.yaml, both broker handler files, and the adequacy receipt—while
preserving the existing head commit validation.
- Around line 208-218: Extend the refreshed head verification command after the
existing test_real_engine_dispatch_binds_missing_handle_pre_fix check to also
require the two post-fix regression test symbols previously covered by the
receipt. Preserve the existing file and implementation checks, and use the exact
test names from the earlier evidence so renamed or removed post-fix tests cause
the receipt to fail.
- Around line 228-234: Replace the hard-coded PRODUCT_WORKTREE path in the
check_value command with the verifier-provided temporary checkout or current
working directory, and update the related git -C and cd commands to use that
portable location. Preserve the existing PR head validation and
validate_state_coverage.py invocation.

In
`@drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml`:
- Around line 1-6: Update the check_value field in all four receipt files to
reference the receipt file itself instead of the contract:
drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml,
drift/dod_receipts/OMN-14616/dod-pr-1769-state-coverage-b56971/command.yaml,
drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-local-verification-b56971/command.yaml,
and
drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-deploy-scope-b56971/command.yaml.
Preserve the existing schema_version, ticket_id, and evidence_item_id values.
🪄 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: 178ed29f-d59b-419e-a14b-456d1147a2f5

📥 Commits

Reviewing files that changed from the base of the PR and between 75fe16c and 054e34c.

📒 Files selected for processing (5)
  • contracts/OMN-14616.yaml
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-deploy-scope-b56971/command.yaml
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-local-verification-b56971/command.yaml
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml
  • drift/dod_receipts/OMN-14616/dod-pr-1769-state-coverage-b56971/command.yaml

Comment thread contracts/OMN-14616.yaml
Comment thread contracts/OMN-14616.yaml Outdated
Comment on lines +228 to +234
check_value: >-
PRODUCT_PR_NUMBER=1769; PRODUCT_REPO=OmniNode-ai/omnimarket; PRODUCT_HEAD=b5697123b95cd776367bc61343b41e5f0c8fc6ee;
PRODUCT_WORKTREE=/Users/jonah/Code/omni_home/omni_worktrees/OMN-14616/omnimarket; gh pr view
"$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --json headRefOid --jq '.headRefOid == "'$PRODUCT_HEAD'"'
| grep -qx true && git -C "$PRODUCT_WORKTREE" rev-parse HEAD | grep -Fx "$PRODUCT_HEAD" && cd
"$PRODUCT_WORKTREE" && uv run python scripts/validate_state_coverage.py --check-changed origin/dev
--strict

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show the relevant section with line numbers
sed -n '210,245p' contracts/OMN-14616.yaml | cat -n

# Look for similar validation commands in nearby contract files
rg -n "validate_state_coverage\.py|origin/dev|PRODUCT_WORKTREE|gh pr view" contracts drift -g '*.yaml' -g '*.yml' || true

Repository: OmniNode-ai/onex_change_control

Length of output: 50388


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the file size and schema-related context if present
wc -l contracts/OMN-14616.yaml
rg -n "check_value:|validate_state_coverage|PRODUCT_HEAD|PRODUCT_REPO|PRODUCT_WORKTREE|origin/dev" contracts/OMN-14616.yaml

# If there are schema docs or model names referenced in repo, find them
rg -n "ModelTicketContract|ModelDayClose|contracts/.*yaml|validate_state_coverage" -g '*.py' -g '*.md' -g '*.yaml' .

Repository: OmniNode-ai/onex_change_control

Length of output: 50388


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== relevant lines ==="
sed -n '220,236p' contracts/OMN-14616.yaml

echo "=== similar commands elsewhere ==="
rg -n "PRODUCT_WORKTREE=.*origin/dev|validate_state_coverage\.py --check-changed origin/dev" contracts drift -g '*.yaml' -g '*.yml' || true

Repository: OmniNode-ai/onex_change_control

Length of output: 8667


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the exact range around the cited lines with numbering
sed -n '226,252p' contracts/OMN-14616.yaml | cat -n

# Show every occurrence of the worktree/baseline command in this file
rg -n "PRODUCT_WORKTREE|validate_state_coverage\.py|origin/dev|gh pr view|PRODUCT_HEAD" contracts/OMN-14616.yaml

Repository: OmniNode-ai/onex_change_control

Length of output: 7477


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find how evidence_artifact / verified command blocks are described in the repo
rg -n "evidence_artifact|Current-head state-coverage proof|source: \"manual\"|status: \"verified\"|check_value: >-" contracts drift docs -g '*.yaml' -g '*.md' | head -n 200

# Inspect nearby schema/documentation mentions for contract/evidence semantics
rg -n "contract.*schema|evidence.*artifact|verified evidence|manual reproduction|probe_command|check_value" docs contracts drift -g '*.md' -g '*.yaml' | head -n 200

Repository: OmniNode-ai/onex_change_control

Length of output: 31182


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate the contract schema/model definitions
fd -a ".*(schema|model).*\.py$|.*contract.*\.py$" . | head -n 80

# Search for the fields used in these YAMLs in Python schema files
rg -n "evidence_artifact|probe_command|check_value|status: verified|source: manual" -g '*.py' .

Repository: OmniNode-ai/onex_change_control

Length of output: 27633


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the exact top-level structure around the evidence block
sed -n '232,252p' contracts/OMN-14616.yaml | cat -n

# Find references to temporary/verifier checkout wording in similar receipts
rg -n "temporary checkout|verifier-provided|local reproduction|records the local reproduction|origin/dev" drift/dod_receipts contracts -g '*.yaml' | head -n 200

Repository: OmniNode-ai/onex_change_control

Length of output: 33907


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the contract check runner around evidence handling
sed -n '1,220p' src/onex_change_control/scripts/contract_compliance_check.py | cat -n
echo '---'
sed -n '520,700p' src/onex_change_control/scripts/contract_compliance_check.py | cat -n

# Inspect the DoD check model fields and docstrings
sed -n '1,220p' src/onex_change_control/models/model_dod_check.py | cat -n

# Read the relevant docs section on executable checks
sed -n '170,210p' docs/TEMPLATE_GUIDE.md | cat -n

Repository: OmniNode-ai/onex_change_control

Length of output: 27121


Make this check use a portable checkout path. The hard-coded /Users/jonah/.../omnimarket path ties the contract to one workstation; switch to a temp/verifier-provided worktree (or cwd) so the check can run in any environment.

🤖 Prompt for 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.

In `@contracts/OMN-14616.yaml` around lines 228 - 234, Replace the hard-coded
PRODUCT_WORKTREE path in the check_value command with the verifier-provided
temporary checkout or current working directory, and update the related git -C
and cd commands to use that portable location. Preserve the existing PR head
validation and validate_state_coverage.py invocation.

Comment thread contracts/OMN-14616.yaml
Comment on lines +264 to +271
PRODUCT_PR_NUMBER=1769; PRODUCT_REPO=OmniNode-ai/omnimarket; PRODUCT_HEAD=b5697123b95cd776367bc61343b41e5f0c8fc6ee;
gh pr view "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --json headRefOid,files --jq '.headRefOid
== "'$PRODUCT_HEAD'"' | grep -qx true && gh pr diff "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO"
--name-only | grep -Fxq src/omnimarket/nodes/node_pattern_b_broker/contract.yaml && gh pr diff
"$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --name-only | grep -Fxq src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_publish.py
&& gh pr diff "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --name-only | grep -Fxq src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_terminal_consumer.py
&& gh pr diff "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --name-only | grep -Fxq scripts/ci/adequacy_receipts/omnimarket.nodes.node_pattern_b_broker.json
&& ! gh pr diff "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --name-only | grep -qE '(^|/)(Dockerfile|docker-compose[^/]*|compose[^/]*|deploy|migrations|systemd)(/|$)'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use an allowlist for deploy-scope proof.

The blacklist misses deployment surfaces such as k8s/, helm/, terraform/, deploy.sh, and Dockerfile.prod. A deploy artifact could be added while this check still passes. Compare the complete --name-only output against the exact expected file set instead.

🤖 Prompt for 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.

In `@contracts/OMN-14616.yaml` around lines 264 - 271, Replace the blacklist-based
deploy-scope check in the PR validation command with an exact allowlist
comparison of the complete gh pr diff --name-only output. Require the changed
files to be precisely the four expected paths—contract.yaml, both broker handler
files, and the adequacy receipt—while preserving the existing head commit
validation.

Comment on lines +1 to +6
---
schema_version: "1.0.0"
ticket_id: "OMN-14616"
evidence_item_id: "dod-omnimarket-pr-1769-product-head-b56971"
check_type: "command"
check_value: "See contracts/OMN-14616.yaml dod-omnimarket-pr-1769-product-head-b56971."

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Make every refreshed receipt self-referential.

All four receipts currently use Line 6 to point at the contract entry. The receipt gate expects check_value to identify the receipt file itself; the contract remains the source for the verified artifact description.

  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml#L1-L6: set check_value to the product-head receipt path.
  • drift/dod_receipts/OMN-14616/dod-pr-1769-state-coverage-b56971/command.yaml#L1-L6: set check_value to the state-coverage receipt path.
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-local-verification-b56971/command.yaml#L1-L6: set check_value to the local-verification receipt path.
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-deploy-scope-b56971/command.yaml#L1-L6: set check_value to the deploy-scope receipt path.

Based on learnings, ModelDodReceipt.check_value is intentionally self-referential in this repository.

📍 Affects 4 files
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml#L1-L6 (this comment)
  • drift/dod_receipts/OMN-14616/dod-pr-1769-state-coverage-b56971/command.yaml#L1-L6
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-local-verification-b56971/command.yaml#L1-L6
  • drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-deploy-scope-b56971/command.yaml#L1-L6
🤖 Prompt for 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.

In
`@drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml`
around lines 1 - 6, Update the check_value field in all four receipt files to
reference the receipt file itself instead of the contract:
drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-product-head-b56971/command.yaml,
drift/dod_receipts/OMN-14616/dod-pr-1769-state-coverage-b56971/command.yaml,
drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-local-verification-b56971/command.yaml,
and
drift/dod_receipts/OMN-14616/dod-omnimarket-pr-1769-deploy-scope-b56971/command.yaml.
Preserve the existing schema_version, ticket_id, and evidence_item_id values.

Source: Learnings

@jonahgabriel
jonahgabriel merged commit 6e1aabb into dev Jul 15, 2026
53 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-14616-occ-1769-head-b56971 branch July 15, 2026 06:14
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