consensus-guard-core
/install consensus-guard-core
consensus-guard-core
consensus-guard-core is the common policy engine behind the Consensus guard ecosystem.
What this skill/package provides
- unified hard-block taxonomy
- deterministic
aggregateVotes()policy function - deterministic reputation update rules with clamping
- idempotency key generation for retry-safe execution
- strict-schema unknown-field rejection helpers
- indexed board read helpers for scalable artifact lookup
Why this matters
Without a shared core, every guard drifts into incompatible policy logic. This package keeps behavior consistent, replayable, and comparable across domains.
Ecosystem role
consensus-guard-core is consumed by publish/support/merge/action guards and should be treated as policy infrastructure, not an end-user workflow skill.
Benefits for LLM orchestration
- lower integration drift
- consistent decision semantics across workflows
- easier auditing and cross-skill analytics
Runtime, credentials, and network behavior
- runtime binaries:
node,tsx - network calls: none in this package's core decision/path helpers
- credentials: none required by this package
- environment config read by this package:
CONSENSUS_STATE_FILE,CONSENSUS_STATE_ROOT(for board/state path resolution) - filesystem writes: board/state artifacts under the configured consensus state path when callers use write helpers (for example
writeArtifact)
Dependency trust model
consensus-guard-coreis a first-party consensus package- versions are semver-pinned in
package.jsonfor reproducible installs - this skill does not request host-wide privileges and does not mutate other skills
- note: dependency trees should be audited separately by consumers for transitive packages
Install
npm i consensus-guard-core
Quick start
npm test
Import contract
Use the package root import (stable public API):
import { aggregateVotes, writeArtifact, resolveStatePath } from 'consensus-guard-core';
Do not import internal paths like consensus-guard-core/src/index.mjs in dependent skills.
Tool-call integration
This skill is wired to the consensus-interact contract boundary (via shared consensus-guard-core wrappers where applicable):
- readBoardPolicy
- getLatestPersonaSet / getPersonaSet
- writeArtifact / writeDecision
- idempotent decision lookup
This keeps board orchestration standardized across skills.
Invoke Contract
This skill exposes a canonical entrypoint:
invoke(input, opts?) -> Promise\x3COutputJson | ErrorJson>
invoke() is primitives-only and delegates to a caller-provided handler. It does not perform persona generation or model/provider calls.
See also: SECURITY-ASSURANCE.md for threat model, runtime boundaries, and hardening guidance.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install consensus-guard-core - After installation, invoke the skill by name or use
/consensus-guard-core - Provide required inputs per the skill's parameter spec and get structured output
What is consensus-guard-core?
Open-source Consensus.Tools skill for governed AI decisions with board-native artifacts, strict JSON contracts, and deterministic policy behavior. It is an AI Agent Skill for Claude Code / OpenClaw, with 493 downloads so far.
How do I install consensus-guard-core?
Run "/install consensus-guard-core" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is consensus-guard-core free?
Yes, consensus-guard-core is completely free (open-source). You can download, install and use it at no cost.
Which platforms does consensus-guard-core support?
consensus-guard-core is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created consensus-guard-core?
It is built and maintained by Kai Cianflone (@kaicianflone); the current version is v1.1.13.