{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "anu_v3_1_hold_for_chair_packet.schema.json",
  "title": "ANU v3.1 HOLD-for-Chair Packet",
  "description": "Emitted by micro refinement loop when any of the 8 safety gates trigger (critical_7, security_high_or_critical, permission_expansion, github_write_required, dev_bot_reactivation_required, real_write_required, forbidden_write_target, scope_expansion). Source: ANU v3 master spec section 5.8. ANCHOR-5: must name trigger gate via hold_reason + triggered_gates.",
  "type": "object",
  "required": [
    "schema",
    "task_id",
    "hold_reason",
    "critical_7",
    "triggered_gates",
    "decision_items",
    "recommended_next_action"
  ],
  "properties": {
    "schema": {"type": "string", "const": "anu_v3.hold_for_chair_packet.v1"},
    "task_id": {"type": "string", "pattern": "^task-[0-9A-Za-z_+.-]+$"},
    "hold_reason": {
      "type": "string",
      "enum": [
        "CRITICAL_7",
        "SECURITY_HIGH",
        "PERMISSION_EXPANSION",
        "GITHUB_WRITE_REQUIRED",
        "DEV_BOT_REACTIVATION_REQUIRED",
        "REAL_WRITE_REQUIRED",
        "FORBIDDEN_WRITE_TARGET",
        "SCOPE_EXPANSION",
        "ALLOWED_WRITE_PATH_VIOLATION",
        "REPEATED_DISAGREEMENT",
        "IMPOSSIBLE_GOAL"
      ]
    },
    "critical_7": {"type": "boolean"},
    "triggered_gates": {
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string",
        "enum": [
          "critical_7",
          "security_high_or_critical",
          "permission_expansion",
          "github_write_required",
          "dev_bot_reactivation_required",
          "real_write_required",
          "forbidden_write_target",
          "scope_expansion",
          "allowed_write_path_violation"
        ]
      }
    },
    "decision_items": {
      "type": "array",
      "maxItems": 3,
      "items": {"type": "object"}
    },
    "recommended_next_action": {
      "type": "string",
      "enum": ["ASK_CHAIR"]
    },
    "rounds": {"type": "integer", "minimum": 0},
    "evidence_paths": {"type": "array", "items": {"type": "string"}},
    "offending_paths": {"type": "array", "items": {"type": "string"}},
    "generated_at": {"type": "string"}
  },
  "additionalProperties": false
}
