feat(governance): 新增 Agent host stateful 版本盤點
This commit is contained in:
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://awoooi.wooo.work/schemas/ai_agent_host_stateful_version_inventory_v1.schema.json",
|
||||
"title": "AI Agent Host Stateful Version Inventory v1",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"schema_version",
|
||||
"generated_at",
|
||||
"program_status",
|
||||
"operation_boundaries",
|
||||
"approval_boundaries",
|
||||
"host_inventory",
|
||||
"k3s_inventory",
|
||||
"stateful_services",
|
||||
"readonly_probe_plan",
|
||||
"maintenance_window_approval_package",
|
||||
"display_redaction_contract",
|
||||
"rollups"
|
||||
],
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"schema_version": {
|
||||
"const": "ai_agent_host_stateful_version_inventory_v1"
|
||||
},
|
||||
"generated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"program_status": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"overall_completion_percent",
|
||||
"current_task_id",
|
||||
"next_task_id",
|
||||
"read_only_mode",
|
||||
"runtime_authority"
|
||||
],
|
||||
"properties": {
|
||||
"overall_completion_percent": {
|
||||
"const": 86
|
||||
},
|
||||
"current_task_id": {
|
||||
"const": "P2-402F"
|
||||
},
|
||||
"next_task_id": {
|
||||
"const": "P2-402G"
|
||||
},
|
||||
"read_only_mode": {
|
||||
"const": true
|
||||
},
|
||||
"runtime_authority": {
|
||||
"const": "host_stateful_readonly_inventory_no_upgrade_or_restart"
|
||||
}
|
||||
}
|
||||
},
|
||||
"operation_boundaries": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"read_only_inventory_allowed",
|
||||
"ssh_login_allowed",
|
||||
"host_command_execution_allowed",
|
||||
"kubectl_command_execution_allowed",
|
||||
"apt_upgrade_allowed",
|
||||
"k3s_upgrade_allowed",
|
||||
"node_drain_allowed",
|
||||
"reboot_allowed",
|
||||
"stateful_service_restart_allowed",
|
||||
"telegram_direct_send_allowed",
|
||||
"secret_plaintext_allowed",
|
||||
"conversation_transcript_allowed"
|
||||
],
|
||||
"properties": {
|
||||
"read_only_inventory_allowed": {
|
||||
"const": true
|
||||
},
|
||||
"ssh_login_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"host_command_execution_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"kubectl_command_execution_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"apt_upgrade_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"k3s_upgrade_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"node_drain_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"reboot_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"stateful_service_restart_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"telegram_direct_send_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"secret_plaintext_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"conversation_transcript_allowed": {
|
||||
"const": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"host_inventory": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"host_id",
|
||||
"readonly_only",
|
||||
"version_observation_status",
|
||||
"host_update_authorized",
|
||||
"reboot_authorized",
|
||||
"maintenance_window_required"
|
||||
],
|
||||
"properties": {
|
||||
"readonly_only": {
|
||||
"const": true
|
||||
},
|
||||
"host_update_authorized": {
|
||||
"const": false
|
||||
},
|
||||
"reboot_authorized": {
|
||||
"const": false
|
||||
},
|
||||
"maintenance_window_required": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"stateful_services": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"service_id",
|
||||
"readonly_only",
|
||||
"version_observation_status",
|
||||
"restart_authorized",
|
||||
"upgrade_authorized",
|
||||
"backup_required_before_change"
|
||||
],
|
||||
"properties": {
|
||||
"readonly_only": {
|
||||
"const": true
|
||||
},
|
||||
"restart_authorized": {
|
||||
"const": false
|
||||
},
|
||||
"upgrade_authorized": {
|
||||
"const": false
|
||||
},
|
||||
"backup_required_before_change": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"display_redaction_contract": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"conversation_transcript_display_allowed",
|
||||
"redaction_required"
|
||||
],
|
||||
"properties": {
|
||||
"conversation_transcript_display_allowed": {
|
||||
"const": false
|
||||
},
|
||||
"redaction_required": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user