返回顶部
c

consensus-deployment-guard部署共识守卫

Pre-deployment governance for release and infrastructure rollout requests. Use when an agent or workflow proposes shipping code/config/infrastructure changes to staging or production and you need deterministic ALLOW/BLOCK/REQUIRE_REWRITE decisions with strict schema validation, idempotency, and board-native audit artifacts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.10
安全检测
已通过
439
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

consensus-deployment-guard

consensus-deployment-guard

consensus-deployment-guard 是部署执行前的最终安全防护门。

该技能的功能

  • - 根据严格的JSON模式验证部署请求(拒绝未知字段)
  • 评估硬阻断和重写策略标志以识别发布风险模式
  • 运行确定性角色加权投票(或聚合外部投票)
  • 返回以下结果之一:ALLOW | BLOCK | REQUIRE_REWRITE
  • 写入决策工件以供回放/审计

决策策略形态

硬阻断示例:

  • - 必需测试未通过
  • CI状态失败
  • 需要时缺少回滚工件
  • 不兼容的模式迁移
  • 错误预算已超支

重写示例:

  • - 生产部署未按策略要求使用金丝雀发布
  • 初始发布百分比超过策略限制
  • 生产部署缺少明确的人工确认关卡
  • CI仍处于待处理状态
  • 模式兼容性未知

运行时与安全模型

  • - 运行时二进制文件:node、tsx
  • 网络行为:防护决策逻辑中无网络行为
  • 此包读取的环境配置:CONSENSUSSTATEFILE、CONSENSUSSTATEROOT
  • 文件系统写入:在配置的状态路径下写入共识板/状态工件

调用契约

  • - invoke(input, opts?) -> Promise

模式:

  • - mode=persona(默认):使用本地确定性角色默认值进行内部投票
  • mode=externalagent:消费externalvotes[],进行确定性聚合,并执行策略

安装

bash
npm i consensus-deployment-guard

快速开始

bash
node --import tsx run.js --input ./examples/input.json

测试

bash
npm test

测试覆盖范围包括:模式拒绝、硬阻断路径、重写路径、允许路径、幂等重试以及外部代理聚合行为。

另请参阅:SECURITY-ASSURANCE.md,了解威胁模型、运行时边界和部署加固指南。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 consensus-deployment-guard-1776288437 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 consensus-deployment-guard-1776288437 技能

通过命令行安装

skillhub install consensus-deployment-guard-1776288437

下载

⬇ 下载 consensus-deployment-guard v0.1.10(免费)

文件大小: 21.59 KB | 发布时间: 2026-4-16 18:31

v0.1.10 最新 2026-4-16 18:31
Bumped consensus-guard-core dependency to ^1.1.15 and rolled forward release.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部