feat(policy-runtime): in-memory policy state with whispergate_policy tool and atomic persist

This commit is contained in:
2026-02-26 00:35:17 +00:00
parent 682d9a336e
commit e5999743fe
5 changed files with 148 additions and 41 deletions

View File

@@ -66,6 +66,12 @@ The script:
- directory: `~/.openclaw/whispergate-install-records/`
- latest pointer: `~/.openclaw/whispergate-install-record-latest.json`
Policy state semantics:
- channel policy file is loaded once into memory on startup
- runtime decisions use in-memory state
- use `whispergate_policy` tool to update state (memory first, then file persist)
- manual file edits do not auto-apply until next restart
## Notes
- Keep no-reply API bound to loopback/private network.