feat(automation): enforce assessment scope and document activation blockers

This commit is contained in:
cesnimda
2026-10-30 09:40:12 +01:00
parent 140e182516
commit 750d76317c
22 changed files with 7065 additions and 12 deletions
+16
View File
@@ -11,6 +11,17 @@
"baselineBranch": {"$ref": "#/$defs/branch"},
"remote": {"type": "string", "pattern": "^[A-Za-z0-9_-]+$"},
"integrationBranch": {"$ref": "#/$defs/branch"},
"executionScope": {
"type": "object", "additionalProperties": false,
"required": ["stage", "checkpoint", "mode", "reportDirectory", "handoffCommit", "handoffBranch"],
"properties": {
"stage": {"const": "PHASE-10"}, "checkpoint": {"const": "P10-00"},
"mode": {"const": "assessment-only"},
"reportDirectory": {"const": "docs/automation/stages/PHASE-10"},
"handoffCommit": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
"handoffBranch": {"$ref": "#/$defs/branch"}
}
},
"stages": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/stage"}}
},
"$defs": {
@@ -56,11 +67,16 @@
"check": {
"type": "object",
"required": ["id", "argv", "cwd", "report"],
"if": {"required": ["adapter"], "properties": {"adapter": {"const": "assessment-evidence-inspection"}}},
"then": {"required": ["configured"], "properties": {"configured": {"const": false}}},
"properties": {
"id": {"type": "string", "pattern": "^[A-Za-z0-9-]+$"},
"argv": {"type": "array", "minItems": 1, "items": {"type": "string"}},
"cwd": {"type": "string"},
"configured": {"type": "boolean"},
"adapter": {"enum": ["assessment-evidence-inspection"]},
"receipt": {"type": "string"},
"receiptSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
"report": {"type": ["object", "null"], "properties": {
"format": {"enum": ["trx", "jest", "playwright", "junit"]},
"path": {"type": "string"},