Chock.sh Build your plugin
Asksv0.0.2 preset: Code hardening

Review Added Scanner Suppressions

Asks on an agent's file writes and at turn end.

Acts on

File write · Turn end

When

Before the file write · at turn end

Tested

44 of 45 pass

In a git repo

At commit

What it does

Asks a person before a change adds a scanner suppression: inline ignore markers (bandit, gosec, ruff S codes, Sonar, Semgrep, ESLint security, Checkov, tfsec, Trivy, KICS, hadolint, cfn_nag, zizmor, gitleaks, detect-secrets, CodeQL, Java/C#/Rust security allows), scanner ignore files and skip keys, a CI scan set to pass on failure. Only added lines; prose skipped. Runs: commit, agent write, turn's end; CI annotates. Line-local, friction not a boundary.

Chock adds friction. It is not a security boundary.

Its label on each agent

The catalog grades each policy on each agent. Pick an agent to build with this policy:

  • Claude Code TestedAsks Asks on an agent's file writes and at turn endBuild →
  • Cursor TestedBlocks Refuses an agent's file writes and refuses at turn end, because this client cannot prompt at either pointBuild →
  • Codex TestedBlocks Refuses an agent's file writes and refuses at turn end, because this client cannot prompt at either point. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)Build →
  • GitHub Copilot TestedBlocks Refuses at turn end only, because this client cannot prompt there. 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)Build →
  • Devin TestedBlocks Refuses at turn end only, because this client cannot prompt there. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)Build →
  • Grok Tested Not graded yet for GrokBuild →
  • goose Tested Not graded yet for gooseBuild →
  • Antigravity Tested Not graded yet for AntigravityBuild →
  • OpenHands Untested Not graded yet for OpenHandsBuild →
  • Kimi Code Untested Not graded yet for Kimi CodeBuild →
  • Factory Droid Untested Not graded yet for Factory DroidBuild →

See it in action

Asks

A commit adds a bandit nosec comment to a subprocess call.

Allowed

A commit adds ordinary Python code with an unrelated noqa.

Both examples are this policy's own test cases.

What it misses

This policy does not state what it misses.

Latest change

0.0.2 · · Title wording only (IR-F40): "Scan Suppression Markers" is now "Review Added Scanner Suppressions". The id, guard and tests are unchanged.