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
61 changes: 61 additions & 0 deletions contracts/OMN-11083.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-11083"
title: "Contract-Driven Hook Opt-In Mechanism"
summary: >
Bridge omniclaude hook_activations.yaml enabled_by_default declarations into the EnumHookBit default
mask and regenerated hook_bits.sh so newly introduced enforcement gates are valid bits but opt-in by
default.
is_seam_ticket: true
interface_change: true
interfaces_touched:
- "events"
evidence_requirements:
- kind: "tests"
description: "Contract-to-mask tests pass in omnibase_core and omniclaude."
command: "uv run pytest tests/enums/test_hook_bit_contract_mask.py tests/unit/test_enum_hook_bit.py
tests/unit/scripts/test_gen_hook_bits.py tests/unit/models/contracts/test_model_package_hook_activations.py
-v && uv run pytest tests/hooks/test_hook_activations_contract.py tests/unit/test_hook_activations_yaml.py
-v"
- kind: "ci"
description: "omnibase_core and omniclaude PRs are opened with Receipt Gate evidence pinned through
OCC."
command: "gh pr view 1087 --repo OmniNode-ai/omnibase_core && gh pr view 1593 --repo OmniNode-ai/omniclaude"
dod_evidence:
- id: "dod-core-tests"
description: "Focused omnibase_core enum, generator, and contract model tests pass."
source: "manual"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-core-tests/command.yaml\""
- id: "dod-omniclaude-tests"
description: "Focused omniclaude hook activation contract tests pass against the OMN-11083 core worktree."
source: "manual"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-omniclaude-tests/command.yaml\""
- id: "dod-core-pr"
description: "omnibase_core PR #1087 carries the enum/generator changes at the observed PR head."
source: "manual"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-core-pr/command.yaml\"
&& grep -q '^pr_number: 1087$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-core-pr/command.yaml\""
- id: "dod-omniclaude-pr"
description: "omniclaude PR #1593 carries the hook activation contract and regenerated hook bits at
the observed PR head."
source: "manual"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-omniclaude-pr/command.yaml\"
&& grep -q '^pr_number: 1593$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-omniclaude-pr/command.yaml\""
- id: "dod-occ-pr-self"
description: "OCC PR #1068 carries the OMN-11083 central contract and receipt bundle."
source: "manual"
checks:
- check_type: "command"
check_value: "grep -q '^status: PASS$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-occ-pr-self/command.yaml\"
&& grep -q '^pr_number: 1068$' \"$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-11083/dod-occ-pr-self/command.yaml\""
emergency_bypass:
enabled: false
justification: ""
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-11083/dod-core-pr/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: OMN-11083
evidence_item_id: dod-core-pr
check_type: command
check_value: "gh pr view 1087 --repo OmniNode-ai/omnibase_core --json headRefOid,title,headRefName,state,url
--jq '.'"
status: PASS
run_timestamp: "2026-05-16T19:31:46Z"
commit_sha: "29555c5efdacefec8bb6756018282abf682b2dab"
runner: codex-omn-11083
verifier: jonahgabriel
probe_command: "gh pr view 1087 --repo OmniNode-ai/omnibase_core --json headRefOid,title,headRefName,state,url
--jq '.'"
probe_stdout: |
{"headRefName":"jonah/omn-11083-contract-driven-hook-opt-in","headRefOid":"29555c5efdacefec8bb6756018282abf682b2dab","state":"OPEN","title":"feat(OMN-11083): drive hook default mask from contract","url":"https://github.com/OmniNode-ai/omnibase_core/pull/1087"}
actual_output: "PASS: omnibase_core PR #1087 is open at the OMN-11083 enum/generator head."
exit_code: 0
pr_number: 1087
branch: "jonah/omn-11083-contract-driven-hook-opt-in"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/onex_change_control"
24 changes: 24 additions & 0 deletions drift/dod_receipts/OMN-11083/dod-core-tests/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
schema_version: "1.0.0"
ticket_id: OMN-11083
evidence_item_id: dod-core-tests
check_type: command
check_value: "PYTHONPATH=/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/omnibase_core/src uv run
pytest tests/enums/test_hook_bit_contract_mask.py tests/unit/test_enum_hook_bit.py tests/unit/scripts/test_gen_hook_bits.py
tests/unit/models/contracts/test_model_package_hook_activations.py -v"
status: PASS
run_timestamp: "2026-05-16T19:31:46Z"
commit_sha: "29555c5efdacefec8bb6756018282abf682b2dab"
runner: codex-omn-11083
verifier: jonahgabriel
probe_command: "PYTHONPATH=/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/omnibase_core/src uv run
pytest tests/enums/test_hook_bit_contract_mask.py tests/unit/test_enum_hook_bit.py tests/unit/scripts/test_gen_hook_bits.py
tests/unit/models/contracts/test_model_package_hook_activations.py -v"
probe_stdout: |
45 passed in 28.79s
actual_output: "PASS: focused omnibase_core enum, generator, and package activation contract model tests
passed."
exit_code: 0
pr_number: 1087
branch: "jonah/omn-11083-contract-driven-hook-opt-in"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/omnibase_core"
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-11083/dod-occ-pr-self/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: OMN-11083
evidence_item_id: dod-occ-pr-self
check_type: command
check_value: "gh pr view 1068 --repo OmniNode-ai/onex_change_control --json headRefOid,title,headRefName,state,url
--jq '.'"
status: PASS
run_timestamp: "2026-05-16T19:36:00Z"
commit_sha: "6a449ece39755a71a72d3c71ffdd2d06d65cb6fe"
runner: codex-omn-11083
verifier: jonahgabriel
probe_command: "gh pr view 1068 --repo OmniNode-ai/onex_change_control --json headRefOid,title,headRefName,state,url
--jq '.'"
probe_stdout: |
{"headRefName":"jonah/omn-11083-occ-evidence","headRefOid":"6a449ece39755a71a72d3c71ffdd2d06d65cb6fe","state":"OPEN","title":"evidence(OMN-11083): bind hook opt-in receipts","url":"https://github.com/OmniNode-ai/onex_change_control/pull/1068"}
actual_output: "PASS: OCC PR #1068 carries the OMN-11083 central contract and receipt bundle."
exit_code: 0
pr_number: 1068
branch: "jonah/omn-11083-occ-evidence"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/onex_change_control"
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-11083/dod-omniclaude-pr/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: OMN-11083
evidence_item_id: dod-omniclaude-pr
check_type: command
check_value: "gh pr view 1593 --repo OmniNode-ai/omniclaude --json headRefOid,title,headRefName,state,url
--jq '.'"
status: PASS
run_timestamp: "2026-05-16T19:31:46Z"
commit_sha: "b29c374b527f33898348f345b641598fd3b03458"
runner: codex-omn-11083
verifier: jonahgabriel
probe_command: "gh pr view 1593 --repo OmniNode-ai/omniclaude --json headRefOid,title,headRefName,state,url
--jq '.'"
probe_stdout: |
{"headRefName":"jonah/omn-11083-contract-driven-hook-opt-in","headRefOid":"b29c374b527f33898348f345b641598fd3b03458","state":"OPEN","title":"feat(OMN-11083): opt hook gates into activation contract","url":"https://github.com/OmniNode-ai/omniclaude/pull/1593"}
actual_output: "PASS: omniclaude PR #1593 is open at the OMN-11083 hook activation contract head."
exit_code: 0
pr_number: 1593
branch: "jonah/omn-11083-contract-driven-hook-opt-in"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/onex_change_control"
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-11083/dod-omniclaude-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-11083
evidence_item_id: dod-omniclaude-tests
check_type: command
check_value: "PYTHONPATH=/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/omnibase_core/src uv run
pytest tests/hooks/test_hook_activations_contract.py tests/unit/test_hook_activations_yaml.py -v"
status: PASS
run_timestamp: "2026-05-16T19:31:46Z"
commit_sha: "b29c374b527f33898348f345b641598fd3b03458"
runner: codex-omn-11083
verifier: jonahgabriel
probe_command: "PYTHONPATH=/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/omnibase_core/src uv run
pytest tests/hooks/test_hook_activations_contract.py tests/unit/test_hook_activations_yaml.py -v"
probe_stdout: |
16 passed in 1.28s
actual_output: "PASS: focused omniclaude hook activation contract and default gate behavior tests passed."
exit_code: 0
pr_number: 1593
branch: "jonah/omn-11083-contract-driven-hook-opt-in"
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-11083/omniclaude"
Loading