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
46 changes: 46 additions & 0 deletions contracts/OMN-10561.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-10561"
title: "Generic contract-driven reducer node"
summary: >
Adds omnimarket node_contract_reducer as a pure COMPUTE node for contract-declared transition tables.
The node interprets current state, user response, and transition configuration without external I/O
or authoritative persistence.
is_seam_ticket: true
interface_change: true
interfaces_touched:
- "public_api"
emergency_bypass:
enabled: false
justification: ""
follow_up_ticket_id: ""
dod_evidence:
- id: "dod-mypy-strict"
description: "Reducer node type-checks under strict mypy."
source: "manual"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-10561/dod-mypy-strict/command.yaml"
- id: "dod-unit-tests"
description: "22 reducer unit tests pass."
source: "manual"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-10561/dod-unit-tests/command.yaml"
- id: "dod-ruff"
description: "Reducer node sources pass ruff."
source: "manual"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-10561/dod-ruff/command.yaml"
- id: "dod-deploy-gate"
description: "Repo-local deploy gate recognizes OMN-10561 deploy evidence for runtime-touching reducer
node paths."
source: "manual"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-10561/dod-deploy-gate/command.yaml"
24 changes: 24 additions & 0 deletions drift/dod_receipts/OMN-10561/dod-deploy-gate/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-10561"
evidence_item_id: "dod-deploy-gate"
check_type: "command"
check_value: "python /Users/jonah/Code/omni_home/omniclaude/scripts/validation/validate_pr_deploy_required.py
--changed-files \"$changed\" --pr-body \"$body\" --contracts-dir docs/work-tracking/contracts"
status: PASS
run_timestamp: "2026-05-07T22:25:55Z"
commit_sha: "02be25e6442d0f67ac7f2630adda99cb44613d5f"
runner: "local-macos"
verifier: "jonahgabriel"
probe_command: "changed=$(gh pr diff 550 --repo OmniNode-ai/omnimarket --name-only); body=$(gh pr view
550 --repo OmniNode-ai/omnimarket --json body -q .body); python /Users/jonah/Code/omni_home/omniclaude/scripts/validation/validate_pr_deploy_required.py
--changed-files \"$changed\" --pr-body \"$body\" --contracts-dir docs/work-tracking/contracts"
probe_stdout: |
::notice::DEPLOY GATE PASSED: OMN-10561 has deploy evidence. Runtime paths: ['src/omnimarket/nodes/node_contract_reducer/__init__.py', 'src/omnimarket/nodes/node_contract_reducer/contract.yaml', 'src/omnimarket/nodes/node_contract_reducer/handlers/__init__.py', 'src/omnimarket/nodes/node_contract_reducer/handlers/handler_contract_reducer.py', 'src/omnimarket/nodes/node_contract_reducer/models/__init__.py', 'src/omnimarket/nodes/node_contract_reducer/models/model_reducer_input.py', 'src/omnimarket/nodes/node_contract_reducer/models/model_reducer_result.py'].
actual_output: "PASS: repo-local OMN-10561 contract satisfies deploy gate for runtime-touching reducer
node paths."
exit_code: 0
pr_number: 787
contract_sha256: "sha256:0369c645ac7cf39a81455b892dce4c98ad2c0ab3aeb1466b80429f846ed7c444"
branch: "jonah/feat-generic-contract-reducer-node"
working_dir: null
20 changes: 20 additions & 0 deletions drift/dod_receipts/OMN-10561/dod-mypy-strict/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-10561"
evidence_item_id: "dod-mypy-strict"
check_type: "command"
check_value: "uv run mypy src/omnimarket/nodes/node_contract_reducer/ --strict"
status: PASS
run_timestamp: "2026-05-07T22:25:55Z"
commit_sha: "02be25e6442d0f67ac7f2630adda99cb44613d5f"
runner: "local-macos"
verifier: "jonahgabriel"
probe_command: "uv run mypy src/omnimarket/nodes/node_contract_reducer/ --strict"
probe_stdout: |
Success: no issues found in 6 source files
actual_output: "PASS: node_contract_reducer strict mypy completed with no issues."
exit_code: 0
pr_number: 787
contract_sha256: "sha256:0369c645ac7cf39a81455b892dce4c98ad2c0ab3aeb1466b80429f846ed7c444"
branch: "jonah/feat-generic-contract-reducer-node"
working_dir: null
20 changes: 20 additions & 0 deletions drift/dod_receipts/OMN-10561/dod-ruff/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-10561"
evidence_item_id: "dod-ruff"
check_type: "command"
check_value: "uv run ruff check src/omnimarket/nodes/node_contract_reducer tests/unit/nodes/node_contract_reducer"
status: PASS
run_timestamp: "2026-05-07T22:25:55Z"
commit_sha: "02be25e6442d0f67ac7f2630adda99cb44613d5f"
runner: "local-macos"
verifier: "jonahgabriel"
probe_command: "uv run ruff check src/omnimarket/nodes/node_contract_reducer tests/unit/nodes/node_contract_reducer"
probe_stdout: |
All checks passed!
actual_output: "PASS: ruff check passed for reducer node sources and tests."
exit_code: 0
pr_number: 787
contract_sha256: "sha256:0369c645ac7cf39a81455b892dce4c98ad2c0ab3aeb1466b80429f846ed7c444"
branch: "jonah/feat-generic-contract-reducer-node"
working_dir: null
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-10561/dod-unit-tests/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-10561"
evidence_item_id: "dod-unit-tests"
check_type: "command"
check_value: "uv run pytest tests/unit/nodes/node_contract_reducer/ -q"
status: PASS
run_timestamp: "2026-05-07T22:25:55Z"
commit_sha: "02be25e6442d0f67ac7f2630adda99cb44613d5f"
runner: "local-macos"
verifier: "jonahgabriel"
probe_command: "uv run pytest tests/unit/nodes/node_contract_reducer/ -q"
probe_stdout: |
...................... [100%]
22 passed in 0.04s
actual_output: "PASS: 22 node_contract_reducer unit tests passed."
exit_code: 0
pr_number: 787
contract_sha256: "sha256:0369c645ac7cf39a81455b892dce4c98ad2c0ab3aeb1466b80429f846ed7c444"
branch: "jonah/feat-generic-contract-reducer-node"
working_dir: null
Loading