---
id: registry-config
track: coding
version: 0.0.4
label: blocks
keyword: block
where: write turn-end
sha256: 71c4c5f35963b2fcfbb05ac77fc8938e7b547351775ef93feb68a01feaabfebf
source: https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/registry-config
catalog_ref: 1e60d211c1bb767152c6ab0167932da06ab3a10f
---

# Block Unsafe Package Registry Settings

registry-config · version 0.0.4

Blocks — Blocks on an agent's file writes and at turn end. 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

Refuses package-manager config that redirects installs or weakens them: literal tokens, http or unlisted registry hosts (parsed, so lookalike and userinfo spellings fail), TLS or checksum checks off, install scripts on (npm, Yarn, pnpm, Bun, pip, uv, Poetry, conda, Go, Cargo, NuGet, Maven, Bundler, Composer, Hex, Dependabot); asks on extra indexes, replaces, no cooldown. Added only. Ship observe first. Friction, not a boundary.

## Its label on each agent

- Claude Code (tested): Blocks — Blocks on an agent's file writes and at turn end. Builder: /coding/builder/#client=claude-code&p=registry-config
- Cursor (tested): Blocks — Blocks on an agent's file writes and at turn end. Where its description says it asks, it refuses at both points, because this client cannot prompt at either point. Builder: /coding/builder/#client=cursor&p=registry-config
- Codex (tested): Blocks — Blocks on an agent's file writes and at turn end. Where its description says it asks, it refuses at both points, 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). Builder: /coding/builder/#client=codex&p=registry-config
- GitHub Copilot (tested): Blocks — Blocks at turn end only. It does not check a file write when it happens. Where its description says it asks, it refuses at turn end, because this client cannot prompt there. 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=registry-config
- Devin (tested): Blocks — Blocks at turn end only. It does not check a file write when it happens. Where its description says it asks, it refuses at turn end, because this client cannot prompt there. If the hook errors, the action goes through (vendor docs only, not witnessed). Builder: /coding/builder/#client=devin&p=registry-config
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=registry-config
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=registry-config
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=registry-config
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=registry-config
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=registry-config
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=registry-config

## What it misses

This policy does not state what it misses.

## Examples

- Refused: A commit adds an npm auth token written out in .npmrc (roadmap B npmrc-authtoken-literal).
- Allowed: A commit points .npmrc at an internal https mirror the committed allowlist file names (roadmap A https-internal-mirror).

## Latest change

0.0.4 · 2026-10-27 — Title wording only (IR-F40): "Registry Config" is now "Block Unsafe Package Registry Settings". The id, guard and tests are unchanged.

## Provenance

- Tested by 61 of 61 cases run automatically
- SHA-256: `71c4c5f35963b2fcfbb05ac77fc8938e7b547351775ef93feb68a01feaabfebf`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/1e60d211c1bb767152c6ab0167932da06ab3a10f
- Source: https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/registry-config (catalog path `base/registry-config`)
- Presets: Packages and supply chain
- JSON: `/api/coding/policies/registry-config.json`
- Report a problem: https://chock.sh/report/?policy=registry-config&version=0.0.4&page=%2Fcoding%2Fpolicies%2Fregistry-config%2F
