sky-lattice/blueprint/schemas/decision.schema.json

38 lines
1.2 KiB
JSON
Raw Normal View History

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://skylattice.dev/schemas/decision.schema.json",
"title": "SkyLatticeDecision",
"type": "object",
"required": ["id", "applies_to", "rationale", "status", "created_at"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Stable decision id, e.g. 2026-07-15-finance-prod-read"
},
"applies_to": {
"type": "string",
"description": "Intent path or TF address this decision covers."
},
"rationale": { "type": "string", "minLength": 1 },
"alternatives_rejected": {
"type": "array",
"items": { "type": "string" },
"default": []
},
"status": {
"type": "string",
"enum": ["active", "superseded", "expired"],
"default": "active"
},
"expires_on": {
"type": ["string", "null"],
"description": "ISO date when this exception should be revisited."
},
"client_constraint": { "type": ["string", "null"] },
"created_at": { "type": "string" },
"created_by": { "type": ["string", "null"] },
"superseded_by": { "type": ["string", "null"] }
}
}