{
  "$schema": "./configs.schema.json",
  "_comment": "Drop-in starter for `.hivemind/configs.json` governance rules. Copy into your config under `governance.rules[]`. Edit the values to fit your project. Schema source: src/schema-kernel/hivemind-configs.schema.ts (GovernanceRuleSchema).",
  "_rule_ids_consumed_by_engine": {
    "R1-malformed-task": "block a native task call missing subagent_type",
    "R2-child-recursive-task": "block / require JIT for recursive task in child sessions",
    "R4-delegate-task-code-intent": "block delegate-task whose prompt looks like code editing",
    "default": "applied to anything that doesn't match a higher-priority rule"
  },
  "governance_rules": [
    {
      "id": "R1-malformed-task",
      "condition": { "toolNames": ["task"] },
      "action":   { "type": "block" },
      "enabled":  true
    },
    {
      "id": "R2-child-recursive-task",
      "condition": { "toolNames": ["task"], "depth": { "min": 1 } },
      "action":   { "type": "needs_jit_grant" },
      "enabled":  true
    },
    {
      "id": "R4-delegate-task-code-intent",
      "condition": { "toolNames": ["delegate-task"] },
      "action":   { "type": "block" },
      "enabled":  true
    },
    {
      "id": "default",
      "condition": {},
      "action":   { "type": "allow" },
      "enabled":  true
    }
  ]
}
