{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://formalrv-resource-leaderboard.tintedlinen32.chatgpt.site/data/submission.schema.json",
  "title": "FormalRV proposed proof submission",
  "description": "Version 0.1 proposal format. This schema defines a research packet; it does not certify a proof or imply an upload service exists.",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "auditId", "baseRevision", "claim", "premises", "artifacts", "reproduction"],
  "properties": {
    "schemaVersion": { "const": 1 },
    "auditId": { "type": "string", "minLength": 1 },
    "baseRevision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
    "claim": { "type": "string", "minLength": 1 },
    "premises": { "type": "array", "items": { "type": "string" } },
    "artifacts": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["path", "sha256", "kind"], "properties": { "path": { "type": "string", "minLength": 1 }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "kind": { "enum": ["patch", "lean-proof", "machine-input", "compiler-certificate", "vm-receipt", "report"] } } } },
    "reproduction": { "type": "object", "additionalProperties": false, "required": ["toolchain", "commands", "expectedResult"], "properties": { "toolchain": { "type": "object", "additionalProperties": { "type": "string" } }, "commands": { "type": "array", "minItems": 1, "items": { "type": "array", "minItems": 1, "items": { "type": "string" } } }, "expectedResult": { "type": "string", "minLength": 1 } } },
    "contributor": { "type": "string" },
    "relatedObligations": { "type": "array", "items": { "type": "string" } }
  }
}
