openclaw/extensions
dennis palatov df22a4fff7
web4-governance: complete Tier 1.5 — presets, rate limiting, audit query & reporter (#4)
Four features to complete the open-source governance tier:

1. Policy Presets (presets.ts): Built-in rule sets (permissive, safety,
   strict, audit-only) users can reference by name. Merge order:
   preset defaults → top-level overrides → additional rules appended.

2. Rate Limiting (rate-limiter.ts): Sliding window counters per key
   (tool or category). RateLimiter integrated into PolicyEngine —
   rate limit rules only match when threshold exceeded within window.
   Memory-only, resets on session restart.

3. Audit Query (audit.ts filter()): Filter audit records by tool,
   category, status, target pattern (glob), time range (ISO or
   relative like "1h"), and limit. CLI: moltbot audit query.

4. Audit Reporter (reporter.ts): Aggregates audit data into tool stats,
   category breakdown, policy decisions, error summaries, and
   per-minute timeline. Text and JSON output formats.

All wired into index.ts with CLI commands (policy presets, audit query,
audit report) and plugin.json schema updated with preset field.

151 tests pass across 9 test files.

Co-authored-by: dp-web4 <dp@metalinxx.io>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 22:13:55 -08:00
..
bluebubbles refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
copilot-proxy refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
diagnostics-otel refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
discord refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
google-antigravity-auth refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
google-gemini-cli-auth refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
googlechat refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
imessage refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
line refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
llm-task refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
lobster refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
matrix refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
mattermost refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
memory-core refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
memory-lancedb refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
msteams refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
nextcloud-talk refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
nostr refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
open-prose refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
qwen-portal-auth fix: enforce plugin config schemas (#1272) (thanks @thewilloftheshadow) 2026-01-20 11:03:17 +00:00
signal refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
slack refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
telegram refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
tlon refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
twitch refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
voice-call refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
web4-governance web4-governance: complete Tier 1.5 — presets, rate limiting, audit query & reporter (#4) 2026-01-27 22:13:55 -08:00
whatsapp refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
zalo refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
zalouser refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00