Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions contracts/OMN-14616.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,84 @@ dod_evidence:
--jq '.head.ref == "'$OCC_BRANCH'" and ((.state == "open") or (.state == "closed" and .merged_at
!= null))' | grep -qx true && gh api "repos/${OCC_REPO}/pulls/${OCC_PR_NUMBER}/commits" --paginate
--jq '.[].sha' | grep -Fx "$INITIAL_EVIDENCE_COMMIT"
- id: "dod-omnimarket-pr-1769-product-head-b56971"
evidence_artifact: "supersedes_dod_evidence:dod-omnimarket-pr-1769-product-head-4d981f"
description: >-
Product-observing verification for omnimarket PR #1769 after its head moved to b5697123b95cd776367bc61343b41e5f0c8fc6ee.
The proof reads PR metadata and changed files from GitHub at that exact head, verifies the PR still
targets dev, and checks that the broker handle-entrypoint files, adequacy receipts, and regression
tests remain present.
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
PRODUCT_PR_NUMBER=1769; PRODUCT_REPO=OmniNode-ai/omnimarket; PRODUCT_HEAD=b5697123b95cd776367bc61343b41e5f0c8fc6ee;
d="$(mktemp -d)" && gh pr view "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --json headRefOid,baseRefName,files,title
--jq '.headRefOid + "\n" + .baseRefName + "\n" + .title + "\n" + ((.files | map(.path)) | join("\n"))'
> "$d/pr.txt" && grep -Fq "$PRODUCT_HEAD" "$d/pr.txt" && grep -Fxq dev "$d/pr.txt" && grep -Fq
'fix(OMN-14616): add def-B handle() entrypoint to node_pattern_b_broker handlers' "$d/pr.txt"
&& for p in scripts/ci/adequacy_receipts/omnimarket.nodes.node_pattern_b_broker.equivalence.json
scripts/ci/adequacy_receipts/omnimarket.nodes.node_pattern_b_broker.json src/omnimarket/nodes/node_pattern_b_broker/contract.yaml
src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_publish.py src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_terminal_consumer.py
tests/unit/nodes/node_pattern_b_broker/test_broker_contract_config.py tests/unit/nodes/node_pattern_b_broker/test_broker_handle_entrypoint.py;
do grep -Fq "$p" "$d/pr.txt" && mkdir -p "$d/$(dirname "$p")" && gh api "repos/${PRODUCT_REPO}/contents/${p}?ref=${PRODUCT_HEAD}"
--jq .content | base64 --decode > "$d/$p"; done && grep -Fq 'async def handle(' "$d/src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_publish.py"
&& grep -Fq 'return await self.publish(request)' "$d/src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_publish.py"
&& grep -Fq 'async def handle(' "$d/src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_terminal_consumer.py"
&& grep -Fq 'return await self.wait_for_terminal_event(request)' "$d/src/omnimarket/nodes/node_pattern_b_broker/handlers/adapter_broker_terminal_consumer.py"
&& grep -Fq 'ModelPatternBBrokerDispatchRequest' "$d/src/omnimarket/nodes/node_pattern_b_broker/contract.yaml"
&& grep -Fq 'test_real_engine_dispatch_binds_missing_handle_pre_fix' "$d/tests/unit/nodes/node_pattern_b_broker/test_broker_handle_entrypoint.py"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
- id: "dod-pr-1769-state-coverage-b56971"
evidence_artifact: "supersedes_dod_evidence:dod-pr-1769-state-coverage-4d981f"
description: >-
Current-head state-coverage proof for omnimarket PR #1769 at b5697123b95cd776367bc61343b41e5f0c8fc6ee.
This records the local reproduction of the hosted state-coverage-gate command against origin/dev.
source: "manual"
status: "verified"
checks:
- check_type: "command"
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.

