{
  "id": "atbash-openclaw",
  "name": "ATBASH Plugin",
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "enabled": { "type": "boolean", "default": true },
      "enforceDecision": { "type": "boolean", "default": true },
      "debug": { "type": "boolean", "default": false },
      "chromiaSecretPath": { "type": "string" },
      "judgeEndpoint": { "type": "string" },
      "judgeEndpointPolicy": {
        "type": "string",
        "enum": ["default", "self-hosted"],
        "default": "default"
      },
      "judgeVerifyPubKey": { "type": "string" },
      "orgName": { "type": "string" },
      "memoryPathPatterns": {
        "type": "array",
        "items": { "type": "string" }
      },
      "memoryWorkspaceDir": { "type": "string" },
      "memoryFilePath": { "type": "string" },
      "memorySyncTTLMs": { "type": "integer", "minimum": 0, "default": 30000 },
      "memoryRollbackMinScore": { "type": "integer", "minimum": 1, "maximum": 10, "default": 1 }
    }
  },
  "uiHints": {
    "enabled": { "label": "Enabled" },
    "enforceDecision": { "label": "Enforce Decision (block tools)" },
    "debug": { "label": "Debug Logging" },
    "chromiaSecretPath": {
      "label": "ATBASH Key Path",
      "placeholder": "~/.config/atbash/guard-client-key"
    },
    "judgeEndpoint": {
      "label": "Judge Endpoint URL (advanced)",
      "placeholder": "https://atbash.ai/api/v1/judge"
    },
    "judgeEndpointPolicy": {
      "label": "Judge Endpoint Policy"
    },
    "judgeVerifyPubKey": {
      "label": "Judge Response Verify Pubkey (self-hosted only)",
      "placeholder": "66 hex chars — secp256k1 compressed pubkey"
    },
    "orgName": {
      "label": "Organization Name",
      "placeholder": "e.g. ATBASH — set so the SDK queries the right chain (public vs private)"
    },
    "memoryPathPatterns": {
      "label": "Memory Path Patterns (advanced)",
      "placeholder": "/.openclaw/workspace/, /.openclaw/memory/, /.claude/projects/, /memory/, Memory.md, CLAUDE.md, AGENTS.md"
    },
    "memoryWorkspaceDir": {
      "label": "Openclaw Workspace Directory",
      "placeholder": "e.g. /Users/me/.openclaw/workspace"
    },
    "memoryFilePath": {
      "label": "MEMORY.md Path (advanced)",
      "placeholder": "Defaults to <memoryWorkspaceDir>/MEMORY.md"
    },
    "memorySyncTTLMs": {
      "label": "Memory Sync TTL (ms)",
      "placeholder": "How long to trust the local memory pointer between chain checks. Default 30000."
    },
    "memoryRollbackMinScore": {
      "label": "Rollback Score Threshold",
      "placeholder": "Block memory reads when a rolled-back version scores below this (1-10). Default 1 = never block."
    }
  }
}
