Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
64 changes: 64 additions & 0 deletions contracts/OMN-12346.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12346"
title: "Implement omnimarket contract drift compute runtime handler"
summary: >
Bind central evidence for omnimarket PR #955, which removes the node_contract_drift_compute runtime
stub and implements deterministic contract-vs-handler topic drift detection using the node contract
and typed Pydantic request/result models as the source of truth.
is_seam_ticket: true
interface_change: true
interfaces_touched:
- events
- topics
- public_api
emergency_bypass:
enabled: false
justification: ""
follow_up_ticket_id: ""
dod_evidence:
- id: "dod-omnimarket-pr-955"
description: "Bind OMN-12346 evidence to omnimarket PR #955."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-12346/dod-omnimarket-pr-955/command.yaml
&& grep -q '^pr_number: 955$' drift/dod_receipts/OMN-12346/dod-omnimarket-pr-955/command.yaml"
- id: "dod-contract-drift-focused-tests"
description: "Focused OMN-12346 golden-chain tests, lint, and formatting pass for the contract drift
compute node."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-12346/dod-contract-drift-focused-tests/command.yaml
&& grep -q '23 passed' drift/dod_receipts/OMN-12346/dod-contract-drift-focused-tests/command.yaml
&& grep -q 'All checks passed' drift/dod_receipts/OMN-12346/dod-contract-drift-focused-tests/command.yaml"
- id: "dod-contract-drift-broader-validation"
description: "Adjacent contract sweep, node drift, topic lint, market-skill smoke, and projection-query
validation pass for omnimarket PR #955."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-12346/dod-contract-drift-broader-validation/command.yaml
&& grep -q '290 contracts checked' drift/dod_receipts/OMN-12346/dod-contract-drift-broader-validation/command.yaml
&& grep -q '0 drift findings' drift/dod_receipts/OMN-12346/dod-contract-drift-broader-validation/command.yaml"
- id: "dod-deploy-readiness"
description: "Deploy gate evidence: the compute node remains pure/read-only, declares native event-bus
topics, and requires no live runtime deploy before merge."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-12346/dod-deploy-readiness/command.yaml
&& grep -qi 'deploy readiness' drift/dod_receipts/OMN-12346/dod-deploy-readiness/command.yaml"
- id: "dod-occ-pr"
description: "OCC PR #1810 carries the central OMN-12346 contract and receipts."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-12346/dod-occ-pr/command.yaml &&
grep -q '^pr_number: 1810$' drift/dod_receipts/OMN-12346/dod-occ-pr/command.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12346"
evidence_item_id: "dod-contract-drift-broader-validation"
check_type: "command"
check_value: "uv run pytest tests/nodes/node_contract_sweep/test_handler_contract_sweep.py tests/ci/test_check_no_hardcoded_topics.py
tests/unit/scripts/test_validate_node_drift.py tests/unit/scripts/test_contract_config_audit.py tests/unit/contracts/test_contract_classification.py
tests/test_market_skill_smokes.py tests/test_golden_chain_projection_query.py -q && uv run python scripts/validate_node_drift.py
--check-changed origin/dev --strict && native handler scan"
contract_sha256: "sha256:c88d259f88b22039e36b7cc1482a95542db2a999acd8548a26130aa3b2926c55"
status: PASS
run_timestamp: "2026-05-28T20:54:36Z"
commit_sha: "d6efaa9154436e9a2ba51e6861e66cc5ef56ec77"
runner: "codex-local"
verifier: "codex"
probe_command: "broader OMN-12346 local validation in /Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/omnimarket"
probe_stdout: |
tests/nodes/node_contract_sweep/test_handler_contract_sweep.py: 7 passed in 0.08s
tests/ci/test_check_no_hardcoded_topics.py: 9 passed in 0.53s
tests/unit/scripts/test_validate_node_drift.py tests/unit/scripts/test_contract_config_audit.py tests/unit/contracts/test_contract_classification.py: 17 passed in 3.08s
scripts/validate_node_drift.py --check-changed origin/dev --strict: PASS with one best-effort topic_handler_alignment warning
native handler scan: repos=['omnimarket'], check_boundaries=False => clean, 290 contracts checked, 0 drift findings
tests/test_market_skill_smokes.py: 10 passed in 6.51s
tests/test_golden_chain_projection_query.py: 26 passed in 0.10s
actual_output: "PASS: broader adjacent contract, topic, market-skill, projection, and native handler scan
validation passed locally with 290 contracts checked and 0 drift findings."
exit_code: 0
pr_number: 955
branch: "jonah/omn-12346-contract-drift-runtime-handler"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/omnimarket"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12346"
evidence_item_id: "dod-contract-drift-focused-tests"
check_type: "command"
check_value: "uv run pytest src/omnimarket/nodes/node_contract_drift_compute/tests/test_golden_chain.py
-q && uv run ruff check src/omnimarket/nodes/node_contract_drift_compute && uv run ruff format --check
src/omnimarket/nodes/node_contract_drift_compute && uv run mypy src/omnimarket/nodes/node_contract_drift_compute/handlers/handler_contract_drift_compute.py
--strict"
contract_sha256: "sha256:c88d259f88b22039e36b7cc1482a95542db2a999acd8548a26130aa3b2926c55"
status: PASS
run_timestamp: "2026-05-28T20:54:36Z"
commit_sha: "d6efaa9154436e9a2ba51e6861e66cc5ef56ec77"
runner: "codex-local"
verifier: "codex"
probe_command: "focused OMN-12346 local validation in /Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/omnimarket"
probe_stdout: |
pytest: 23 passed in 0.22s
ruff check: All checks passed!
ruff format --check: 6 files already formatted
mypy strict: Success: no issues found in 1 source file
actual_output: "PASS: node_contract_drift_compute focused golden-chain tests, lint, format, and strict
mypy checks passed locally."
exit_code: 0
pr_number: 955
branch: "jonah/omn-12346-contract-drift-runtime-handler"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/omnimarket"
27 changes: 27 additions & 0 deletions drift/dod_receipts/OMN-12346/dod-deploy-readiness/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12346"
evidence_item_id: "dod-deploy-readiness"
check_type: "command"
check_value: "deploy readiness assessment for node_contract_drift_compute: compute contract declares purity,
idempotence, native Kafka subscribe/publish topics, terminal_event, and read-only deterministic filesystem
scan behavior"
contract_sha256: "sha256:c88d259f88b22039e36b7cc1482a95542db2a999acd8548a26130aa3b2926c55"
status: PASS
run_timestamp: "2026-05-28T20:54:36Z"
commit_sha: "d6efaa9154436e9a2ba51e6861e66cc5ef56ec77"
runner: "codex-local"
verifier: "codex"
probe_command: "deploy readiness assessment for OMN-12346 contract drift compute node"
probe_stdout: |
deploy readiness: node_contract_drift_compute contract declares node_type=compute,
descriptor.purity=pure, descriptor.idempotent=true, native event_bus subscribe/publish topics,
terminal_event=onex.evt.omnimarket.contract-drift-compute-completed.v1, and transport_type=kafka.
Handler implementation performs deterministic read-only contract/handler topic scanning and no live
deploy or runtime restart is required before merge.
actual_output: "PASS: deploy readiness evidence recorded for OMN-12346; no live runtime deploy is required
before merge."
exit_code: 0
pr_number: 955
branch: "jonah/omn-12346-contract-drift-runtime-handler"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/omnimarket"
20 changes: 20 additions & 0 deletions drift/dod_receipts/OMN-12346/dod-occ-pr/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12346"
evidence_item_id: "dod-occ-pr"
check_type: "command"
check_value: "gh pr view 1810 --repo OmniNode-ai/onex_change_control --json number,headRefName,title,state,headRefOid,baseRefName"
contract_sha256: "sha256:c88d259f88b22039e36b7cc1482a95542db2a999acd8548a26130aa3b2926c55"
status: PASS
run_timestamp: "2026-05-28T21:03:00Z"
commit_sha: "1aeebd7f"
runner: "codex-local"
verifier: "codex"
probe_command: "gh pr view 1810 --repo OmniNode-ai/onex_change_control --json number,headRefName,title,state,headRefOid,baseRefName"
probe_stdout: |
{"baseRefName":"dev","headRefName":"jonah/omn-12346-occ-evidence","headRefOid":"1aeebd7f","number":1810,"state":"OPEN","title":"contracts(OMN-12346): add contract drift compute evidence"}
actual_output: "PASS: OCC PR #1810 carries the central OMN-12346 contract and receipts."
exit_code: 0
pr_number: 1810
branch: "jonah/omn-12346-occ-evidence"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/onex_change_control"
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-12346/dod-omnimarket-pr-955/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12346"
evidence_item_id: "dod-omnimarket-pr-955"
check_type: "command"
check_value: "gh pr view 955 --repo OmniNode-ai/omnimarket --json number,headRefOid,headRefName,title,state"
contract_sha256: "sha256:c88d259f88b22039e36b7cc1482a95542db2a999acd8548a26130aa3b2926c55"
status: PASS
run_timestamp: "2026-05-28T20:54:36Z"
commit_sha: "d6efaa9154436e9a2ba51e6861e66cc5ef56ec77"
runner: "codex-local"
verifier: "codex"
probe_command: "gh pr view 955 --repo OmniNode-ai/omnimarket --json number,headRefOid,headRefName,title,state"
probe_stdout: |
{"headRefName":"jonah/omn-12346-contract-drift-runtime-handler","headRefOid":"d6efaa9154436e9a2ba51e6861e66cc5ef56ec77","number":955,"state":"OPEN","title":"OMN-12346 implement contract drift compute runtime handler"}
actual_output: "PASS: omnimarket PR #955 is open at the OMN-12346 contract drift compute handler head
commit d6efaa9154436e9a2ba51e6861e66cc5ef56ec77."
exit_code: 0
pr_number: 955
branch: "jonah/omn-12346-contract-drift-runtime-handler"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12346/omnimarket"
Loading