- id: "dod-omnimarket-pr-1769-local-verification-b56971"
evidence_artifact: "supersedes_dod_evidence:dod-omnimarket-pr-1769-local-verification-4d981f"
description: >-
Current-head local verification evidence for omnimarket PR #1769 at b5697123b95cd776367bc61343b41e5f0c8fc6ee.
The proof verifies the PR body still records the original RED/GREEN and local verification evidence
while binding that evidence to the live PR head.
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
PRODUCT_PR_NUMBER=1769; PRODUCT_REPO=OmniNode-ai/omnimarket; PRODUCT_HEAD=b5697123b95cd776367bc61343b41e5f0c8fc6ee;
gh pr view "$PRODUCT_PR_NUMBER" --repo "$PRODUCT_REPO" --json headRefOid,body --jq '.headRefOid
== "'$PRODUCT_HEAD'" and (.body | contains("37/37 pass")) and (.body | contains("RED confirmed
against reverted pre-fix source")) and (.body | contains("ruff format --check")) and (.body
| contains("mypy src/omnimarket/nodes/node_pattern_b_broker/ --strict")) and (.body | contains("node_runtime_sweep
--import-check")) and (.body | contains("pre-commit run"))' | grep -qx true
- id: "dod-omnimarket-pr-1769-deploy-scope-b56971"
evidence_artifact: "supersedes_dod_evidence:dod-omnimarket-pr-1769-deploy-scope-4d981f"
description: >-
Current-head deploy-surface audit for omnimarket PR #1769 at b5697123b95cd776367bc61343b41e5f0c8fc6ee.
The proof rechecks the diff for the broker files and confirms no Dockerfiles, compose manifests,
deploy scripts, runtime service definitions, migrations, or systemd units are introduced by this
ticket lane.
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
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)(/|$)'
Comment on lines +277 to +284

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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-14616"
evidence_item_id: "dod-omnimarket-pr-1769-deploy-scope-b56971"
check_type: "command"
check_value: "See contracts/OMN-14616.yaml dod-omnimarket-pr-1769-deploy-scope-b56971."
contract_entry_sha256: "sha256:e4c3e710b9321825c36987735f3a0114af0c93b21a372c106a18dc213004c17d"
status: PASS
run_timestamp: "2026-07-15T05:58:33Z"
commit_sha: "b5697123b95cd776367bc61343b41e5f0c8fc6ee"
runner: "codex-merge-controller"
verifier: "codex-deploy-scope-audit"
pr_number: 1769
branch: "jonah/omn-14616-node-pattern-b-broker-handle-entrypoints"
probe_command: "gh pr diff 1769 --name-only deploy-surface audit at head b5697123."
probe_stdout: |
omnimarket#1769 current diff includes the broker contract, adapter, adequacy receipt, and test files.
No Dockerfiles, compose files, deploy scripts, runtime service definitions,
migrations, or systemd units are introduced by the OMN-14616 lane.
actual_output: "PASS: current #1769 deploy-scope audit found no live deploy or restart surface."
exit_code: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-14616"
evidence_item_id: "dod-omnimarket-pr-1769-local-verification-b56971"
check_type: "command"
check_value: "See contracts/OMN-14616.yaml dod-omnimarket-pr-1769-local-verification-b56971."
contract_entry_sha256: "sha256:4d7c60aece800c10e21c59ca3b8dc8a4d5f0ab365858ab100019f6e5373f1c66"
status: PASS
run_timestamp: "2026-07-15T05:58:33Z"
commit_sha: "b5697123b95cd776367bc61343b41e5f0c8fc6ee"
runner: "codex-merge-controller"
verifier: "codex-local-verification-audit"
pr_number: 1769
branch: "jonah/omn-14616-node-pattern-b-broker-handle-entrypoints"
probe_command: "gh pr view 1769 body verification at head b5697123."
probe_stdout: |
omnimarket#1769 current head is b5697123b95cd776367bc61343b41e5f0c8fc6ee.
The PR body still records focused tests, RED proof, ruff, strict mypy,
node runtime import sweep, and pre-commit evidence.
actual_output: "PASS: current #1769 head retains the OMN-14616 local verification evidence."
exit_code: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
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."
Comment on lines +1 to +6

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

contract_entry_sha256: "sha256:24af97b6adceb85fe4d43c371b9ce5d1ba98dd7b2e4338137c56fa5911b1d4b1"
status: PASS
run_timestamp: "2026-07-15T05:58:33Z"
commit_sha: "b5697123b95cd776367bc61343b41e5f0c8fc6ee"
runner: "codex-merge-controller"
verifier: "codex-product-head-audit"
pr_number: 1769
branch: "jonah/omn-14616-node-pattern-b-broker-handle-entrypoints"
probe_command: "gh pr view 1769 plus file-content checks at head b5697123."
probe_stdout: |
omnimarket#1769 targets dev at b5697123b95cd776367bc61343b41e5f0c8fc6ee.
The broker contract, handler adapters, adequacy receipts, and regression tests remain present.
actual_output: "PASS: omnimarket#1769 current product head retains OMN-14616 entrypoint evidence."
exit_code: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-14616"
evidence_item_id: "dod-pr-1769-state-coverage-b56971"
check_type: "command"
check_value: "See contracts/OMN-14616.yaml dod-pr-1769-state-coverage-b56971."
contract_entry_sha256: "sha256:c82c76405cb361579960ddff8fc3c779d2d96d66b6babe72222c598d0aab4971"
status: PASS
run_timestamp: "2026-07-15T05:58:33Z"
commit_sha: "b5697123b95cd776367bc61343b41e5f0c8fc6ee"
runner: "codex-merge-controller"
verifier: "codex-state-coverage-audit"
pr_number: 1769
branch: "jonah/omn-14616-node-pattern-b-broker-handle-entrypoints"
probe_command: "uv run python scripts/validate_state_coverage.py --check-changed origin/dev --strict"
probe_stdout: |
state-coverage-gate (strict mode): 1 node(s) checked
PASS: 1 WARN: 0 FAIL: 0

state-coverage-gate: PASS
actual_output: "PASS: state-coverage gate passed locally at current #1769 head b5697123."
exit_code: 0
Loading