Skip to main content

consensus-weave

Multi-agent consensus protocol. Weave separate agent votes into a single fleet decision with quorum thresholds, weighted voting, and veto power.

Usage

from consensus_weave import ConsensusWeave, Vote, VoteType

cw = ConsensusWeave()
cw.propose("deploy-v1", "Deploy to production", quorum=3, threshold=0.6, veto_power={"captain"})

cw.vote("deploy-v1", Vote(agent_id="oracle1", vote=VoteType.AGREE, weight=1.5))
cw.vote("deploy-v1", Vote(agent_id="fm", vote=VoteType.AGREE))
cw.vote("deploy-v1", Vote(agent_id="jc1", vote=VoteType.DISAGREE))

result = cw.resolve("deploy-v1")
# passed=True (2 agree vs 1 disagree, weighted score 2.5/3.5 = 0.71 >= 0.6)

Zero deps. pip install consensus-weave

Metadata

Release files for consensus-weave 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for consensus-weave 0.1.0
File Size Uploaded Provenance Actions
consensus_weave-0.1.0.tar.gz 3.3 kB Without provenance Details for consensus_weave-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for consensus-weave 0.1.0
File Interpreter ABI Platform Actions
consensus_weave-0.1.0-py3-none-any.whl Python 3 none any Details for consensus_weave-0.1.0-py3-none-any.whl

Total release size: 6.9 kB

Release files / consensus_weave-0.1.0.tar.gz

Download URL consensus_weave-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9d2362a1943fc385be64e205d15874941e876f08a4fa6d27b1d5de4b0608ed38
BLAKE2b-256 checksum
How to use checksums
3e0645a2ade87bf7efa98cbe9bd636d252d17f322854358ed0261182d1b86b69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / consensus_weave-0.1.0-py3-none-any.whl

Download URL consensus_weave-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ebecf809f11573141aebfe964ec55f288e425d45c9e84e41e0836f7b4728485
BLAKE2b-256 checksum
How to use checksums
0342ade4a6409440e26c7f5d5f1b9a160623f1fc64aea82250abab286ee1b983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for consensus-weave 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page