---
id: protect-commit-privacy
track: coding
version: 0.2.7
label: blocks
keyword: block
where: command
sha256: 1abaa269678a02351a8e8c9ab23b70c021c2da549f622b3c1786d41120f68d36
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/protect-commit-privacy
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# Protect Commit Privacy

protect-commit-privacy · version 0.2.7

Blocks — Refuses a matched shell command before it runs. Chock adds friction. It is not a security boundary. 

In a git repo: at commit (Chock refuses the commit, locally and in CI.)



## What it does

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.

## Its label on each agent

- Claude Code (tested): Blocks — Refuses a matched shell command before it runs. Builder: /coding/builder/#client=claude-code&p=protect-commit-privacy
- Cursor (tested): Blocks — Refuses a matched shell command before it runs. Builder: /coding/builder/#client=cursor&p=protect-commit-privacy
- Codex (tested): Blocks — 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). Builder: /coding/builder/#client=codex&p=protect-commit-privacy
- GitHub Copilot (tested): Blocks — 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). Builder: /coding/builder/#client=copilot&p=protect-commit-privacy
- Devin (tested): Blocks — Refuses a matched shell command before it runs. If the hook errors, the action goes through (vendor docs only, not witnessed). Builder: /coding/builder/#client=devin&p=protect-commit-privacy
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=protect-commit-privacy
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=protect-commit-privacy
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=protect-commit-privacy
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=protect-commit-privacy
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=protect-commit-privacy
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=protect-commit-privacy

## What it misses

This policy does not state what it misses.

## Examples

- Refused: An agent commits with a message that narrates who asked for the change. — `git commit -m "quick fix because the user asked for it in review"`
- Allowed: An agent commits with a message that describes the change itself. — `git commit -m "fix(hooks): emit LF on Windows for generated dispatchers"`

## Latest change

0.2.7 · 2026-11-09 — 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.

## Provenance

- Tested by 35 of 35 cases run automatically
- SHA-256: `1abaa269678a02351a8e8c9ab23b70c021c2da549f622b3c1786d41120f68d36`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/protect-commit-privacy (catalog path `base/protect-commit-privacy`)
- Presets: Git hygiene
- JSON: `/api/coding/policies/protect-commit-privacy.json`
- Report a problem: https://chock.sh/report/?policy=protect-commit-privacy&version=0.2.7&page=%2Fcoding%2Fpolicies%2Fprotect-commit-privacy%2F
