OpenClaw Plugin — Migration Guide¶
Upgrading PolicyShield¶
From 0.8.x to 0.9.x¶
Server changes¶
- New:
POLICYSHIELD_API_TOKENenv var for authentication - Optional — server works without it (same as 0.8.x)
- If set, plugin config needs
api_tokento match - New:
/api/v1/clear-taintendpoint - New:
taint_chainconfig section in rules YAML
Plugin changes¶
- New config field:
api_tokeninopenclaw.plugin.json - If server uses
POLICYSHIELD_API_TOKEN, set this to match - No breaking changes to existing config fields
Rules changes¶
- New optional section:
taint_chain - Disabled by default — existing rules work without changes
policyshield init --preset openclawnow includes taint_chain (disabled)
Migration steps¶
- Update server:
pip install --upgrade "policyshield[server]" - Update plugin:
- (Optional) Set API token:
- (Optional) Enable taint chain in rules:
- Restart server and OpenClaw
From 0.7.x to 0.8.x¶
Breaking changes¶
- Plugin ID changed from
policy-shieldtopolicyshield - OpenClaw SDK hook signatures updated to match real API
mode: auditremoved from plugin config (audit mode is server-side only)
Migration steps¶
- Remove old plugin:
rm -rf ~/.openclaw/extensions/policy-shield - Install new plugin:
- Update config key:
plugins.entries.policy-shield→plugins.entries.policyshield - If using
mode: auditin plugin config: remove it, configure on server: