330 lines
12 KiB
JSON
330 lines
12 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://awoooi.wooo.work/schemas/ai_agent_report_runtime_readiness_v1.schema.json",
|
|
"title": "AI Agent Report Runtime Readiness v1",
|
|
"type": "object",
|
|
"required": [
|
|
"schema_version",
|
|
"generated_at",
|
|
"program_status",
|
|
"source_refs",
|
|
"activation_truth",
|
|
"runtime_lanes",
|
|
"automation_policies",
|
|
"report_delivery_cadence_gates",
|
|
"telegram_route_readiness",
|
|
"agent_post_report_actions",
|
|
"operator_decisions",
|
|
"display_redaction_contract",
|
|
"rollups"
|
|
],
|
|
"properties": {
|
|
"schema_version": { "const": "ai_agent_report_runtime_readiness_v1" },
|
|
"generated_at": { "type": "string" },
|
|
"program_status": {
|
|
"type": "object",
|
|
"required": [
|
|
"overall_completion_percent",
|
|
"current_priority",
|
|
"current_task_id",
|
|
"next_task_id",
|
|
"read_only_mode",
|
|
"runtime_authority",
|
|
"status_note"
|
|
],
|
|
"properties": {
|
|
"overall_completion_percent": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
"current_priority": { "enum": ["P0", "P1", "P2", "P3"] },
|
|
"current_task_id": { "const": "P2-403L" },
|
|
"next_task_id": { "type": "string" },
|
|
"read_only_mode": { "const": true },
|
|
"runtime_authority": { "const": "report_runtime_readiness_only_no_live_delivery_or_optimization" },
|
|
"status_note": { "type": "string" }
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"source_refs": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
"activation_truth": {
|
|
"type": "object",
|
|
"required": [
|
|
"report_scheduler_contract_ready",
|
|
"telegram_gateway_queue_contract_ready",
|
|
"telegram_delivery_receipt_contract_ready",
|
|
"ai_readback_analysis_contract_ready",
|
|
"medium_low_auto_guard_contract_ready",
|
|
"high_risk_approval_gate_contract_ready",
|
|
"live_report_delivery_enabled",
|
|
"live_report_delivery_count_24h",
|
|
"telegram_gateway_queue_write_enabled",
|
|
"telegram_gateway_queue_write_count_24h",
|
|
"report_read_receipt_write_enabled",
|
|
"report_read_receipt_count_24h",
|
|
"ai_analysis_runtime_enabled",
|
|
"ai_analysis_runtime_count_24h",
|
|
"medium_low_auto_worker_enabled",
|
|
"medium_low_auto_execution_count_24h",
|
|
"production_optimization_enabled",
|
|
"production_optimization_count_24h",
|
|
"high_risk_auto_execution_enabled",
|
|
"high_risk_auto_execution_count_24h",
|
|
"truth_note"
|
|
],
|
|
"properties": {
|
|
"report_scheduler_contract_ready": { "const": true },
|
|
"telegram_gateway_queue_contract_ready": { "const": true },
|
|
"telegram_delivery_receipt_contract_ready": { "const": true },
|
|
"ai_readback_analysis_contract_ready": { "const": true },
|
|
"medium_low_auto_guard_contract_ready": { "const": true },
|
|
"high_risk_approval_gate_contract_ready": { "const": true },
|
|
"live_report_delivery_enabled": { "const": false },
|
|
"live_report_delivery_count_24h": { "const": 0 },
|
|
"telegram_gateway_queue_write_enabled": { "const": false },
|
|
"telegram_gateway_queue_write_count_24h": { "const": 0 },
|
|
"report_read_receipt_write_enabled": { "const": false },
|
|
"report_read_receipt_count_24h": { "const": 0 },
|
|
"ai_analysis_runtime_enabled": { "const": false },
|
|
"ai_analysis_runtime_count_24h": { "const": 0 },
|
|
"medium_low_auto_worker_enabled": { "const": false },
|
|
"medium_low_auto_execution_count_24h": { "const": 0 },
|
|
"production_optimization_enabled": { "const": false },
|
|
"production_optimization_count_24h": { "const": 0 },
|
|
"high_risk_auto_execution_enabled": { "const": false },
|
|
"high_risk_auto_execution_count_24h": { "const": 0 },
|
|
"truth_note": { "type": "string" }
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"runtime_lanes": {
|
|
"type": "array",
|
|
"minItems": 7,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"lane_id",
|
|
"display_name",
|
|
"owner_agent",
|
|
"risk_tier",
|
|
"target_runtime",
|
|
"contract_status",
|
|
"current_live_count_24h",
|
|
"enablement_required",
|
|
"blocked_actions"
|
|
],
|
|
"properties": {
|
|
"lane_id": {
|
|
"enum": [
|
|
"report_scheduler",
|
|
"telegram_gateway_queue",
|
|
"telegram_delivery_receipt",
|
|
"ai_post_report_analysis",
|
|
"medium_low_auto_guard",
|
|
"high_risk_approval",
|
|
"post_action_verifier"
|
|
]
|
|
},
|
|
"display_name": { "type": "string" },
|
|
"owner_agent": { "enum": ["openclaw", "hermes", "nemotron"] },
|
|
"risk_tier": { "enum": ["low", "medium", "high", "critical"] },
|
|
"target_runtime": { "type": "string" },
|
|
"contract_status": { "enum": ["ready_for_owner_review", "blocked_by_runtime_gate"] },
|
|
"current_live_count_24h": { "const": 0 },
|
|
"enablement_required": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
"blocked_actions": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"automation_policies": {
|
|
"type": "array",
|
|
"minItems": 4,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"risk_id",
|
|
"display_name",
|
|
"approval_required",
|
|
"auto_allowed_after_guard",
|
|
"current_execution_enabled",
|
|
"required_guards",
|
|
"reporting_rule"
|
|
],
|
|
"properties": {
|
|
"risk_id": { "enum": ["low", "medium", "high", "critical"] },
|
|
"display_name": { "type": "string" },
|
|
"approval_required": { "type": "boolean" },
|
|
"auto_allowed_after_guard": { "type": "boolean" },
|
|
"current_execution_enabled": { "const": false },
|
|
"required_guards": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
"reporting_rule": { "type": "string" }
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"report_delivery_cadence_gates": {
|
|
"type": "array",
|
|
"minItems": 3,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"cadence_id",
|
|
"display_name",
|
|
"scheduler_source",
|
|
"telegram_digest_policy",
|
|
"recipient_room",
|
|
"dry_run_required",
|
|
"current_delivery_enabled",
|
|
"live_delivery_count_24h"
|
|
],
|
|
"properties": {
|
|
"cadence_id": { "enum": ["daily", "weekly", "monthly"] },
|
|
"display_name": { "type": "string" },
|
|
"scheduler_source": { "type": "string" },
|
|
"telegram_digest_policy": { "type": "string" },
|
|
"recipient_room": { "type": "string" },
|
|
"dry_run_required": { "const": true },
|
|
"current_delivery_enabled": { "const": false },
|
|
"live_delivery_count_24h": { "const": 0 }
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"telegram_route_readiness": {
|
|
"type": "object",
|
|
"required": [
|
|
"canonical_room",
|
|
"secret_ref",
|
|
"gateway_required",
|
|
"direct_bot_api_allowed",
|
|
"bot_log_out_allowed",
|
|
"legacy_routes_must_converge",
|
|
"telegram_gateway_queue_write_enabled",
|
|
"e2e_delivery_verified",
|
|
"delivery_receipt_write_enabled",
|
|
"blocked_route_count"
|
|
],
|
|
"properties": {
|
|
"canonical_room": { "const": "AwoooI SRE 戰情室" },
|
|
"secret_ref": { "const": "SRE_GROUP_CHAT_ID" },
|
|
"gateway_required": { "const": true },
|
|
"direct_bot_api_allowed": { "const": false },
|
|
"bot_log_out_allowed": { "const": false },
|
|
"legacy_routes_must_converge": { "const": true },
|
|
"telegram_gateway_queue_write_enabled": { "const": false },
|
|
"e2e_delivery_verified": { "const": false },
|
|
"delivery_receipt_write_enabled": { "const": false },
|
|
"blocked_route_count": { "type": "integer", "minimum": 0 }
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"agent_post_report_actions": {
|
|
"type": "array",
|
|
"minItems": 3,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"agent_id",
|
|
"display_name",
|
|
"after_report_responsibility",
|
|
"allowed_without_approval",
|
|
"blocked_until_approval",
|
|
"live_action_count_24h"
|
|
],
|
|
"properties": {
|
|
"agent_id": { "enum": ["openclaw", "hermes", "nemotron"] },
|
|
"display_name": { "type": "string" },
|
|
"after_report_responsibility": { "type": "string" },
|
|
"allowed_without_approval": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
"blocked_until_approval": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
"live_action_count_24h": { "const": 0 }
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"operator_decisions": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"decision_id",
|
|
"display_name",
|
|
"risk_tier",
|
|
"owner_agent",
|
|
"approval_required",
|
|
"status",
|
|
"why_it_matters",
|
|
"next_safe_step"
|
|
],
|
|
"properties": {
|
|
"decision_id": { "type": "string" },
|
|
"display_name": { "type": "string" },
|
|
"risk_tier": { "enum": ["low", "medium", "high", "critical"] },
|
|
"owner_agent": { "enum": ["openclaw", "hermes", "nemotron"] },
|
|
"approval_required": { "type": "boolean" },
|
|
"status": { "enum": ["ready_for_review", "blocked_by_runtime_gate", "approval_required"] },
|
|
"why_it_matters": { "type": "string" },
|
|
"next_safe_step": { "type": "string" }
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"display_redaction_contract": {
|
|
"type": "object",
|
|
"required": [
|
|
"redaction_required",
|
|
"raw_report_payload_display_allowed",
|
|
"private_reasoning_display_allowed",
|
|
"secret_value_display_allowed",
|
|
"work_window_transcript_display_allowed",
|
|
"allowed_display_fields",
|
|
"blocked_display_fields"
|
|
],
|
|
"properties": {
|
|
"redaction_required": { "const": true },
|
|
"raw_report_payload_display_allowed": { "const": false },
|
|
"private_reasoning_display_allowed": { "const": false },
|
|
"secret_value_display_allowed": { "const": false },
|
|
"work_window_transcript_display_allowed": { "const": false },
|
|
"allowed_display_fields": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
"blocked_display_fields": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"rollups": {
|
|
"type": "object",
|
|
"required": [
|
|
"runtime_lane_count",
|
|
"report_cadence_gate_count",
|
|
"operator_decision_count",
|
|
"automation_policy_count",
|
|
"ready_contract_count",
|
|
"blocked_contract_count",
|
|
"approval_required_decision_ids",
|
|
"current_enabled_count",
|
|
"live_report_delivery_count",
|
|
"live_ai_analysis_count",
|
|
"live_medium_low_auto_execution_count",
|
|
"telegram_gateway_queue_write_count",
|
|
"high_risk_auto_execution_count"
|
|
],
|
|
"properties": {
|
|
"runtime_lane_count": { "type": "integer", "minimum": 0 },
|
|
"report_cadence_gate_count": { "type": "integer", "minimum": 0 },
|
|
"operator_decision_count": { "type": "integer", "minimum": 0 },
|
|
"automation_policy_count": { "type": "integer", "minimum": 0 },
|
|
"ready_contract_count": { "type": "integer", "minimum": 0 },
|
|
"blocked_contract_count": { "type": "integer", "minimum": 0 },
|
|
"approval_required_decision_ids": { "type": "array", "items": { "type": "string" } },
|
|
"current_enabled_count": { "const": 0 },
|
|
"live_report_delivery_count": { "const": 0 },
|
|
"live_ai_analysis_count": { "const": 0 },
|
|
"live_medium_low_auto_execution_count": { "const": 0 },
|
|
"telegram_gateway_queue_write_count": { "const": 0 },
|
|
"high_risk_auto_execution_count": { "const": 0 }
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|