{
  "schema_version": 1,
  "id": "block-hook-bypass-in-files",
  "track": "coding",
  "name": "Block Files That Skip Git Hooks",
  "version": "0.1.2",
  "sha256": "6a64829bce5cd926cf6628869f64bc0b663eca4b849bb68fd5ada079f5a20896",
  "sha256_v1": "de7c839db49184dd97dac42723d03f2f51a4872ce865c905d03f0c14fa21f520",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Friction, not a security boundary: flags lines added to hook launchers and scripts that switch git hooks off -- the hook-skip option on a git commit/push/merge/am/rebase/pull, core.hooksPath set by git config or GIT_CONFIG_*, the husky, lefthook and pre-commit off-switch variables, a pre-commit, lefthook or husky (v8 and older) uninstall -- in .husky/, .githooks/, lefthook, package.json, Makefile, justfile, .envrc, *.sh. Blocks. Misses: split lines, -n.",
  "misses": "split lines, -n.",
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "git-hygiene"
  ],
  "eval_cases": 28,
  "eval_executed": 28,
  "latest": {
    "version": "0.1.2",
    "date": "2026-10-27",
    "change": "Title wording only (IR-F40): \"Block Hook Bypass In Files\" is now \"Block Files That Skip Git Hooks\". The id, guard and tests are unchanged."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "cursor": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "codex": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "copilot": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "devin": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. 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-hook-bypass-in-files",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A package.json prepare script points core.hooksPath at a directory of its own.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A hook script reads core.hooksPath to report where the hooks live.",
      "command": null
    }
  ]
}
