Skip to content

docs(OMN-7261): bind task boundary hook receipts - #669

Merged
jonahgabriel merged 4 commits into
mainfrom
jonah/omn-7261-omniclaude-receipts
May 2, 2026
Merged

jonahgabriel merged 4 commits into
mainfrom
jonah/omn-7261-omniclaude-receipts

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Verification

  • uv run validate-yaml contracts/OMN-7261.yaml
  • ModelDodReceipt validation for dod-001 through dod-004
  • receipt_gate_cli passes for OMN-7261
  • validator_occ_merge_eligibility passes for omniclaude#1504

Downstream: OmniNode-ai/omniclaude#1504

Summary by CodeRabbit

  • Chores
    • Updated contract text for punctuation consistency.
    • Strengthened evidence checks to require ticket and check-type linkage.
    • Refined several evidence descriptions for clarity.
    • Refreshed multiple evidence receipts with new execution metadata and updated probe outputs to better reflect observed test/run results.

@coderabbitai

coderabbitai Bot commented May 2, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@jonahgabriel has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 30cf497d-8c31-480f-beaa-f3878becdeed

📥 Commits

Reviewing files that changed from the base of the PR and between 07954a2 and 7ce94a3.

📒 Files selected for processing (6)
  • contracts/OMN-7261.yaml
  • drift/dod_receipts/OMN-7261/dod-001/command.yaml
  • drift/dod_receipts/OMN-7261/dod-002/command.yaml
  • drift/dod_receipts/OMN-7261/dod-003/command.yaml
  • drift/dod_receipts/OMN-7261/dod-004/command.yaml
  • drift/dod_receipts/OMN-7261/dod-005/command.yaml
📝 Walkthrough

Walkthrough

Contract contracts/OMN-7261.yaml and four corresponding receipt files were updated: contract checks now require matching ticket_id: "OMN-7261" and check_type: "command" in each receipt; receipt command probes and metadata (probe_command, probe_stdout, actual_output, run_timestamp, commit_sha, working_dir) were revised; minor description and dash-character edits in the contract title/summary.

Changes

Evidence Receipts and Contract Update

Layer / File(s) Summary
Contract Data Shape
contracts/OMN-7261.yaml
Expanded each dod_evidence check to require status: PASS, evidence_item_id, plus ticket_id: "OMN-7261" and check_type: "command". Adjusted dod-001 and dod-003 descriptions and changed a dash character in title/summary.
Probe Assertions / Check Logic
drift/dod_receipts/OMN-7261/dod-001/command.yaml
check_value/probe now verifies both pre_tool_use_task_boundary_tests.sh in hooks.json and TASK_BOUNDARY_TESTS bit emission in hook_bits.sh; probe_command/probe_stdout and actual_output updated accordingly.
Execution Metadata Refresh
drift/dod_receipts/OMN-7261/dod-00{2,3,4}/command.yaml
Receipt run-specific fields updated (new run_timestamp, commit_sha, working_dir, and in some cases pr_number/branch); probe_stdout and actual_output text adjusted (e.g., pytest runtime, wording changes); probe_command formatting changes for dod-004.
Result Consistency
drift/dod_receipts/OMN-7261/dod-00{1,2,3,4}/command.yaml
All receipts maintain status: PASS, exit_code: 0, and existing pr_number/branch or keep them consistent where unchanged.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I hopped through hooks and timestamps bright,
Verified each receipt by lantern-light,
Ticket stamped, checks all sing,
Tiny paws confirm the spring —
Hooray for bits and tests done right!

🚥 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 PR title 'docs(OMN-7261): bind task boundary hook receipts' directly and specifically describes the main change: updating and binding task-boundary hook receipts for ticket OMN-7261.
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-7261-omniclaude-receipts

Review rate limit: 0/5 reviews remaining, refill in 37 seconds.

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

@jonahgabriel
jonahgabriel enabled auto-merge May 2, 2026 13:54

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

Actionable comments posted: 1

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

23-25: ⚡ Quick win

Harden receipt-gate assertions with more invariant fields.

These checks only assert status and evidence_item_id. Add ticket_id and check_type (optionally schema_version) so malformed/stale receipt content is less likely to pass accidentally.

