← 返回
开发者工具 中文

consensus-guard-core

Open-source Consensus.Tools skill for governed AI decisions with board-native artifacts, strict JSON contracts, and deterministic policy behavior.
开源Consensus.Tools技能,支持通过董事会原生工件、严格JSON合约及确定性策略行为进行AI治理决策。
kaicianflone
开发者工具 clawhub v1.1.13 2 版本 100000 Key: 无需
★ 0
Stars
📥 759
下载
💾 7
安装
2
版本
#latest

概述

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-core is a first-party consensus package
  • versions are semver-pinned in package.json for 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

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.

版本历史

共 2 个版本

  • v1.1.13 当前
    2026-03-29 13:55 安全 安全
  • v1.1.10
    2026-03-07 01:55

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,162
productivity

consensus-interact

kaicianflone
使用本地优先或托管看板(取决于...),端到端操作 consensus.tools(发布任务、创建提交、投票及解析结果)。
★ 1 📥 1,957
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,181