59 lines
1.6 KiB
JSON
59 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://railiance.dev/schemas/reef-admission-evidence-v1.schema.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"contract_version",
|
|
"reef_id",
|
|
"subject",
|
|
"readiness_state",
|
|
"checked_at",
|
|
"checks",
|
|
"residual_risks"
|
|
],
|
|
"properties": {
|
|
"contract_version": {"const": "1.0.0"},
|
|
"reef_id": {"const": "reef-railiance"},
|
|
"subject": {"type": "string", "pattern": "^(rail|rapp)-[a-z0-9-]+$"},
|
|
"readiness_state": {
|
|
"enum": ["declared", "installed", "verified", "production-approved", "deprecated"]
|
|
},
|
|
"checked_at": {"type": "string", "format": "date-time"},
|
|
"checks": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"required": ["status", "evidence"],
|
|
"properties": {
|
|
"status": {"enum": ["pass", "fail", "unknown", "not-applicable"]},
|
|
"evidence": {"type": "array", "items": {"type": "string"}},
|
|
"notes": {"type": "string"}
|
|
}
|
|
},
|
|
"required": [
|
|
"compatibility",
|
|
"capacity",
|
|
"ingress",
|
|
"network",
|
|
"identity_and_secrets",
|
|
"observability",
|
|
"recovery",
|
|
"failure_domain"
|
|
]
|
|
},
|
|
"residual_risks": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["risk", "status", "owner"],
|
|
"properties": {
|
|
"risk": {"type": "string"},
|
|
"status": {"enum": ["open", "mitigated", "accepted"]},
|
|
"owner": {"type": "string"},
|
|
"decision": {"type": "string"}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|