{
  "schema_version": 1,
  "id": "protect-main-branch",
  "track": "coding",
  "name": "Protect Main Branch",
  "version": "0.0.5",
  "sha256": "0a5d5865b6258b60dea44d05e38bcd58506ac50c13123d35e88a69a598e9aacd",
  "sha256_v1": "4ca67f60ee53bc0549793faa468457e77166404ac497da4e736952cdb9bffbcd",
  "keyword": "advise",
  "word": "advisory",
  "says": "advisory only. It is skill text, and nothing stops a violation",
  "description": "Keeps agents off main and master: a git hook reads the current branch at commit time and parses the refs being pushed at push time. The hook refuses a violation only where it is installed. As skill text alone this is advice, and nothing stops one.",
  "misses": null,
  "where": [
    "text"
  ],
  "groups": [
    "git-hygiene"
  ],
  "eval_cases": 4,
  "eval_executed": 4,
  "latest": {
    "version": "0.0.5",
    "date": "2026-11-09",
    "change": "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."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "advise",
      "says": "advisory only. It is skill text, and nothing stops a violation"
    },
    "cursor": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "codex": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "copilot": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "devin": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "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/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/protect-main-branch",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "The agent is on main and runs git commit.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "The agent is on a feature branch and commits.",
      "command": null
    }
  ]
}
