{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://spec-first.dev/contracts/dual-host-governance/agents-governance.schema.json",
  "title": "spec-first agent governance (light contract)",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "standalone_agents"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "schemaVersion": {
      "const": 1
    },
    "_comment": {
      "type": "string"
    },
    "standalone_agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/standaloneAgentRecord"
      }
    }
  },
  "$defs": {
    "standaloneAgentRecord": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "agent_name",
        "rationale",
        "status"
      ],
      "properties": {
        "agent_name": {
          "type": "string",
          "minLength": 1
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "enum": [
            "active",
            "pending-disposition"
          ]
        }
      }
    }
  }
}
