Daily harness signal · October 22, 2026

Your guard can fail
and still exit successfully.

One implementation lesson · Internal hook failures

A hook can start, lose its JSON parser, and still return success. Make internal inspection failures explicit denials; the harness cannot block an error the script has hidden.

Evergreen · report October 17, 2026 · earlier report August 18

Distinguish “inspection passed” from “inspection never happened”

Use when

An existing synchronous PreToolUse guard uses external helpers to read, decode, or match a command. Pocock’s frozen Git guard leaves jq unchecked: missing parser, empty command, no pattern match, exit zero.

Action

In a separately approved hook change, check parser availability, stdin read status, JSON decoding, and a nonempty string tool_input.command before matching. On any failure, print a bounded, nonsecret diagnostic to stderr and exit 2. Check every normalizer and matcher status; helper errors are not ordinary no-match results.

Retain the reviewed command policy and stronger permissions. Use onFailure:"block" for harness-visible failures, but do not expect it to catch empty stdout plus exit zero. That result means no hook decision, not approval; normal permission checks still apply.

Acceptance check

In separately authorized disposable fixtures, replace real Git effects with an inert dispatch counter. Exercise the actual hook registration and launcher, not only the script. Missing jq, failed input read, malformed JSON, absent, empty, or wrong-type command, and injected matcher failure must each produce a visible block with zero dispatches.

A healthy forbidden command must also block; a healthy, otherwise-permitted control must reach its harmless handler. The old unchecked-parser version must fail this oracle. Retain deployed versions, hook invocation, redacted payloads, statuses, diagnostics, and effect counts. Never run a real push, reset, or cleanup to test this.

Evidence

August and October reports identify the same unchecked assignment; retrieved upstream source confirms the fallthrough. The October fork adds dependency and parse-status checks. Official hook documentation confirms exit-two blocking and exit-zero no-decision semantics.

Caveat

This is not a shipped upstream repair. The skill is frozen and excluded from the plugin. The fork’s jq -er does not fully validate command type, and later helper failures remain unchecked. Its passing cases are author-reported, not an inspected committed suite. Regex normalization is not shell parsing or containment. The proposed fixtures remain unexecuted; no skill, hook, dependency, or configuration was changed.

Compact source notes

  1. nabeelkhawaja3-hash, #1293, October 17, 2026; mtu-soft-matter, #898, August 18. Exact failure recipes, not local execution receipts. October triage is explicitly AI-generated and corrects the reporter’s GIT_DIR-prefix claim. Issue metadata still says open despite “closing wontfix” comments.
  2. Upstream guard, history, and frozen policy, inspected today; retrieved history ends April 28, not proof of live latest. October 17 fork commit changes script and prose only; its pinned source was inspected, not executed.
  3. Claude hooks reference and jq 1.8 manual, undated, retrieved today. onFailure requires Claude Code 2.1.295+; jq’s -e checks output truthiness, not string type. Source semantics: confidence_confirmed. Proposed deployment procedure: confidence_likely.
  4. Anchor lens: unchecked parser, explicit fallthrough, documented exit contracts. Unity lens: preserve inspection failure across the policy boundary. A dummy dispatch after inspection failure, or a broken permitted control, falsifies acceptance. This complements harness-level failure handling; it does not authorize installation or skill edits.