|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "urn:srcos:agent-machine:schema:release-evidence-bundle:v0.1.0", |
| 4 | + "title": "ReleaseEvidenceBundle", |
| 5 | + "description": "Secret-free release evidence bundle tying together validation proof, commit identity, schema inventory, rendered artifact digests, supply-chain posture, and known blockers.", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": false, |
| 8 | + "required": [ |
| 9 | + "specVersion", |
| 10 | + "id", |
| 11 | + "kind", |
| 12 | + "release", |
| 13 | + "source", |
| 14 | + "validation", |
| 15 | + "inventories", |
| 16 | + "renderedArtifacts", |
| 17 | + "supplyChain", |
| 18 | + "readiness", |
| 19 | + "knownBlockers", |
| 20 | + "receiptSafety", |
| 21 | + "generatedAt" |
| 22 | + ], |
| 23 | + "properties": { |
| 24 | + "specVersion": { "type": "string", "const": "0.1.0" }, |
| 25 | + "id": { |
| 26 | + "type": "string", |
| 27 | + "pattern": "^urn:srcos:agent-machine:release-evidence-bundle:[a-z0-9][a-z0-9-]*$" |
| 28 | + }, |
| 29 | + "kind": { "type": "string", "const": "ReleaseEvidenceBundle" }, |
| 30 | + "release": { |
| 31 | + "type": "object", |
| 32 | + "additionalProperties": false, |
| 33 | + "required": ["name", "maturity", "productionReady"], |
| 34 | + "properties": { |
| 35 | + "name": { "type": "string" }, |
| 36 | + "maturity": { "type": "string", "enum": ["prototype", "bootstrap-ready", "release-candidate", "production-blocked", "production-ready"] }, |
| 37 | + "productionReady": { "type": "boolean" }, |
| 38 | + "notes": { "type": "array", "items": { "type": "string" } } |
| 39 | + } |
| 40 | + }, |
| 41 | + "source": { |
| 42 | + "type": "object", |
| 43 | + "additionalProperties": false, |
| 44 | + "required": ["repository", "branch", "commitSha"], |
| 45 | + "properties": { |
| 46 | + "repository": { "type": "string" }, |
| 47 | + "branch": { "type": "string" }, |
| 48 | + "commitSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" }, |
| 49 | + "pullRequest": { "type": ["integer", "null"], "minimum": 1 } |
| 50 | + } |
| 51 | + }, |
| 52 | + "validation": { |
| 53 | + "type": "object", |
| 54 | + "additionalProperties": false, |
| 55 | + "required": ["canonicalCommand", "status", "workflowRunId", "workflowJobName"], |
| 56 | + "properties": { |
| 57 | + "canonicalCommand": { "type": "string" }, |
| 58 | + "status": { "type": "string", "enum": ["passed", "failed", "unknown", "not-run"] }, |
| 59 | + "workflowRunId": { "type": ["integer", "null"], "minimum": 1 }, |
| 60 | + "workflowJobName": { "type": ["string", "null"] }, |
| 61 | + "validatedAt": { "type": ["string", "null"] } |
| 62 | + } |
| 63 | + }, |
| 64 | + "inventories": { |
| 65 | + "type": "object", |
| 66 | + "additionalProperties": false, |
| 67 | + "required": ["schemas", "examples", "docs"], |
| 68 | + "properties": { |
| 69 | + "schemas": { "$ref": "#/$defs/digestedFileList" }, |
| 70 | + "examples": { "$ref": "#/$defs/digestedFileList" }, |
| 71 | + "docs": { "$ref": "#/$defs/digestedFileList" } |
| 72 | + } |
| 73 | + }, |
| 74 | + "renderedArtifacts": { |
| 75 | + "type": "array", |
| 76 | + "items": { |
| 77 | + "type": "object", |
| 78 | + "additionalProperties": false, |
| 79 | + "required": ["name", "artifactKind", "digest"], |
| 80 | + "properties": { |
| 81 | + "name": { "type": "string" }, |
| 82 | + "artifactKind": { "type": "string" }, |
| 83 | + "path": { "type": ["string", "null"] }, |
| 84 | + "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } |
| 85 | + } |
| 86 | + } |
| 87 | + }, |
| 88 | + "supplyChain": { |
| 89 | + "type": "object", |
| 90 | + "additionalProperties": false, |
| 91 | + "required": ["strictModeAvailable", "strictExamples", "mutableBootstrapExamples"], |
| 92 | + "properties": { |
| 93 | + "strictModeAvailable": { "type": "boolean" }, |
| 94 | + "strictExamples": { "$ref": "#/$defs/digestedFileList" }, |
| 95 | + "mutableBootstrapExamples": { "$ref": "#/$defs/digestedFileList" } |
| 96 | + } |
| 97 | + }, |
| 98 | + "readiness": { |
| 99 | + "type": "object", |
| 100 | + "additionalProperties": false, |
| 101 | + "required": ["bootstrapReady", "productionReady", "releaseGateRef"], |
| 102 | + "properties": { |
| 103 | + "bootstrapReady": { "type": "boolean" }, |
| 104 | + "productionReady": { "type": "boolean" }, |
| 105 | + "releaseGateRef": { "type": "string" }, |
| 106 | + "statusRef": { "type": ["string", "null"] } |
| 107 | + } |
| 108 | + }, |
| 109 | + "knownBlockers": { |
| 110 | + "type": "array", |
| 111 | + "items": { "type": "string" }, |
| 112 | + "uniqueItems": true |
| 113 | + }, |
| 114 | + "receiptSafety": { |
| 115 | + "type": "object", |
| 116 | + "additionalProperties": false, |
| 117 | + "required": ["includeRawContent", "rawPromptContentIncluded", "rawKvCacheContentIncluded", "secretValuesIncluded", "privateMemoryIncluded"], |
| 118 | + "properties": { |
| 119 | + "includeRawContent": { "type": "boolean", "const": false }, |
| 120 | + "rawPromptContentIncluded": { "type": "boolean", "const": false }, |
| 121 | + "rawKvCacheContentIncluded": { "type": "boolean", "const": false }, |
| 122 | + "secretValuesIncluded": { "type": "boolean", "const": false }, |
| 123 | + "privateMemoryIncluded": { "type": "boolean", "const": false } |
| 124 | + } |
| 125 | + }, |
| 126 | + "generatedAt": { "type": "string" } |
| 127 | + }, |
| 128 | + "$defs": { |
| 129 | + "digestedFileList": { |
| 130 | + "type": "array", |
| 131 | + "items": { |
| 132 | + "type": "object", |
| 133 | + "additionalProperties": false, |
| 134 | + "required": ["path", "digest"], |
| 135 | + "properties": { |
| 136 | + "path": { "type": "string" }, |
| 137 | + "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } |
| 138 | + } |
| 139 | + } |
| 140 | + } |
| 141 | + } |
| 142 | +} |
0 commit comments