Skip to content

docs(hook-budget): record probes of each adopted onFailure block row - #11747

Merged
kyle-sexton merged 2 commits into
mainfrom
host-run/9989-onfailure-probes
Nov 1, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
host-run/9989-onfailure-probes

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #9989
Refs: #6755

Summary

Records a host probe of every row that sets onFailure: "block": with node off PATH the matched call is denied with the blocking message, and with node present a normal call runs. Nine of the ten rows are covered. The disk-hygiene PowerShell(*hygiene.py*) row needs a Windows host, so this PR references #9989 and does not close it.

Fix

Adds "Adopted-row probes (melo-desk-001, 2026-10-31)" to docs/contracts/hook-budget/README.md, after the section on which rows set block. #9989 names docs/conventions/hook-budget/README.md, but that page now only links to the contract page, so the table goes on the contract page beside the earlier onFailure probes.

Verification

  • Claude Code 2.1.316, claude -p --plugin-dir <worktree plugin> --permission-mode dontAsk --strict-mcp-config, with the installed copies of the four plugins turned off through --settings. Each session's init event lists only the probed copy.
  • The GitHub MCP rows were matched by a no-op stdio stand-in server named github, so no real GitHub call was made.
  • scripts/check-affected.sh --tests: 12 passed, 4 skipped.
  • scripts/check-changelog-fragments.sh --check-required origin/main: exit 0. The change is docs only, with no plugin change.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 31, 2026 19:41
Each row that sets onFailure: block was probed on Claude Code 2.1.316
with node off PATH (matched call denied with the blocking message) and
with node present (a normal call runs). The disk-hygiene PowerShell row
needs a Windows host and stays unprobed.

Refs: #6755
Refs: #9989

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 31, 2026 23:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T23:46:36.491862Z 9a2875a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9a2875a6f9dd10d2d2ef17e654b506d916895895: 0 finding(s), 0 as inline comments.

Security review: PR #11747

I found no security issues.

The pull request changes one file, docs/contracts/hook-budget/README.md. It adds a section (lines 326–356) that records host probes of the hook rows set to onFailure: "block". The section has:

  • a description of how the probe sessions were set up,
  • a results table,
  • notes on what the probes do and do not cover.

Why there is nothing to report:

  • No changed file matches a trusted-path glob.
  • No code, workflow, action, manifest or trust control changes.
  • No standing instruction is deleted, narrowed or softened. The text only describes behaviour that the hooks.json files already have.
  • No secrets or tokens appear. The probe setup says the GitHub MCP rows used a no-op stand-in server, so no real GitHub call was made.
  • The PR context file contains no embedded instructions aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 9a2875a6f9dd10d2d2ef17e654b506d916895895: 0 finding(s), 0 as inline comments.

Code review: PR #11747, no findings

This PR changes one documentation file, docs/contracts/hook-budget/README.md. It adds a section, "Adopted-row probes (melo-desk-001, 2026-10-31)", below "Which rows set onFailure: "block"". No code, hooks, manifests or changelog fragments change.

What I checked

  • Every row is covered. The new table has the same ten rows that the "These rows set block" table lists, and that onfailure-rows.test.sh pins: five guardrails rows, two disk-hygiene rows, one discovery row and two multi-agent rows. Nine rows have results. The PowerShell(*hygiene.py*) row is marked not probed, the closing paragraph says it still needs a Windows host, and the PR uses Refs: #9989 instead of closing the issue. These agree.
  • The stand-in server is matched. The stdio stand-in is named github, so its tools are mcp__github__push_files, mcp__github__merge_pull_request and mcp__github__add_issue_comment. Those names match the guardrails matchers ^mcp__(plugin_.+_)?github__(push_files|…)$, ^mcp__.+__(merge_pull_request|…)$ and ^mcp__(plugin_.+_)?github__(add_issue_comment|…)$. The probe really exercised those rows.
  • Placement is consistent. The new section is an H3 under the block-rows section, the same way the earlier "onFailure probes (melo-desk-001, 2026-10-29)" section sits under its own. The PR body explains why the table is on the contract page and not on docs/conventions/hook-budget/README.md, which probe: each adopted onFailure row blocks on a missing command and passes a normal call #9989 names.
  • Tests that read this file. onfailure-rows.test.sh scopes this README but only compares hooks.json rows to a hardcoded list. It does not parse the README, so the new table cannot break it.

Closing issues: none. The PR only references #9989 and #6755 (Refs:), so there are no acceptance criteria to check.

Verification: the probe results (denial messages, control outcomes, Claude Code 2.1.316, WSL2) and the check-affected.sh / check-changelog-fragments.sh runs come from the PR author. I have not verified them. I had no shell and ran nothing.

Paved paths, path-scoped rules and plugin-manifest checks: none apply to this docs-only change.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 5621559 Nov 1, 2026
81 of 82 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/9989-onfailure-probes branch November 1, 2026 00:13
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