consensus-deployment-guard
/install consensus-deployment-guard
consensus-deployment-guard
consensus-deployment-guard is the final safety gate before deployment execution.
What this skill does
- validates deployment requests against a strict JSON schema (reject unknown fields)
- evaluates hard-block and rewrite policy flags for release risk patterns
- runs deterministic 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:
- required tests not passing
- CI status failed
- rollback artifact missing when required
- incompatible schema migration
- error budget already breached
Rewrite examples:
- production rollout not using canary when policy requires it
- initial rollout percentage above policy limit
- production deploy missing explicit human confirmation gate
- CI still pending
- schema compatibility unknown
Runtime and safety model
- runtime binaries:
node,tsx - network behavior: none in guard decision 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): use local deterministic persona defaults for internal votingmode="external_agent": consumeexternal_votes[], aggregate deterministically, and enforce policy
Install
npm i consensus-deployment-guard
Quick start
node --import tsx run.js --input ./examples/input.json
Tests
npm test
Coverage includes schema rejection, hard-block paths, rewrite paths, allow paths, idempotent retries, and external-agent aggregation behavior.
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-deployment-guard - After installation, invoke the skill by name or use
/consensus-deployment-guard - Provide required inputs per the skill's parameter spec and get structured output
What is consensus-deployment-guard?
Pre-deployment governance for release and infrastructure rollout requests. Use when an agent or workflow proposes shipping code/config/infrastructure changes... It is an AI Agent Skill for Claude Code / OpenClaw, with 454 downloads so far.
How do I install consensus-deployment-guard?
Run "/install consensus-deployment-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is consensus-deployment-guard free?
Yes, consensus-deployment-guard is completely free (open-source). You can download, install and use it at no cost.
Which platforms does consensus-deployment-guard support?
consensus-deployment-guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created consensus-deployment-guard?
It is built and maintained by Kai Cianflone (@kaicianflone); the current version is v0.1.10.