Files
awoooi/docs/schemas/ai_agent_action_permission_matrix_v1.schema.json
Your Name cfb866d055
Some checks failed
Ansible Lint / lint (push) Successful in 35s
CD Pipeline / tests (push) Failing after 13s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped
Code Review / ai-code-review (push) Failing after 11s
feat(governance): add agent market automation surfaces
2026-06-04 21:50:55 +08:00

168 lines
4.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:awoooi:ai-agent-action-permission-matrix-v1",
"title": "AWOOOI AI Agent 操作權限矩陣 v1",
"description": "描述 AI Agent 對服務、工具、套件、備份與模型治理操作的預設權限。此 schema 只定義權限資料形狀不授權任何生產寫入、SDK 安裝、付費 API 呼叫、shadow/canary 或生產路由變更。",
"type": "object",
"required": [
"schema_version",
"generated_at",
"permission_levels",
"action_classes",
"agent_permissions",
"default_boundaries"
],
"properties": {
"schema_version": {
"type": "string",
"const": "ai_agent_action_permission_matrix_v1"
},
"generated_at": {
"type": "string",
"minLength": 1
},
"permission_levels": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"enum": [
"allowed_read_only",
"allowed_prepare_only",
"requires_openclaw_arbitration",
"requires_human_approval",
"requires_cost_approval",
"requires_dependency_approval",
"blocked"
]
}
},
"action_classes": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"enum": [
"observe",
"diagnose",
"recommend",
"prepare_approval_package",
"dry_run",
"execute_read_only",
"execute_write",
"rollback",
"destructive",
"backup_verify",
"restore_drill",
"dependency_scan",
"dependency_upgrade",
"sdk_installation",
"paid_api_call",
"shadow_canary",
"production_routing"
]
}
},
"agent_permissions": {
"type": "array",
"items": {
"type": "object",
"required": [
"agent_id",
"action_class",
"permission_level",
"automation_allowed",
"required_gates",
"required_evidence",
"notes"
],
"properties": {
"agent_id": {
"type": "string",
"minLength": 1
},
"action_class": {
"type": "string",
"minLength": 1
},
"permission_level": {
"type": "string",
"minLength": 1
},
"automation_allowed": {
"type": "boolean"
},
"required_gates": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"required_evidence": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"notes": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
"default_boundaries": {
"type": "object",
"required": [
"production_write_auto_allowed",
"destructive_action_auto_allowed",
"rollback_auto_allowed",
"restore_drill_auto_allowed",
"sdk_install_auto_allowed",
"paid_api_auto_allowed",
"shadow_canary_auto_allowed",
"production_routing_auto_allowed"
],
"properties": {
"production_write_auto_allowed": {
"type": "boolean",
"const": false
},
"destructive_action_auto_allowed": {
"type": "boolean",
"const": false
},
"rollback_auto_allowed": {
"type": "boolean",
"const": false
},
"restore_drill_auto_allowed": {
"type": "boolean",
"const": false
},
"sdk_install_auto_allowed": {
"type": "boolean",
"const": false
},
"paid_api_auto_allowed": {
"type": "boolean",
"const": false
},
"shadow_canary_auto_allowed": {
"type": "boolean",
"const": false
},
"production_routing_auto_allowed": {
"type": "boolean",
"const": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}