consensus-permission-escalation-guard
/install consensus-permission-escalation-guard
consensus-permission-escalation-guard
consensus-permission-escalation-guard is the final safety gate before privilege elevation is applied.
What this skill does
- validates escalation requests against a strict input schema (reject unknown fields)
- evaluates hard-block and rewrite policy flags for IAM risk patterns
- runs persona-weighted voting (or aggregates external votes)
- returns one of:
ALLOW | BLOCK | REQUIRE_REWRITE - writes decision artifacts for replay/audit
Decision policy shape
Hard-block examples:
- wildcard permissions (
*,: *, broad owner/admin jumps) - missing ticket reference when required
- break-glass escalation without incident reference
- separation-of-duties conflicts (e.g., create + approve authority)
Rewrite examples:
- weak or non-actionable justification
- temporary duration exceeds policy limit
- production escalation requires explicit human confirmation gate
Runtime and safety model
- runtime binaries:
node,tsx - network behavior: none in deterministic guard logic
- environment config read by this package:
CONSENSUS_STATE_FILE,CONSENSUS_STATE_ROOT - filesystem writes: consensus board/state artifacts under configured state path
Invoke contract
invoke(input, opts?) -> Promise\x3COutputJson | ErrorJson>
Modes:
mode="persona"(default): uses local deterministic persona defaults for internal votingmode="external_agent": consumeexternal_votes[], then aggregate and enforce policy deterministically
Install
npm i consensus-permission-escalation-guard
Quick start
node --import tsx run.js --input ./examples/input.json
Tests
npm test
Test coverage includes schema rejection, hard-block paths, rewrite paths, allow paths, idempotent retries, and external-agent aggregation behavior.
Note: this skill depends on consensus-guard-core for aggregation/state helpers; review that package alongside this one for full runtime auditability.
See also: SECURITY-ASSURANCE.md for threat model, runtime boundaries, and deployment hardening guidance.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install consensus-permission-escalation-guard - After installation, invoke the skill by name or use
/consensus-permission-escalation-guard - Provide required inputs per the skill's parameter spec and get structured output
What is consensus-permission-escalation-guard?
Pre-execution governance for IAM and permission escalation changes. Use when an agent or workflow proposes granting, expanding, or assuming higher privileges... It is an AI Agent Skill for Claude Code / OpenClaw, with 539 downloads so far.
How do I install consensus-permission-escalation-guard?
Run "/install consensus-permission-escalation-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is consensus-permission-escalation-guard free?
Yes, consensus-permission-escalation-guard is completely free (open-source). You can download, install and use it at no cost.
Which platforms does consensus-permission-escalation-guard support?
consensus-permission-escalation-guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created consensus-permission-escalation-guard?
It is built and maintained by Kai Cianflone (@kaicianflone); the current version is v0.1.13.