{
  "id": "capability-spec",
  "version": "1.0.0",
  "objective": "Translate validated goals into machine-testable contracts",
  "permissions": [
    "allow_file_io"
  ],
  "inputs": [
    {
      "file": "QUALITY_GATES.md",
      "critical": true
    },
    {
      "file": "EVIDENCE_LOG.md",
      "critical": true
    }
  ],
  "outputs": [
    {
      "file": "SPEC_CONTRACT.json",
      "validation_gate": "gate-completeness"
    },
    {
      "file": "INTERFACE_DEFINITION.md",
      "validation_gate": "gate-completeness"
    }
  ],
  "events": {
    "emits": [
      "SPEC_UPDATED",
      "SPEC_BREAKING_CHANGE"
    ],
    "consumes": [
      "SOURCE_VALIDATED",
      "GATE_DECISION"
    ]
  },
  "failure_routing": {
    "missing_input": "BLOCK_AND_REQUEST_INFO",
    "gate_failure": "REVERT_TO_PREVIOUS_ROLE"
  }
}
