Skip to content

contract(OMN-9906): refresh omniclaude hook gate receipt - #984

Merged
jonahgabriel merged 3 commits into
mainfrom
jonah/omn-9906-occ-refresh
May 13, 2026
Merged

jonahgabriel merged 3 commits into
mainfrom
jonah/omn-9906-occ-refresh

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add OMN-9906 downstream receipt for omniclaude#1572 head 36f5e84bb9afeb0563c128e27c13bcab50297a06
  • bind the follow-up TEAM_LEAD_GUARD hook-gate fail-open fix

Verification

  • uv run validate-yaml contracts/OMN-9906.yaml
  • uv run pre-commit run --files contracts/OMN-9906.yaml drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
  • uv run python scripts/ci/run_contract_compliance_check.py --pr 1572 --repo OmniNode-ai/omniclaude --contracts-dir contracts

Summary by CodeRabbit

  • Tests
    • Added verification documenting the hook-gate fail-open behavior to ensure graceful degradation and continued operation when the hook-gate cannot be loaded or required hooks are unavailable.
  • Chores
    • Updated receipt/checksum records across several verification entries to reflect refreshed contract metadata.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 13, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f37d8ac0-d2bd-4c2e-bce4-2be46599dd80

📥 Commits

Reviewing files that changed from the base of the PR and between 54a61b0 and b2353d6.

📒 Files selected for processing (10)
  • contracts/OMN-9906.yaml
  • drift/dod_receipts/OMN-9906/dod-001/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-972/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-974/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-980/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-981/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-984/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr/command.yaml
  • drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
  • drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572/command.yaml
✅ Files skipped from review due to trivial changes (8)
  • drift/dod_receipts/OMN-9906/dod-occ-pr-974/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-984/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-972/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-980/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr/command.yaml
  • drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572/command.yaml
  • drift/dod_receipts/OMN-9906/dod-001/command.yaml
  • drift/dod_receipts/OMN-9906/dod-occ-pr-981/command.yaml
🚧 Files skipped from review as they are similar to previous changes (2)
  • drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
  • contracts/OMN-9906.yaml

📝 Walkthrough

Walkthrough

This PR adds Definition of Done evidence for omniclaude PR #1572, registering a new DOD receipt (dod-omniclaude-pr-1572-hook-gate-failopen) in the OMN-9906 contract. The receipt verifies that the TEAM_LEAD_GUARD shell hook fails open gracefully when hook-gate.sh cannot be sourced or onex_hook_gate is unavailable, with explicit error log patterns and exit code validation.

Changes

Hook-gate failopen DOD evidence

Layer / File(s) Summary
DOD evidence entry and command receipt
contracts/OMN-9906.yaml, drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
Adds dod_evidence entry in OMN-9906 contract referencing the hook-gate failopen verification. The paired command.yaml receipt defines PASS condition with probe_command logic to grep PR #1572 diff for failopen patterns, specifies probe_stdout for timestamped ERROR log lines, asserts actual_output describing fail-open behavior while retaining TEAM_LEAD_GUARD bitmask, records commit SHA and run metadata, and includes contract_sha256 validation.
Receipt checksum refreshes
drift/dod_receipts/OMN-9906/*/command.yaml
Updates contract_sha256 values across multiple existing OMN-9906 receipt command.yaml files and refreshes the recorded command receipt content for dod-occ-pr-984/command.yaml.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 A shell hook that gracefully bows when the gate cannot show,
Failing open with guards held high—a failsafe's gentle glow.
Evidence penned, receipts inscribed, the proof now goes on file,
Hook-gate resilience recorded true, with OMN's DOD smile!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a new receipt entry for omniclaude PR #1572's hook-gate failopen behavior to refresh the OMN-9906 contract.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-9906-occ-refresh

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

@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.

🧹 Nitpick comments (1)
contracts/OMN-9906.yaml (1)

81-84: ⚡ Quick win

Replace duplicated status check with fail-open-specific assertions.

Line 84 repeats the same status: PASS grep from Line 81, so this check can pass without validating the fail-open behavior described in this DoD item.

Proposed diff
-        check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
-          && grep -q '^ticket_id: OMN-9906$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
-          && grep -q '^pr_number: 1572$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
-          && grep -q '^status: PASS$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml"
+        check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
+          && grep -q '^ticket_id: OMN-9906$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
+          && grep -q '^pr_number: 1572$' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
+          && grep -q 'failed to source hook-gate.sh; failing open' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml
+          && grep -q 'onex_hook_gate unavailable; failing open' drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml"
🤖 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-9906.yaml` around lines 81 - 84, The check_value contains a
duplicated grep for '^status: PASS$' which masks the fail-open assertion—update
the check_value string (the value for the check_value key) to remove the final
duplicate "grep -q '^status: PASS$'" and replace it with fail-open specific
assertions, for example adding greps that assert a fail-open flag and reason
such as "grep -q '^fail_open: true$' <file>" and "grep -q '^fail_open_reason:
.*$' <file>" (or other project-specific keys used to indicate fail-open) so the
command.yaml is validated for fail-open behavior instead of repeating the status
check.
🤖 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.

Nitpick comments:
In `@contracts/OMN-9906.yaml`:
- Around line 81-84: The check_value contains a duplicated grep for '^status:
PASS$' which masks the fail-open assertion—update the check_value string (the
value for the check_value key) to remove the final duplicate "grep -q '^status:
PASS$'" and replace it with fail-open specific assertions, for example adding
greps that assert a fail-open flag and reason such as "grep -q '^fail_open:
true$' <file>" and "grep -q '^fail_open_reason: .*$' <file>" (or other
project-specific keys used to indicate fail-open) so the command.yaml is
validated for fail-open behavior instead of repeating the status check.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 63afcd19-be6a-4f18-acca-0ed7324d3f77

📥 Commits

Reviewing files that changed from the base of the PR and between eaaac2c and 54a61b0.

📒 Files selected for processing (2)
  • contracts/OMN-9906.yaml
  • drift/dod_receipts/OMN-9906/dod-omniclaude-pr-1572-hook-gate-failopen/command.yaml

@jonahgabriel
jonahgabriel merged commit 42ad8f5 into main May 13, 2026
29 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-9906-occ-refresh branch May 13, 2026 14:53
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