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 and you need deterministic ALLOW/BLOCK/REQUIRE_REWRITE decisions with strict schema validation, idempotency, and board-native audit artifacts.
Why use this skill?
Secure your OpenClaw agent workflows with deterministic IAM governance. Prevent privilege escalation risks and enforce strict audit trails.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kaicianflone/consensus-permission-escalation-guardWhat This Skill Does
The consensus-permission-escalation-guard acts as an automated, deterministic governance layer for any OpenClaw agent workflow involving IAM or permission modification. Rather than allowing agents to modify system roles arbitrarily, this skill serves as a mandatory gatekeeper. It validates every escalation request against a strict schema, ensuring no malformed inputs bypass security logic. By evaluating requests against hard-coded policy flags, it identifies dangerous patterns—such as wildcard permissions, separation-of-duties violations, or missing incident references—before any change is enacted.
The skill operates in two primary modes: persona mode, which uses internal deterministic logic for standard authorization, and external_agent mode, which allows for complex multi-party voting and auditing. Upon evaluation, the skill returns an explicit ALLOW, BLOCK, or REQUIRE_REWRITE decision. Crucially, it enforces idempotency and generates auditable board artifacts for every transaction, ensuring that security teams have a complete trail of the decision-making process for post-incident analysis.
Installation
You can add this skill to your OpenClaw environment using the following command:
clawhub install openclaw/skills/skills/kaicianflone/consensus-permission-escalation-guard
Ensure that you have consensus-guard-core installed, as it is a required dependency for the aggregation and state management logic. The skill requires Node.js and tsx to execute the policy logic locally.
Use Cases
- Automated IAM Provisioning: Preventing agents from granting 'AdministratorAccess' or wildcards to transient task roles.
- Break-Glass Procedures: Ensuring that urgent production escalations are tied to a valid incident or ticket identifier before approval.
- Separation of Duties (SoD): Validating that an agent requesting permission to create a user profile is not simultaneously the one approving the elevation of that user's rights.
- Audit Compliance: Creating a structured record of why a specific elevation was allowed or denied, useful for SOC2 or internal security audits.
Example Prompts
- "OpenClaw, please evaluate the proposed IAM update in ./policies/dev-to-prod.json and run the consensus-permission-escalation-guard to check for policy violations."
- "Run the consensus-permission-escalation-guard on the current workflow. If the status is REQUIRE_REWRITE, suggest a more specific, non-wildcard policy definition for the requested role."
- "Analyze the escalation request for the database migration task and use the external_agent mode to aggregate voting from the security_audit_team agent before applying changes."
Tips & Limitations
- Deterministic Nature: This skill is designed for safety, not flexibility. It will strictly block any request that does not perfectly adhere to the defined schema.
- Configuration: Ensure
CONSENSUS_STATE_ROOTis defined in your environment to prevent state file write errors. - Auditability: Periodically rotate or archive your consensus state files, as this skill performs continuous file writes to maintain the integrity of the audit logs.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kaicianflone-consensus-permission-escalation-guard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
consensus-persona-generator
Generate and persist reusable persona panels (persona_set artifacts) for consensus decision workflows. This skill initializes evaluator diversity for downstream guards; ongoing reputation updates are owned by consensus-persona-engine.
Consensus Interact
Skill by kaicianflone
consensus-send-email-guard
Persona-weighted pre-send email governance for AI systems. Produces APPROVE/BLOCK/REWRITE decisions, writes decision artifacts to the board ledger, updates persona reputation over time, and returns strict machine-parseable JSON.
consensus-publish-guard
Persona-weighted governance for outbound publishing (blog, social, announcements). Prevents unsafe public claims via hard-block checks, weighted consensus, rewrite paths, and board-native audit artifacts.
consensus-persona-respawn
Ledger-informed persona lifecycle management. Replaces low-performing personas with successor personas derived from mistake patterns in board decision history, preserving adaptive governance over long-running automation. Reputation updates are computed by consensus-persona-engine.