219 lines
5.1 KiB
JSON
219 lines
5.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "urn:awoooi:security-mirror-status-rollup-v1",
|
|
"title": "資安供應鏈鏡像狀態彙整契約 v1",
|
|
"description": "定義 AwoooP mirror-only 資安供應鏈接入狀態、下一個安全 gate 與跨 Session 同步摘要。此契約不授權 runtime execution。",
|
|
"type": "object",
|
|
"required": [
|
|
"schema_version",
|
|
"status",
|
|
"date",
|
|
"mode",
|
|
"rollup_status",
|
|
"runtime_execution_authorized",
|
|
"source_indexes",
|
|
"summary",
|
|
"phase_status",
|
|
"next_safe_actions",
|
|
"session_sync_notes",
|
|
"forbidden_actions"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "security_mirror_status_rollup_v1"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"enum": ["draft"]
|
|
},
|
|
"date": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string",
|
|
"enum": ["mirror_only"]
|
|
},
|
|
"rollup_status": {
|
|
"type": "string",
|
|
"enum": [
|
|
"framework_ready_waiting_approval",
|
|
"mirror_ingestion_ready",
|
|
"mirror_ingestion_warn",
|
|
"blocked"
|
|
]
|
|
},
|
|
"runtime_execution_authorized": {
|
|
"type": "boolean",
|
|
"const": false
|
|
},
|
|
"source_indexes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"summary": {
|
|
"type": "object",
|
|
"required": [
|
|
"total_contracts",
|
|
"ready_for_mirror_count",
|
|
"partial_ready_count",
|
|
"contract_only_count",
|
|
"blocked_count",
|
|
"approval_queue_total",
|
|
"approval_review_packet_total",
|
|
"approval_state_transition_rule_total",
|
|
"pending_approval_count",
|
|
"block_candidate_count",
|
|
"dry_run_status",
|
|
"runtime_actions_executed",
|
|
"payloads_ingested"
|
|
],
|
|
"properties": {
|
|
"total_contracts": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"ready_for_mirror_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"partial_ready_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"contract_only_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"blocked_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"approval_queue_total": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"approval_review_packet_total": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"approval_state_transition_rule_total": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"pending_approval_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"block_candidate_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"dry_run_status": {
|
|
"type": "string"
|
|
},
|
|
"runtime_actions_executed": {
|
|
"type": "boolean",
|
|
"const": false
|
|
},
|
|
"payloads_ingested": {
|
|
"type": "boolean",
|
|
"const": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"phase_status": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"phase_id",
|
|
"state",
|
|
"current_result",
|
|
"next_gate"
|
|
],
|
|
"properties": {
|
|
"phase_id": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string",
|
|
"enum": ["completed", "in_progress", "draft_ready", "not_started", "blocked"]
|
|
},
|
|
"current_result": {
|
|
"type": "string"
|
|
},
|
|
"next_gate": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"next_safe_actions": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"action_id",
|
|
"title",
|
|
"mode",
|
|
"source_contract",
|
|
"allowed_processing",
|
|
"blocked_processing"
|
|
],
|
|
"properties": {
|
|
"action_id": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string",
|
|
"enum": ["observe", "approval_required", "block_candidate"]
|
|
},
|
|
"source_contract": {
|
|
"type": "string"
|
|
},
|
|
"allowed_processing": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"blocked_processing": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"session_sync_notes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"forbidden_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|