{
  "schema_version": 1,
  "id": "block-wildcard-agent-permissions",
  "track": "coding",
  "name": "Block Wildcard Agent Permissions",
  "version": "0.0.10",
  "sha256": "821175c32e1301aa7c40448f0ee33ac677d8445448264bb000d8cecbcea48b61",
  "sha256_v1": "6b319df68f03c93626c695d29870c179456efbdf4efb33012be9fd0ed8a38eed",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Blocks agent grants that allow everything: a bare Bash wildcard, a `*` in an allow/alwaysAllow/tools array on the same line, or quoted defaultMode bypassPermissions. Any file is judged. Not caught here: a multi-line array or YAML `- \"*\"` list, an unquoted defaultMode (agent-permissions-scan warns). Runs: commit, agent write, turn's end. Waiver: 'pragma: allowlist broad-agency' same line. Person's commit: honoured. Agent: only if already in HEAD; MCP gateway: never. Agent asks a person.",
  "misses": "a multi-line array or YAML `- \"*\"` list, an unquoted defaultMode (agent-permissions-scan warns).",
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "agent-config"
  ],
  "eval_cases": 17,
  "eval_executed": 17,
  "latest": {
    "version": "0.0.10",
    "date": "2026-10-07",
    "change": "Promoted from draft to production: every test case ran and passed, and no bug report was open. Behaviour unchanged."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "cursor": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "codex": {
      "keyword": "block",
      "says": "blocks 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)"
    },
    "copilot": {
      "keyword": "block",
      "says": "blocks 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)"
    },
    "devin": {
      "keyword": "block",
      "says": "blocks 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)"
    },
    "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/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/block-wildcard-agent-permissions",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A staged Claude settings file allows every tool.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A staged settings file grants a scoped shell command.",
      "command": null
    }
  ]
}
