@grwnd/pi-governance 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -184,6 +184,46 @@ policy:
184
184
  - ./policies/tools.polar
185
185
  ```
186
186
 
187
+ ## OpenClaw
188
+
189
+ pi-governance works with [OpenClaw](https://github.com/Grwnd-AI) out of the box. OpenClaw runs on Pi, so installing pi-governance as a Pi extension automatically governs every tool call your OpenClaw agent makes — including MCP tools.
190
+
191
+ ```
192
+ OpenClaw gateway (WhatsApp, Discord, Telegram, …)
193
+ └─ Pi embedded runner
194
+ └─ @grwnd/pi-governance extension
195
+ ├─ RBAC for MCP tools (create_report, upload_asset, …)
196
+ ├─ bash command classification
197
+ ├─ audit logging (JSONL + webhook)
198
+ └─ HITL approval flow
199
+ ```
200
+
201
+ Put MCP tool names directly in your policy rules:
202
+
203
+ ```yaml
204
+ # governance-rules.yaml
205
+ roles:
206
+ report_author:
207
+ allowed_tools:
208
+ - list_reports
209
+ - get_report
210
+ - create_report
211
+ - search_documents
212
+ - chat_with_report
213
+ - read
214
+ - grep
215
+ blocked_tools: [bash, write, edit, delete_template]
216
+ execution_mode: supervised
217
+ human_approval:
218
+ required_for: [create_report, upload_asset]
219
+ auto_approve: [list_reports, get_report, search_documents]
220
+ token_budget_daily: 500
221
+ ```
222
+
223
+ Every MCP tool call is audited as structured JSON — see who did what, when, and whether it was approved or denied.
224
+
225
+ See the full [OpenClaw integration guide](https://grwnd-ai.github.io/pi-governance/guide/openclaw) for MCP tool reference tables, channel identity mapping, and common patterns.
226
+
187
227
  ## Documentation
188
228
 
189
229
  Full documentation at **[grwnd-ai.github.io/pi-governance](https://grwnd-ai.github.io/pi-governance/)**.