{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "spec-first ai dev benchmark fixture manifest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "fixture_id",
    "scenario_type",
    "prompt_path",
    "repo_path",
    "expected_workflows",
    "expected_changed_paths",
    "expected_artifacts",
    "validation_commands",
    "quality_signals"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "v1"
    },
    "fixture_id": {
      "type": "string",
      "minLength": 1
    },
    "scenario_type": {
      "type": "string",
      "enum": [
        "api-contract",
        "docs-only",
        "cli-bugfix",
        "multi-module-refactor"
      ]
    },
    "prompt_path": {
      "type": "string",
      "minLength": 1
    },
    "repo_path": {
      "type": "string",
      "minLength": 1
    },
    "expected_workflows": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "expected_changed_paths": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "expected_artifacts": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "path",
          "kind",
          "owner"
        ],
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "doc",
              "test",
              "workflow-summary",
              "quality-gate-result"
            ]
          },
          "owner": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "validation_commands": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "quality_signals": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "semantic_review": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "artifact_path",
        "review_mode",
        "status"
      ],
      "properties": {
        "artifact_path": {
          "type": "string",
          "minLength": 1
        },
        "review_mode": {
          "type": "string",
          "enum": [
            "llm-review-pass",
            "workflow-output-review"
          ]
        },
        "status": {
          "type": "string",
          "const": "recorded"
        }
      }
    },
    "degraded_mode_expectations": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "reason_code",
        "fallback",
        "evidence"
      ],
      "properties": {
        "reason_code": {
          "type": "string",
          "minLength": 1
        },
        "fallback": {
          "type": "string",
          "minLength": 1
        },
        "evidence": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    }
  }
}
