Skip to content

docs(hook-budget): record onFailure probes on 2.1.294, CI's validator and a missing node - #11133

Merged
kyle-sexton merged 2 commits into
mainfrom
host-run/9967-onfailure-probes
Oct 30, 2026
Merged

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

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #9967
Refs: #6755

Summary

#6755 asked whether "onFailure": "block" on a plugin hook row is ignored, a load error, or honored on a pre-2.1.295 client, what CI's pinned validator says about it, and whether it denies a matched call when node is missing. This records the answers in the hook-budget contract, one row per probe with the client version.

Fix

  • New onFailure probes subsection under the exec-form sweep in docs/contracts/hook-budget/README.md: 2.1.294 and 2.1.312 (CI pin) plugin validate accept the key silently; a 2.1.294 session loads the row and ignores the key (the Bash call runs); on 2.1.314 the key denies the call both when the hook script fails and when node is not on PATH, while the control row lets the call through.
  • The Prerequisite bullet now says a failed launch stays non-blocking unless the row sets "onFailure": "block" on 2.1.295 or later, linking the probes.

Verification

  • Probes run on the operator host (WSL2 Linux) with two throwaway fixture plugins, block and control, each a PreToolUse Bash row whose script exits 1; each session asked for one touch of a marker file, and the marker's presence showed whether the call ran. 2.1.294 was installed from npm into a throwaway directory; the global install was untouched.
  • bash scripts/check-changelog-fragments.sh --check-required origin/main exited 0; scripts/check-affected.sh --tests on the committed head: 12 passed, 4 skipped.
  • Left out: a second matched call per session; each session made one.

Related

🤖 Generated with Claude Code

@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 03:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T03:13:45.492680Z a8694a8 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-review reviewed a8694a8233eea50252e14d7c3b3c3d766d778e2a: 0 finding(s), 0 as inline comments.

No findings. This PR changes one docs file, docs/contracts/hook-budget/README.md: it adds an onFailure probes subsection and amends the Prerequisite bullet.

I checked these against the repository:

  • Anchor link: the new link #onfailure-probes-melo-desk-001-2026-10-29 matches the heading's GitHub slug.
  • CI validator version: the probe table names 2.1.312 as CI's pinned validator, and package.json line 11 pins @anthropic-ai/claude-code at 2.1.312.
  • File location: the closing issue names docs/conventions/hook-budget/README.md, but that page is now a moved-stub pointing at docs/contracts/hook-budget/. Editing the contracts file is correct.
  • Prerequisite wording: the amended bullet stays consistent with the table. A failed launch is non-blocking unless "onFailure": "block" is set on 2.1.295 or later, and older clients ignore the key.

Closing issue #9967 criteria:

  • One row per probe with client version, command and result: met. The table has seven rows, covering the older client for both validate and session, CI's validator, and the missing interpreter with and without onFailure.
  • Refs: #6755 on the PR: met. The PR body carries it.
  • check-changelog-fragments.sh --check-required origin/main exits 0: author-claimed, not run by me and unverified.

The probe results themselves are author-claimed. I did not run any claude sessions, so the recorded observations are unverified.

Spend: none. This is a docs-only change.

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

I read the whole diff (.claude-lane/pr.diff) and the PR context. The change is documentation only and touches one file, docs/contracts/hook-budget/README.md. It adds an "onFailure probes" subsection and edits the Prerequisite bullet to say a failed launch stays non-blocking unless the row sets "onFailure": "block" on Claude Code 2.1.295 or later.

  • It changes no workflow, action, script, manifest, hook, permission, token scope, kill switch, trusted-actor list or merge hold. It touches none of the trust controls the skill lists.
  • It deletes, narrows and softens no standing instruction. It adds a caveat that makes the documented hook-budget guard stance more accurate: older clients ignore "block" and fail open, and a missing node is closed only on current clients.
  • It adds no plugin manifest change, so there are no manifest <field> lines.
  • Nothing in the PR text asks the lane to pass the PR, skip a check or drop a finding.
  • The probe table describes throwaway fixtures run on the operator host. The diff adds no code that runs them.
  • The PR makes no billing or paid-plan change. The probes ran on the existing subscription, so no cost hold applies.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit abaf776 Oct 30, 2026
87 of 89 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/9967-onfailure-probes branch October 30, 2026 04:20
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.

probe: onFailure block on a pre-2.1.295 client, with node missing, and under CI's pinned validator

1 participant