Files
openclaw/extensions/policy/openclaw.plugin.json
T
2026-08-16 05:43:35 -07:00

49 lines
1.3 KiB
JSON

{
"id": "policy",
"name": "Policy",
"description": "Adds policy-backed doctor checks for workspace conformance.",
"cliCommands": [
{
"name": "policy",
"description": "Check policy requirements and emit audit evidence",
"hasSubcommands": true
}
],
"activation": {
"onStartup": true,
"onCommands": ["doctor", "policy"]
},
"commandAliases": [
{
"name": "policy",
"kind": "cli"
}
],
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable policy doctor checks even before policy.jsonc exists."
},
"workspaceRepairs": {
"type": "boolean",
"description": "Allow doctor --fix to repair policy-managed workspace settings."
},
"expectedHash": {
"type": "string",
"description": "Optional sha256 hash for hash-locking the approved policy artifact."
},
"expectedAttestationHash": {
"type": "string",
"description": "Optional sha256 hash for the last accepted clean policy check."
},
"path": {
"type": "string",
"description": "Optional policy.jsonc path. Relative paths resolve from the selected agent workspace."
}
}
}
}