@oh-my-matrix/permission-policy
v0.1.3
Published
Shared permission policy primitives (decidePermission, classifyCommand, audit) consumed by @oh-my-matrix/autopilot + @oh-my-matrix/dynamic-workflows. Pure library, not a plugin.
Readme
@oh-my-matrix/permission-policy
Shared permission-policy primitives consumed by
@oh-my-matrix/autopilot and
@oh-my-matrix/dynamic-workflows. A pure, stateless library
(platform-level) — not an OpenClaw plugin.
Part of the oh-my-matrix runtime stack.
Install
npm install @oh-my-matrix/permission-policyWhat it provides
- Permission decision —
decidePermissionForEvent(event)decides permit/deny for a tool call;classifyCommand/extractCommandSegmentsmap a command to aCommandClass(read / write / destructive / network / …). - Audit —
appendAuditEntry(...)/loadRecentAuditEntries(...)append-only log.
Designed fail-closed for :subagent: destructive operations.
Status
v0.1.1. Tested with vitest. See the project
changelog.
