Files
awoooi/docs/schemas/security_mirror_event_v1.schema.json
Your Name 9e15fd08b3
All checks were successful
CD Pipeline / tests (push) Successful in 1m39s
Code Review / ai-code-review (push) Successful in 15s
CD Pipeline / build-and-deploy (push) Successful in 5m19s
CD Pipeline / post-deploy-checks (push) Successful in 2m11s
feat(web): land iwooos security posture surfaces
2026-05-25 20:35:52 +08:00

112 lines
2.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:awoooi:security-mirror-event-v1",
"title": "AWOOOI Security Supply Chain Mirror Event (v1)",
"description": "AwoooP mirror-only 消費 Security Supply Chain contracts 時使用的統一事件 envelope。此契約不授權任何 runtime execution。",
"type": "object",
"required": [
"schema_version",
"event_id",
"emitted_at",
"source_contract",
"source_snapshot_path",
"mirror_mode",
"destinations",
"execution_authorized",
"action_buttons_allowed",
"redaction_status",
"risk",
"summary",
"payload_summary",
"evidence_refs",
"blocked_actions"
],
"properties": {
"schema_version": {
"const": "security_mirror_event_v1"
},
"event_id": {
"type": "string",
"minLength": 1
},
"emitted_at": {
"type": "string",
"format": "date-time"
},
"source_contract": {
"type": "string",
"minLength": 1
},
"source_snapshot_path": {
"type": "string",
"minLength": 1
},
"mirror_mode": {
"type": "string",
"enum": ["mirror_only", "read_only_policy", "suggest_only", "approval_only"]
},
"destinations": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"enum": [
"operator_console",
"runtime_state",
"channel_event",
"audit_evidence",
"approval_queue"
]
},
"uniqueItems": true
},
"execution_authorized": {
"type": "boolean",
"const": false
},
"action_buttons_allowed": {
"type": "boolean",
"const": false
},
"redaction_status": {
"type": "string",
"enum": ["redacted", "metadata_only", "no_sensitive_payload_expected"]
},
"risk": {
"type": "string",
"enum": ["LOW", "MEDIUM", "HIGH", "CRITICAL"]
},
"summary": {
"type": "string",
"minLength": 1
},
"payload_summary": {
"type": "object",
"additionalProperties": {
"type": ["string", "number", "integer", "boolean"]
}
},
"evidence_refs": {
"type": "array",
"items": {
"type": "string"
}
},
"blocked_actions": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
},
"uniqueItems": true
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
}