|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://docs.amend.sh/schemas/agent-ready-production-report.schema.json", |
| 4 | + "title": "Amend Agent-Ready Production Report", |
| 5 | + "type": "object", |
| 6 | + "additionalProperties": false, |
| 7 | + "required": ["$schema", "blockers", "checkedAt", "ok", "steps"], |
| 8 | + "properties": { |
| 9 | + "$schema": { |
| 10 | + "type": "string", |
| 11 | + "const": "https://docs.amend.sh/schemas/agent-ready-production-report.schema.json" |
| 12 | + }, |
| 13 | + "blockers": { |
| 14 | + "type": "array", |
| 15 | + "items": { "type": "string", "minLength": 1 } |
| 16 | + }, |
| 17 | + "checkedAt": { |
| 18 | + "type": "string", |
| 19 | + "format": "date-time" |
| 20 | + }, |
| 21 | + "ok": { |
| 22 | + "type": "boolean" |
| 23 | + }, |
| 24 | + "steps": { |
| 25 | + "type": "object", |
| 26 | + "additionalProperties": false, |
| 27 | + "required": ["built", "live", "readinessStrict", "status"], |
| 28 | + "properties": { |
| 29 | + "built": { "$ref": "#/$defs/summaryStep" }, |
| 30 | + "live": { "$ref": "#/$defs/liveStep" }, |
| 31 | + "readinessStrict": { "$ref": "#/$defs/summaryStep" }, |
| 32 | + "status": { "$ref": "#/$defs/statusStep" } |
| 33 | + } |
| 34 | + } |
| 35 | + }, |
| 36 | + "$defs": { |
| 37 | + "check": { |
| 38 | + "type": "object", |
| 39 | + "additionalProperties": false, |
| 40 | + "required": ["name", "ok"], |
| 41 | + "properties": { |
| 42 | + "detail": { "type": "string" }, |
| 43 | + "name": { "type": "string", "minLength": 1 }, |
| 44 | + "ok": { "type": "boolean" } |
| 45 | + } |
| 46 | + }, |
| 47 | + "dnsHost": { |
| 48 | + "type": "object", |
| 49 | + "additionalProperties": false, |
| 50 | + "required": ["delegated", "host", "records", "registered"], |
| 51 | + "properties": { |
| 52 | + "delegated": { "type": "boolean" }, |
| 53 | + "host": { "type": "string", "minLength": 1 }, |
| 54 | + "records": { |
| 55 | + "type": "array", |
| 56 | + "items": { "type": "string" } |
| 57 | + }, |
| 58 | + "registered": { "type": "boolean" } |
| 59 | + } |
| 60 | + }, |
| 61 | + "liveReport": { |
| 62 | + "type": "object", |
| 63 | + "additionalProperties": false, |
| 64 | + "required": [ |
| 65 | + "$schema", |
| 66 | + "blockers", |
| 67 | + "checkedAt", |
| 68 | + "checks", |
| 69 | + "ok", |
| 70 | + "origins", |
| 71 | + "passed", |
| 72 | + "total" |
| 73 | + ], |
| 74 | + "properties": { |
| 75 | + "$schema": { |
| 76 | + "type": "string", |
| 77 | + "const": "https://docs.amend.sh/schemas/agent-ready-live-report.schema.json" |
| 78 | + }, |
| 79 | + "blockers": { |
| 80 | + "type": "array", |
| 81 | + "items": { "type": "string", "minLength": 1 } |
| 82 | + }, |
| 83 | + "checkedAt": { "type": "string", "format": "date-time" }, |
| 84 | + "checks": { |
| 85 | + "type": "array", |
| 86 | + "items": { "$ref": "#/$defs/check" } |
| 87 | + }, |
| 88 | + "ok": { "type": "boolean" }, |
| 89 | + "origins": { "$ref": "#/$defs/origins" }, |
| 90 | + "passed": { "type": "integer", "minimum": 0 }, |
| 91 | + "total": { "type": "integer", "minimum": 0 } |
| 92 | + } |
| 93 | + }, |
| 94 | + "origins": { |
| 95 | + "type": "object", |
| 96 | + "additionalProperties": false, |
| 97 | + "required": ["docs", "web"], |
| 98 | + "properties": { |
| 99 | + "docs": { "type": "string", "format": "uri" }, |
| 100 | + "web": { "type": "string", "format": "uri" } |
| 101 | + } |
| 102 | + }, |
| 103 | + "productionEnv": { |
| 104 | + "type": "object", |
| 105 | + "additionalProperties": false, |
| 106 | + "required": ["missing", "passed", "total"], |
| 107 | + "properties": { |
| 108 | + "missing": { |
| 109 | + "type": "array", |
| 110 | + "items": { "type": "string", "minLength": 1 } |
| 111 | + }, |
| 112 | + "passed": { "type": "integer", "minimum": 0 }, |
| 113 | + "total": { "type": "integer", "minimum": 0 } |
| 114 | + } |
| 115 | + }, |
| 116 | + "statusReport": { |
| 117 | + "type": "object", |
| 118 | + "additionalProperties": false, |
| 119 | + "required": [ |
| 120 | + "$schema", |
| 121 | + "blockers", |
| 122 | + "checkedAt", |
| 123 | + "dns", |
| 124 | + "nextGates", |
| 125 | + "ok", |
| 126 | + "origins", |
| 127 | + "productionEnv" |
| 128 | + ], |
| 129 | + "properties": { |
| 130 | + "$schema": { |
| 131 | + "type": "string", |
| 132 | + "const": "https://docs.amend.sh/schemas/agent-ready-status-report.schema.json" |
| 133 | + }, |
| 134 | + "blockers": { |
| 135 | + "type": "array", |
| 136 | + "items": { "type": "string", "minLength": 1 } |
| 137 | + }, |
| 138 | + "checkedAt": { "type": "string", "format": "date-time" }, |
| 139 | + "dns": { |
| 140 | + "type": "object", |
| 141 | + "additionalProperties": false, |
| 142 | + "required": ["docs", "web"], |
| 143 | + "properties": { |
| 144 | + "docs": { "$ref": "#/$defs/dnsHost" }, |
| 145 | + "web": { "$ref": "#/$defs/dnsHost" } |
| 146 | + } |
| 147 | + }, |
| 148 | + "nextGates": { |
| 149 | + "type": "array", |
| 150 | + "minItems": 2, |
| 151 | + "maxItems": 2, |
| 152 | + "prefixItems": [ |
| 153 | + { "type": "string", "const": "bun run agent-ready:production" }, |
| 154 | + { "type": "string", "const": "bun run agent-ready:final-gate" } |
| 155 | + ], |
| 156 | + "items": false |
| 157 | + }, |
| 158 | + "ok": { "type": "boolean" }, |
| 159 | + "origins": { "$ref": "#/$defs/origins" }, |
| 160 | + "productionEnv": { "$ref": "#/$defs/productionEnv" } |
| 161 | + } |
| 162 | + }, |
| 163 | + "summary": { |
| 164 | + "type": "object", |
| 165 | + "additionalProperties": false, |
| 166 | + "required": ["passed", "total"], |
| 167 | + "properties": { |
| 168 | + "passed": { "type": "integer", "minimum": 0 }, |
| 169 | + "total": { "type": "integer", "minimum": 0 } |
| 170 | + } |
| 171 | + }, |
| 172 | + "summaryStep": { |
| 173 | + "type": "object", |
| 174 | + "additionalProperties": false, |
| 175 | + "required": ["exitCode", "ok"], |
| 176 | + "properties": { |
| 177 | + "exitCode": { "type": "integer", "minimum": 0 }, |
| 178 | + "ok": { "type": "boolean" }, |
| 179 | + "summary": { "$ref": "#/$defs/summary" } |
| 180 | + } |
| 181 | + }, |
| 182 | + "liveStep": { |
| 183 | + "type": "object", |
| 184 | + "additionalProperties": false, |
| 185 | + "required": ["exitCode", "ok", "report"], |
| 186 | + "properties": { |
| 187 | + "exitCode": { "type": "integer", "minimum": 0 }, |
| 188 | + "ok": { "type": "boolean" }, |
| 189 | + "report": { "$ref": "#/$defs/liveReport" }, |
| 190 | + "summary": { "$ref": "#/$defs/summary" } |
| 191 | + } |
| 192 | + }, |
| 193 | + "statusStep": { |
| 194 | + "type": "object", |
| 195 | + "additionalProperties": false, |
| 196 | + "required": ["exitCode", "ok", "report"], |
| 197 | + "properties": { |
| 198 | + "exitCode": { "type": "integer", "minimum": 0 }, |
| 199 | + "ok": { "type": "boolean" }, |
| 200 | + "report": { "$ref": "#/$defs/statusReport" }, |
| 201 | + "summary": { "$ref": "#/$defs/summary" } |
| 202 | + } |
| 203 | + } |
| 204 | + } |
| 205 | +} |
0 commit comments