exec-policy-enforcer

Audits local session artifacts for risky exec/shell patterns and tool-usage limits, then reports risks and policy recommendations.

Exec Policy Enforcer

Inspect local artifacts for risky exec/shell usage and enforce simple policy limits.

bash
node skills/exec-policy-enforcer/index.js
node skills/exec-policy-enforcer/index.js C:/Users/Admin/.openclaw/workspace

Checks

  • High exec/shell ratio in recent session artifacts
  • Repeated exec patterns without tool-policy justification
  • Risky flag exposure: admin/sudo/elevated intent
  • Optional enforcement limits for local workflows

Output

  • Risk count by severity
  • Top risky files
  • Simple policy recommendation

CLI

bash
node skills/exec-policy-enforcer/index.js [workspace]
node skills/exec-policy-enforcer/scripts/report.js [report_path]

Safety

  • Read-only audit. Does not send network requests or mutate history.
  • report.js only writes local JSON under memory/evolution/.