Example hardening pattern
- check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-7261/dod-001/command.yaml && grep -q '^evidence_item_id: \"dod-001\"$' drift/dod_receipts/OMN-7261/dod-001/command.yaml"
+ check_value: "grep -q '^status: PASS$' drift/dod_receipts/OMN-7261/dod-001/command.yaml && grep -q '^evidence_item_id: \"dod-001\"$' drift/dod_receipts/OMN-7261/dod-001/command.yaml && grep -q '^ticket_id: \"OMN-7261\"$' drift/dod_receipts/OMN-7261/dod-001/command.yaml && grep -q '^check_type: \"command\"$' drift/dod_receipts/OMN-7261/dod-001/command.yaml"

Also applies to: 30-32, 37-39, 44-45

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@contracts/OMN-7261.yaml` around lines 23 - 25, Update the check_value
assertions that currently only verify status and evidence_item_id to also assert
ticket_id and check_type (and optionally schema_version) so malformed or stale
receipts can't slip through; specifically modify the check_value grep commands
(e.g., the block containing check_value and id: "dod-002") to include additional
grep -q checks for '^ticket_id: "..."$', '^check_type: "..."$' (and
'^schema_version: "..."$' if desired), matching the expected values for each id
(e.g., dod-001, dod-002) so each receipt gate verifies status, evidence_item_id,
ticket_id and check_type.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@drift/dod_receipts/OMN-7261/dod-004/command.yaml`:
- Around line 13-15: The receipt metadata contains machine-specific absolute
paths in the probe_command and working_dir fields (e.g., "/Users/jonah/..."), so
update the receipt to use repo-relative or redacted paths instead: replace
absolute paths inside probe_command and any working_dir entries with a
repository-relative path (e.g., "python -m ..." run from repo root) or a
standardized placeholder like "<REPO_ROOT>" and ensure the same normalization is
applied across all receipts in the OMN-7261 set; locate the probe_command and
working_dir entries in the receipt YAML and update their values to remove the
local user/home path while preserving the original command arguments and intent.

---

Nitpick comments:
In `@contracts/OMN-7261.yaml`:
- Around line 23-25: Update the check_value assertions that currently only
verify status and evidence_item_id to also assert ticket_id and check_type (and
optionally schema_version) so malformed or stale receipts can't slip through;
specifically modify the check_value grep commands (e.g., the block containing
check_value and id: "dod-002") to include additional grep -q checks for
'^ticket_id: "..."$', '^check_type: "..."$' (and '^schema_version: "..."$' if
desired), matching the expected values for each id (e.g., dod-001, dod-002) so
each receipt gate verifies status, evidence_item_id, ticket_id and check_type.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 38bfbe78-9e13-4aa2-be34-e293a4aa7bd7

📥 Commits

Reviewing files that changed from the base of the PR and between 966291c and c1819b6.

📒 Files selected for processing (5)
  • contracts/OMN-7261.yaml
  • drift/dod_receipts/OMN-7261/dod-001/command.yaml
  • drift/dod_receipts/OMN-7261/dod-002/command.yaml
  • drift/dod_receipts/OMN-7261/dod-003/command.yaml
  • drift/dod_receipts/OMN-7261/dod-004/command.yaml

Comment thread drift/dod_receipts/OMN-7261/dod-004/command.yaml Outdated
@jonahgabriel
jonahgabriel force-pushed the jonah/omn-7261-omniclaude-receipts branch from c1819b6 to 1682f60 Compare May 2, 2026 13:57
@jonahgabriel
jonahgabriel force-pushed the jonah/omn-7261-omniclaude-receipts branch from 3fbc5c0 to a58b45e Compare May 2, 2026 15:29
@jonahgabriel
jonahgabriel added this pull request to the merge queue May 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 2, 2026
@jonahgabriel
jonahgabriel added this pull request to the merge queue May 2, 2026
Merged via the queue into main with commit 9b9aa17 May 2, 2026
26 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-7261-omniclaude-receipts branch May 2, 2026 17:13
jonahgabriel added a commit that referenced this pull request May 2, 2026
* docs(OMN-7261): bind task boundary hook receipts

* docs(OMN-7261): bind hook receipts to occ commit

* docs(OMN-7261): harden task boundary receipts

* docs(OMN-7261): add occ eligibility receipt
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