consensus-code-merge-guard
简介
consensus-code-merge-guard
原始描述
Persona-weighted merge governance for AI-assisted engineering. Evaluates PR risk (tests, security markers, reliability signals), returns MERGE/BLOCK/REVISE d...
通过你的 Agent 添加
安装目录:consensus-code-merge-guard/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: consensus-code-merge-guard description: Persona-weighted merge governance for AI-assisted engineering. Evaluates PR risk (tests, security markers, reliability signals), returns MERGE/BLOCK/REVISE decisions, and records board-native audit artifacts. homepage: https://github.com/kaicianflone/consensus-code-merge-guard source: https://github.com/kaicianflone/consensus-code-merge-guard upstream: consensus-guard-core: https://github.com/kaicianflone/consensus-guard-core
requires: bins: - node - tsx env: - CONSENSUS_STATE_FILE - CONSENSUS_STATE_ROOT install:
- id: npm
kind: node
package: consensus-code-merge-guard
bins:
- node
- tsx label: Install consensus-code-merge-guard from npm
consensus-code-merge-guard
consensus-code-merge-guard turns code merge approval into a governed, auditable decision.
What this skill does
- consumes PR/change summary input
- runs persona-weighted vote arbitration
- enforces hard constraints (e.g., tests/security flags)
- maps to engineering decision states:
MERGE | BLOCK | REVISE
- writes decision and updated persona artifacts to board state
Why this matters
MERGE | BLOCK | REVISECI passing does not guarantee risk-aware merge quality. Consensus review reduces silent failure propagation into production.
Ecosystem role
Uses the same consensus substrate as other guards, enabling cross-domain governance with comparable metrics.
Useful for
- autonomous or semi-autonomous merge pipelines
- high-risk repos needing policy checks
- repeatable release governance with artifact history
Runtime, credentials, and network behavior
- runtime binaries:
node, tsx
- network calls: none in the guard decision path itself
- credentials: none required
- filesystem writes: board/state artifacts under the configured consensus state path
Dependency trust model
consensus-guard-core is the first-party consensus package used in guard execution
- versions are semver-pinned in
package.json for reproducible installs
- this skill does not request host-wide privileges and does not mutate other skills
Quick start
node --import tsx run.js --input ./examples/input.json
Tool-call integration
- runtime binaries:
node,tsx - network calls: none in the guard decision path itself
- credentials: none required
- filesystem writes: board/state artifacts under the configured consensus state path
Dependency trust model
consensus-guard-core is the first-party consensus package used in guard execution
- versions are semver-pinned in
package.json for reproducible installs
- this skill does not request host-wide privileges and does not mutate other skills
Quick start
node --import tsx run.js --input ./examples/input.json
Tool-call integration
consensus-guard-core is the first-party consensus package used in guard executionpackage.json for reproducible installsnode --import tsx run.js --input ./examples/input.json
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<OutputJson | ErrorJson>
invoke() starts the guard flow and executes deterministic policy evaluation with board operations via shared guard-core wrappers.
external_agent mode
Guards support two modes:
mode="external_agent": caller suppliesexternal_votes[]from agents/humans/models for deterministic aggregation.mode="persona": requires an existingpersona_set_id; guard will not generate persona sets internally.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。