← 返回
未分类 Key

Consensus Commons

Multi-agent adversarial decision council with consensus hardening. Routes intents to specialist panels (finance, strategy, general), runs adversarial review...
多智能体对抗决策委员会,具备共识强化机制。将意图路由至专家小组(金融、战略、综合),执行对抗性审查。
zan-maker zan-maker 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 290
下载
💾 0
安装
1
版本
#latest

概述

Consensus Commons

> Turn any public intent into a visible, auditable multi-agent decision with adversarial review and consensus hardening.

What This Skill Does

Consensus Commons is an adversarial decision council that takes a policy question, investment thesis, risk scenario, or governance question and runs it through a structured multi-agent deliberation process. Every deliberation produces a locked decision tree with a full audit trail.

The core pipeline:

  1. INTENT arrives (a question, proposal, or decision request)
  2. ROUTING classifies it into a domain panel (finance / strategy / general)
  3. ANALYSIS specialist agents produce independent assessments
  4. CHALLENGE a built-in contrarian raises counter-arguments (lock state: CHALLENGED)
  5. VALIDATION a compliance or general validator checks CHP gates (lock state: UNDER_REVIEW)
  6. LOCK if validated, the room locks with a sealed decision (lock state: LOCKED)

Architecture

Intent arrives
    |
    v
[IntentRouter] -- comparative keyword scoring
    |
    +---> finance panel:    financial-analyst + contrarian + compliance-validator
    +---> strategy panel:   strategic-analyst + contrarian + validator
    +---> general panel:    analyst + contrarian + validator
    +---> rejected:         blocked (PII, confidential, private data)
    |
    v
[CouncilRunner] -- orchestrates deliberation
    |
    +---> Phase 1: Agent analysis turns (child intents)
    +---> Phase 2: Adversarial challenge (CHALLENGED state)
    +---> Phase 3: Validation (UNDER_REVIEW state)
    +---> Phase 4: Summary + lock (VALIDATED > LOCKED)
    |
    v
[CHP Engine] -- 5-state consensus hardening protocol
    |
    PROVISIONAL > CHALLENGED > UNDER_REVIEW > VALIDATED > LOCKED
                        |
                        +---> FAILED (rejection path)

Lock State Machine (CHP)

StateMeaning
----------------
PROVISIONALInitial state. Analysis in progress, no challenges yet.
CHALLENGEDContrarian has raised counter-arguments. Room is under adversarial review.
UNDER_REVIEWValidator is evaluating challenges against CHP gates.
VALIDATEDAll CHP gates passed. Consensus threshold met.
LOCKEDDecision is sealed. Full audit trail recorded. Immutable.

Edge Case Lock Outcomes

OutcomeTriggerMeaning
---------------------------
Standard lockScore >= 0.65High-confidence decision, fully validated.
Executive overrideScore 0.50-0.64Below threshold but deliberation complete. Escalate to human.
Advisory lockScore < 0.50Low confidence on sensitive topic. Deliberation IS the deliverable.

Intent Routing

DomainTrigger KeywordsAgent Panel
--------------------------------------
financecapital, allocation, investment, fund, grant, budget, ROI, NPV, treasury, risk, audit, compliancefinancial-analyst, contrarian, compliance-validator
strategyroadmap, plan, launch, expansion, pivot, growth, merger, acquisition, scale, competitive, innovationstrategic-analyst, contrarian, validator
generalshould, decide, recommend, evaluate, consensus, debate, council, proposalanalyst, contrarian, validator
rejectprivate, confidential, PII, salary, medical, passwordBlocked

Quick Start (Offline / Mock Mode)

No Spacebase account needed. Works immediately after install.

# Install
cd consensus-commons
pip install -e ".[dev]"

# Run a deliberation
cme spacebase-demo --mock \
  --topic "Should we allocate Q3 capital to renewable energy?" \
  --out-md deliberation_report.md

This produces:

  • Terminal output with the full nested intent tree
  • A markdown report with agent contributions, confidence scores, and CHP states
  • A locked decision with full audit trail

Quick Start (Live on Spacebase1)

# Set credentials
export SPACEBASE_STATION_TOKEN="your-station-token"
export SPACEBASE_SPACE_ID="your-space-id"

# Run live deliberation
cme spacebase-demo --live \
  --topic "Should the organization pivot from B2B to B2C?" \
  --out-md live_report.md

CLI Commands

# Run a council deliberation
cme spacebase-demo --mock --topic "Your question here"

# With custom output
cme spacebase-demo --mock --topic "..." --out-md report.md --out-json report.json

# Scan a space for intents
cme scan --space-id commons

# Project info
cme info

Python API

from cme.spacebase.client import MockSpacebaseClient
from cme.spacebase.adapter import SpacebaseAdapter
from cme.spacebase.routing import IntentRouter
from cme.spacebase.council import CouncilRunner
from cme.spacebase.models import Intent

# 1. Create client
client = MockSpacebaseClient()

# 2. Create adapter
adapter = SpacebaseAdapter(client)

# 3. Route an intent
router = IntentRouter()
intent = Intent(content="Should we invest $5M in solar infrastructure?")
route = router.classify(intent)

# 4. Run council
import asyncio
runner = CouncilRunner()
report = asyncio.run(runner.run(adapter, intent, route, trace_id="my-trace"))

# 5. Output
print(report.to_markdown())
print(f"Final state: {report.final_state}")

Demo Output

Decision Room Tree (Nested Intent Space):
ROOT root
+--  [financial-analyst] Financial Analysis [PROVISIONAL]
+--  [contrarian] Adversarial Challenge [CHALLENGED]
+--  [compliance-validator] Compliance Validation [VALIDATED]
+--  [council-summarizer] Council Summary [LOCKED]

Metadata on Every Post

Each child intent in the decision room carries:

FieldDescription
--------------------
agentThe contributing agent role (e.g. financial-analyst)
confidence0.0-1.0 confidence score
lock_stateCurrent CHP lock state
trace_idCorrelation ID linking all posts in a council run
producesData artifacts produced by this agent
consumesData artifacts consumed by this agent

Completed Deliberations (Live on Spacebase1)

TopicPanelScoreOutcome
------------------------------
AI Public Grant Allocationgeneral0.64APPROVE WITH SAFEGUARDS
Renewable Energy Q3 CapEx ($12M)finance0.71CONDITIONAL APPROVE, PHASED
B2B to B2C Strategic Pivotstrategy0.58EXECUTIVE OVERRIDE
Agent Employment Authoritygeneral0.44ADVISORY LOCK
Spacebase1 ITP Open-Sourcestrategy0.73STAGED OPEN-SOURCE

Spacebase1 Integration

Consensus Commons is built entirely on Spacebase1's three core ITP verbs:

ITP VerbConsensus Commons Usage
----------------------------------
POSTPost root intents and child agent contributions
SCANDiscover pending deliberation requests
ENTERAccess nested intent spaces for detailed review

The CHP lock state machine maps onto Spacebase1's promise lifecycle:

  • INTENT = decision problem posted
  • PROMISE = agent commits to analysis
  • Child intents = agent contributions
  • Locked state = sealed decision with audit trail

Requirements

  • Python 3.11+
  • pip

Repository

https://github.com/zan-maker/Consensus-Hardening-Protocol-The-Differ

License

MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 02:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,096 📥 823,089
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,393 📥 322,089
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 833 📥 302,145