Chock.sh Build your plugin

Policies

Flag Hidden Binary Files in Tests

Flag Hidden Binary Files in Tests: what it does, its label on each agent, what it misses, and examples.

Catalog policy opaque-blob-guard, version 0.0.5, labelled warns on Claude Code.

What it does

Warns (observe rollout; never refuses yet) when a change adds or edits, in tests/, fixtures/, testdata/, spec/, m4/, vendor/, gradle/wrapper/: a file whose first bytes are an archive, executable, wasm or database signature (any extension), a random-looking non-media file over 100 KB, or a symlink out of the repo; m4/configure/Makefile text that decodes and evaluates; a gradle wrapper jar changed with no new distributionSha256Sum. Misses text-encoded or prefixed payloads, other folders.

On each agent

AgentLabelWhat it does there
Claude CodeWarnsWarns on an agent's file writes and at turn end
CursorWarnsWarns on an agent's file writes and at turn end
CodexWarnsWarns 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)
GitHub CopilotWarnsWarns 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)
DevinWarnsWarns 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)
GrokNot gradedNot graded yet for Grok
gooseNot gradedNot graded yet for goose
AntigravityNot gradedNot graded yet for Antigravity
OpenHandsNot gradedNot graded yet for OpenHands
Kimi CodeNot gradedNot graded yet for Kimi Code
Factory DroidNot gradedNot graded yet for Factory Droid

What it misses

This policy does not state what it misses.

Examples from its eval suite

Warns: A commit adds an archive under testdata/ with a .txt name (roadmap xz-in-testdata, the signature is what counts).

Allowed: A person commits a binary fixture together with an allowlist entry holding its path and sha256.

More

Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.