{ "$defs": { "Finding": { "additionalProperties": false, "properties": { "code": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Code", "type": "string" }, "message": { "maxLength": 1000, "minLength": 1, "title": "Message", "type": "string" }, "path": { "anyOf": [ { "maxLength": 256, "type": "string" }, { "type": "null" } ], "default": null, "title": "Path" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" } }, "required": [ "code", "message" ], "title": "Finding", "type": "object" }, "ProposalReceipt": { "additionalProperties": false, "properties": { "accepted_node_ids": { "default": [], "items": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "type": "string" }, "title": "Accepted Node Ids", "type": "array" }, "commit_id": { "anyOf": [ { "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$", "type": "string" }, { "type": "null" } ], "default": null, "title": "Commit Id" }, "decided_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "title": "Decided At" }, "findings": { "default": [], "items": { "$ref": "#/$defs/Finding" }, "title": "Findings", "type": "array" }, "outcome": { "enum": [ "accepted", "held", "rejected", "validation-failed" ], "title": "Outcome", "type": "string" }, "payload_digest": { "pattern": "^[a-f0-9]{64}$", "title": "Payload Digest", "type": "string" }, "proposal_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Proposal Id", "type": "string" }, "revision": { "minimum": 1, "title": "Revision", "type": "integer" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "state": { "$ref": "#/$defs/ProposalState" } }, "required": [ "proposal_id", "revision", "payload_digest", "state", "outcome" ], "title": "ProposalReceipt", "type": "object" }, "ProposalState": { "enum": [ "staged", "validating", "needs-review", "accepted", "rejected", "withdrawn" ], "title": "ProposalState", "type": "string" }, "RunCoverage": { "additionalProperties": false, "properties": { "excluded": { "default": [], "items": { "$ref": "#/$defs/RunCoverageItem" }, "maxItems": 10000, "title": "Excluded", "type": "array" }, "included": { "default": [], "items": { "type": "string" }, "maxItems": 10000, "title": "Included", "type": "array" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "selected": { "default": [], "items": { "type": "string" }, "maxItems": 10000, "title": "Selected", "type": "array" }, "skipped": { "default": [], "items": { "$ref": "#/$defs/RunCoverageItem" }, "maxItems": 10000, "title": "Skipped", "type": "array" } }, "title": "RunCoverage", "type": "object" }, "RunCoverageItem": { "additionalProperties": false, "properties": { "item": { "maxLength": 500, "minLength": 1, "title": "Item", "type": "string" }, "reason": { "maxLength": 1000, "minLength": 1, "title": "Reason", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" } }, "required": [ "item", "reason" ], "title": "RunCoverageItem", "type": "object" }, "RunOperationReference": { "additionalProperties": false, "properties": { "input_sha256": { "pattern": "^[a-f0-9]{64}$", "title": "Input Sha256", "type": "string" }, "operation_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Operation Id", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "status": { "enum": [ "pending", "uncertain", "complete", "failed" ], "title": "Status", "type": "string" }, "tool_name": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Tool Name", "type": "string" } }, "required": [ "operation_id", "tool_name", "input_sha256", "status" ], "title": "RunOperationReference", "type": "object" }, "RunProposalReference": { "additionalProperties": false, "properties": { "proposal_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Proposal Id", "type": "string" }, "receipt": { "anyOf": [ { "$ref": "#/$defs/ProposalReceipt" }, { "type": "null" } ], "default": null }, "revision": { "minimum": 1, "title": "Revision", "type": "integer" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "status": { "enum": [ "staged", "evaluated", "eligible", "needs-review", "invalid", "conflict", "publishing", "accepted", "rejected", "withdrawn", "uncertain" ], "title": "Status", "type": "string" } }, "required": [ "proposal_id", "revision", "status" ], "title": "RunProposalReference", "type": "object" }, "RunSourceReference": { "additionalProperties": false, "properties": { "artifact_sha256": { "anyOf": [ { "pattern": "^[a-f0-9]{64}$", "type": "string" }, { "type": "null" } ], "default": null, "title": "Artifact Sha256" }, "extraction_id": { "anyOf": [ { "pattern": "^[a-f0-9]{64}$", "type": "string" }, { "type": "null" } ], "default": null, "title": "Extraction Id" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "source_revision_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Source Revision Id", "type": "string" }, "status": { "enum": [ "selected", "captured", "extracted", "unavailable", "failed" ], "title": "Status", "type": "string" } }, "required": [ "source_revision_id", "status" ], "title": "RunSourceReference", "type": "object" }, "RunState": { "enum": [ "active", "completed", "blocked" ], "title": "RunState", "type": "string" } }, "additionalProperties": false, "properties": { "budgets": { "maxProperties": 100, "patternProperties": { "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": { "minimum": 0, "type": "integer" } }, "propertyNames": { "maxLength": 128, "minLength": 1 }, "title": "Budgets", "type": "object" }, "coverage": { "$ref": "#/$defs/RunCoverage" }, "expected_revision": { "maximum": 2147483646, "minimum": 0, "title": "Expected Revision", "type": "integer" }, "output_hashes": { "default": [], "items": { "pattern": "^[a-f0-9]{64}$", "type": "string" }, "maxItems": 1000, "title": "Output Hashes", "type": "array" }, "pending_operations": { "default": [], "items": { "$ref": "#/$defs/RunOperationReference" }, "maxItems": 1000, "title": "Pending Operations", "type": "array" }, "proposals": { "default": [], "items": { "$ref": "#/$defs/RunProposalReference" }, "maxItems": 1000, "title": "Proposals", "type": "array" }, "run_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Run Id", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "sources": { "default": [], "items": { "$ref": "#/$defs/RunSourceReference" }, "maxItems": 500, "title": "Sources", "type": "array" }, "stage": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Stage", "type": "string" }, "state": { "$ref": "#/$defs/RunState", "default": "active" } }, "required": [ "run_id", "expected_revision", "stage" ], "title": "RunCheckpointRequest", "type": "object" }