{
  "schema_version": 1,
  "id": "protect-commit-privacy",
  "track": "coding",
  "name": "Protect Commit Privacy",
  "version": "0.2.7",
  "sha256": "1abaa269678a02351a8e8c9ab23b70c021c2da549f622b3c1786d41120f68d36",
  "sha256_v1": "dde85b46adcf2e97488cabcd8a2e86a2507ba67873399c4277bfffe4860128f8",
  "keyword": "block",
  "word": "blocks",
  "says": "refuses a matched shell command before it runs",
  "description": "Keeps the development conversation out of git history. Guard refuses `git commit` and `gh pr create|edit` whose message or body (inline -m/-b, -F/--file/--body-file, heredoc on -F -) holds a process-leak marker (session link, 'user asked', ...); commands behind cd, sh -c, sudo, env are read. A commit-msg hook applies the same markers to the recorded message. Narrow deny-list. No waiver: a legitimate phrase needs a person to remove it from MARKERS in the guard; an agent asks the person.",
  "misses": null,
  "where": [
    "command"
  ],
  "groups": [
    "git-hygiene"
  ],
  "eval_cases": 35,
  "eval_executed": 35,
  "latest": {
    "version": "0.2.7",
    "date": "2026-11-09",
    "change": "Changelog order only (IR-F46): entries had been added at the top of a list that ran oldest-first, so it rose and fell by version; they now run newest-first throughout. No entry's text or version, and no rule, guard or eval, changed. Patch bump because the manifest is part of the published pack hash."
  },
  "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"
    },
    "codex": {
      "keyword": "block",
      "says": "refuses a matched shell command before it runs. 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. 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. 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/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/protect-commit-privacy",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "An agent commits with a message that narrates who asked for the change.",
      "command": "git commit -m \"quick fix because the user asked for it in review\""
    },
    {
      "word": "Allowed",
      "prompt": "An agent commits with a message that describes the change itself.",
      "command": "git commit -m \"fix(hooks): emit LF on Windows for generated dispatchers\""
    }
  ]
}
