docs(security): add github target owner status ledger

This commit is contained in:
Your Name
2026-05-18 14:33:36 +08:00
parent 7be8868e5a
commit 91edf18552
31 changed files with 336 additions and 59 deletions

View File

@@ -59,6 +59,7 @@
"target_decision_count",
"approval_required_target_count",
"owner_response_request_packet_count",
"owner_response_template_status_count",
"response_template_count",
"received_response_count",
"accepted_response_count",
@@ -80,6 +81,7 @@
"target_decision_count": {"type": "integer", "minimum": 0},
"approval_required_target_count": {"type": "integer", "minimum": 0},
"owner_response_request_packet_count": {"type": "integer", "minimum": 0},
"owner_response_template_status_count": {"type": "integer", "minimum": 0},
"response_template_count": {"type": "integer", "minimum": 0},
"received_response_count": {"type": "integer", "minimum": 0},
"accepted_response_count": {"type": "integer", "minimum": 0},
@@ -156,6 +158,53 @@
},
"additionalProperties": false
},
"owner_response_template_statuses": {
"type": "array",
"description": "S4.10 七個 GitHub target response templates 的逐項收件狀態;只供 AwoooP 顯示,不代表 approval 或 execution queue。",
"items": {
"type": "object",
"required": [
"template_id",
"github_repo",
"source_key",
"display_order",
"collection_status",
"request_status",
"received_response_count",
"accepted_response_count",
"rejected_response_count",
"latest_outcome_lane",
"next_owner_action",
"awooop_display_mode",
"execution_authorized",
"not_approval",
"still_forbidden"
],
"properties": {
"template_id": {"type": "string"},
"github_repo": {"type": "string"},
"source_key": {"type": "string"},
"display_order": {"type": "integer", "minimum": 1},
"collection_status": {"type": "string", "enum": ["waiting_owner_response"]},
"request_status": {"type": "string", "enum": ["request_ready_not_sent"]},
"received_response_count": {"type": "integer", "minimum": 0},
"accepted_response_count": {"type": "integer", "minimum": 0},
"rejected_response_count": {"type": "integer", "minimum": 0},
"latest_outcome_lane": {"type": "string", "enum": ["keep_waiting_owner_response"]},
"next_owner_action": {"type": "string"},
"awooop_display_mode": {"type": "string", "enum": ["display_template_status_only"]},
"execution_authorized": {"type": "boolean", "const": false},
"not_approval": {"type": "boolean", "const": true},
"still_forbidden": {
"type": "array",
"items": {"type": "string"},
"minItems": 1
}
},
"additionalProperties": false
},
"minItems": 1
},
"response_templates": {
"type": "array",
"items": {