{
  "schema_version": 1,
  "id": "block-no-verify",
  "track": "coding",
  "name": "Block Skipping Git Hooks",
  "version": "0.5.4",
  "sha256": "45055c8896e8401c430fbf27f60a83194fd8a6aad93e75442b3aae3b0146c330",
  "sha256_v1": "480069830701ed22c149b956dbc6afdda664e587795eb702b11d028bf5c68887",
  "keyword": "block",
  "word": "blocks",
  "says": "refuses a matched shell command before it runs",
  "description": "Friction, not a security boundary: refuses agent commands that skip git hooks. --no-verify on commit/push/merge/am/rebase/pull/cherry-pick/revert, -n on commit/am; core.hooksPath set by -c, git config or GIT_CONFIG_*; HUSKY=0, SKIP=, LEFTHOOK=0 and kin; hook manager uninstall; aliases and rebase --exec defined in the command. Asks on plumbing, unset hooksPath, another GIT_DIR and config files. Refuses person-only CHOCK_*/marker changes. Mandatory. Misses: older aliases, scripts, $VARs.",
  "misses": "older aliases, scripts, $VARs.",
  "where": [
    "command"
  ],
  "groups": [
    "git-hygiene"
  ],
  "eval_cases": 116,
  "eval_executed": 116,
  "latest": {
    "version": "0.5.4",
    "date": "2026-10-30",
    "change": "Fix for Windows (IR-F45; tests in test_block_no_verify_launcher.py). A direct write to the repository config with `--file .git/config` was allowed there because the path check compared a backslash-separated path with `.git/config`; it now compares with `/` separators, so the write is refused on Windows as elsewhere. The comparison also ignores case, since Windows and default macOS file systems fold it: `.GIT/CONFIG` is the same file."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "block",
      "says": "refuses a matched shell command before it runs"
    },
    "cursor": {
      "keyword": "block",
      "says": "refuses a matched shell command before it runs. Where its description says it asks, it asks"
    },
    "codex": {
      "keyword": "block",
      "says": "refuses a matched shell command before it runs. Where its description says it asks, it refuses, because this client cannot prompt before a shell command. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "copilot": {
      "keyword": "block",
      "says": "refuses a matched shell command before it runs. Where its description says it asks, it asks in VS Code and refuses in Copilot CLI, because it cannot prompt there. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "devin": {
      "keyword": "block",
      "says": "refuses a matched shell command before it runs. Where its description says it asks, it refuses, because this client cannot prompt before a shell command. If the hook errors, the action goes through (vendor docs only, not witnessed)"
    },
    "grok": {
      "keyword": "ungraded",
      "says": "Not graded yet for Grok"
    },
    "goose": {
      "keyword": "ungraded",
      "says": "Not graded yet for goose"
    },
    "antigravity": {
      "keyword": "ungraded",
      "says": "Not graded yet for Antigravity"
    },
    "openhands": {
      "keyword": "ungraded",
      "says": "Not graded yet for OpenHands"
    },
    "kimi-code": {
      "keyword": "ungraded",
      "says": "Not graded yet for Kimi Code"
    },
    "factory-droid": {
      "keyword": "ungraded",
      "says": "Not graded yet for Factory Droid"
    }
  },
  "source_url": "https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/block-no-verify",
  "enforces": "best-effort (pre-tool-use, once hooks are installed; fails open if the hook crashes)",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A request asks the agent to run git commit --no-verify.",
      "command": "git commit --no-verify -m wip"
    },
    {
      "word": "Allowed",
      "prompt": "A request asks the agent to run git commit after all checks pass.",
      "command": "git commit -m done"
    }
  ]
}
