Skip to content

receipt(OMN-13025): OCC contract + DoD receipts for evidence-language guard pre-commit hook - #3247

Merged
jonahgabriel merged 1 commit into
devfrom
jonah/omn-13025-evidence-language-guard-occ
Jun 28, 2026
Merged

jonahgabriel merged 1 commit into
devfrom
jonah/omn-13025-evidence-language-guard-occ

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

OCC receipt PR for OMN-13025 (A-3): evidence-language guard pre-commit hook on docs/evidence/**.

Evidence-Source: 2f29ead
Evidence-Ticket: OMN-13025

What This PR Contains

  • contracts/OMN-13025.yaml — OCC contract declaring the hook implementation
  • drift/dod_receipts/OMN-13025/ — 4 DoD receipts:
    • dod-hook-exists-executable: verifies hook script is present and executable
    • dod-hook-wired-in-precommit: verifies hook is registered in .pre-commit-config.yaml
    • dod-unit-tests-pass: verifies all 8 unit tests pass
    • dod-occ-self: self-binding OCC receipt

DoD

The implementation PR (omniclaude) adds:

  • .pre-commit-hooks/reject-evidence-ui-claims.sh — blocks UI/e2e claims in docs/evidence/** without Playwright artifact reference
  • .pre-commit-config.yaml wiring
  • 8 unit tests (TDD-first) covering reject/accept/ignore cases
  • contracts/OMN-13025.yaml

Root cause closed: PROCESS_FAILURE_RETRO.md §3.A (top-10 failure #1) — the 2026-06-11 19:27Z evidence doc claimed "UI POST → full chain live" when only curl was run.

@coderabbitai

coderabbitai Bot commented Jun 28, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@jonahgabriel, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 18 minutes and 15 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cb0a495c-c301-49e4-b3b5-e5a21158ce2f

📥 Commits

Reviewing files that changed from the base of the PR and between 371ce75 and d0b2c69.

📒 Files selected for processing (5)
  • contracts/OMN-13025.yaml
  • drift/dod_receipts/OMN-13025/dod-hook-exists-executable/command.yaml
  • drift/dod_receipts/OMN-13025/dod-hook-wired-in-precommit/command.yaml
  • drift/dod_receipts/OMN-13025/dod-occ-self/command.yaml
  • drift/dod_receipts/OMN-13025/dod-unit-tests-pass/command.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-13025-evidence-language-guard-occ

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

@jonahgabriel
jonahgabriel force-pushed the jonah/omn-13025-evidence-language-guard-occ branch from 8736736 to d0b2c69 Compare June 28, 2026 09:48
@jonahgabriel
jonahgabriel added this pull request to the merge queue Jun 28, 2026
Merged via the queue into dev with commit 2f29ead Jun 28, 2026
38 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-13025-evidence-language-guard-occ branch June 28, 2026 10:02
andywu42 pushed a commit to andywu42/omniclaude that referenced this pull request Jul 16, 2026
…2e claims in docs/evidence/** without Playwright artifact (OmniNode-ai#1813)

## Summary

OMN-13025 (A-3): Adds `reject-evidence-ui-claims` pre-commit hook that
enforces evidence-language honesty in `docs/evidence/**` markdown files.


OCC receipt PR:
OmniNode-ai/onex_change_control#3247

## Root Cause

PROCESS_FAILURE_RETRO.md §3.A (top-10 failure OmniNode-ai#1): the 2026-06-11 19:27Z
evidence doc claimed "UI POST → full chain live" when only curl was run.
This led to a false "done" declaration.

## What This PR Adds

- `.pre-commit-hooks/reject-evidence-ui-claims.sh` — blocking hook (no
warn-only mode per CLAUDE.md Rule OmniNode-ai#5 + Rule OmniNode-ai#10)
- `.pre-commit-config.yaml` — wires the hook at `pre-commit` stage on
`types: [markdown]`
- `contracts/OMN-13025.yaml` — OCC contract with dod_evidence
- `tests/hooks/test_reject_evidence_ui_claims.py` — 8 unit tests
(TDD-first, all pass before implementation was written)
- `tests/hooks/fixtures/evidence_language/` — 6 fixture files covering
all reject/accept/ignore cases

## Hook Behavior

Blocked claim patterns (case-insensitive) in `docs/evidence/**`:
- `UI POST`
- `click`
- `full chain live`
- `end-to-end` / `end to end`

A claim is allowed only when the document also references a Playwright
artifact (`playwright` or `test-results/` appears anywhere in the doc).

## DoD Evidence

```
dod-hook-exists-executable:
  test -x .pre-commit-hooks/reject-evidence-ui-claims.sh
  → PASS (script present and executable)

dod-hook-wired-in-precommit:
  grep -q 'reject-evidence-ui-claims' .pre-commit-config.yaml
  → PASS (hook registered in pre-commit config)

dod-unit-tests-pass:
  uv run pytest tests/hooks/test_reject_evidence_ui_claims.py -v
  → 8 passed in 0.37s

dod-commit-blocked-on-overstatement:
  Hook rejects docs/evidence/*.md with "UI POST" and no Playwright reference
  → EVIDENCE_UI_CLAIM_UNVERIFIED raised (correct behavior)
```

Evidence-Source: OCC#3247
Evidence-Ticket: OMN-13025
Implementation-Head: db97023cf66d47ae4e97a8a1c6d383980b946d56
OCC-Receipt-PR:
OmniNode-ai/onex_change_control#3247

---------

Co-authored-by: jonahgabriel <jonahgabriel@users.noreply.github.com>
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