tighten deployment profile artifact vocabulary

This commit is contained in:
Eve
2026-05-08 12:44:27 +08:00
parent c19fd21aab
commit cfdb49d5a2
2 changed files with 121 additions and 5 deletions

View File

@@ -114,6 +114,8 @@
"operatorVisibleRecoveryRequired": { "type": "boolean" },
"allowedTerminalStates": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["acked", "blocked", "pending_external_send"]
@@ -130,9 +132,49 @@
"requiredArtifacts": {
"type": "array",
"minItems": 1,
"items": { "type": "string", "minLength": 1 }
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"canonical_events",
"evidence_records",
"decision_records",
"queue_items",
"spool_artifacts",
"bridge_receipts",
"capability_descriptor",
"profile_snapshot"
]
}
}
}
},
"allOf": [
{
"if": {
"properties": {
"portableArtifactsRequired": { "const": true }
},
"required": ["portableArtifactsRequired"]
},
"then": {
"properties": {
"requiredArtifacts": {
"allOf": [
{
"contains": { "const": "canonical_events" }
},
{
"contains": { "const": "queue_items" }
},
{
"contains": { "const": "bridge_receipts" }
}
]
}
}
}
}
]
},
"capability_expectations": {
"type": "object",