{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "spec-first ai dev benchmark fixtures result",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "generated_at",
    "suite_id",
    "passed",
    "advisory",
    "fixtures",
    "failures"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "v1"
    },
    "generated_at": {
      "type": "string"
    },
    "suite_id": {
      "type": "string",
      "const": "ai-dev-benchmark-fixtures"
    },
    "passed": {
      "type": "boolean"
    },
    "advisory": {
      "type": "boolean",
      "const": true
    },
    "fixtures": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "fixture_id",
          "status",
          "reason_code",
          "artifact_paths",
          "advisory",
          "validation_commands_status",
          "validation_commands"
        ],
        "properties": {
          "fixture_id": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "passed",
              "failed"
            ]
          },
          "reason_code": {
            "type": "string",
            "minLength": 1
          },
          "artifact_paths": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "advisory": {
            "type": "boolean",
            "const": true
          },
          "validation_commands_status": {
            "type": "string",
            "const": "declared_only"
          },
          "validation_commands": {
            "type": "array",
            "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"
              }
            }
          }
        }
      }
    },
    "failures": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "fixture_id",
          "reason_code",
          "message",
          "artifact_paths"
        ],
        "properties": {
          "fixture_id": {
            "type": "string",
            "minLength": 1
          },
          "reason_code": {
            "type": "string",
            "minLength": 1
          },
          "message": {
            "type": "string",
            "minLength": 1
          },
          "artifact_paths": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      }
    }
  }
}
