Skip to main content

ACGS deliberation and HITL orchestration package

Project description

acgs-deliberation

PyPI Python License: AGPL-3.0

Deliberation, HITL orchestration, consensus, and impact routing for ACGS agents.

acgs-deliberation is the extraction-friendly deliberation package for the ACGS runtime. Today it re-exports the stable surface from enhanced_agent_bus.deliberation_layer, so you can start using the standalone import path now without waiting for the full source move.

Installation

acgs-deliberation supports Python 3.11+.

pip install acgs-deliberation

Quick Start

from acgs_deliberation import Vote, VotingService, calculate_message_impact
from enhanced_agent_bus.models import AgentMessage, MessageType, Priority

message = AgentMessage(
    from_agent="planner",
    to_agent="compliance",
    message_type=MessageType.COMMAND,
    priority=Priority.HIGH,
    content={"action": "deploy", "target": "payments"},
)

voting = VotingService(force_in_memory=True)
election_id = await voting.create_election(
    message,
    participants=["security", "risk", "compliance"],
)

await voting.cast_vote(
    election_id,
    Vote(agent_id="security", decision="APPROVE", reason="controls in place"),
)

decision = await voting.get_result(election_id)
impact = calculate_message_impact(message.to_dict(), {"environment": "production"})

Redis-Backed Voting

from acgs_deliberation import get_redis_voting_system

redis_voting = get_redis_voting_system()

Key Features

  • Voting primitives including VotingService, Election, Vote, and VotingStrategy.
  • Event-driven collection via EventDrivenVoteCollector, VoteSession, and VoteEvent.
  • Deliberation queue support with DeliberationQueue and DeliberationTask.
  • Optional Redis-backed queueing and voting primitives for distributed deployments.
  • Impact scoring and GraphRAG context enrichment hooks for review routing.

Package Relationship

  • Install name: acgs-deliberation
  • Import namespace: acgs_deliberation
  • Runtime dependency: enhanced-agent-bus>=3.0.0

License

AGPL-3.0-or-later. Commercial licensing is available; contact hello@acgs.ai.

Links

Constitutional Hash: 608508a9bd224290

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acgs_deliberation-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acgs_deliberation-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file acgs_deliberation-0.1.0.tar.gz.

File metadata

  • Download URL: acgs_deliberation-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for acgs_deliberation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b6ecf1e2125d530f7f4bba7f04cc577a7b040953e544158537a231467a803fb
MD5 096e88564c41929c4df9611556b17050
BLAKE2b-256 3223d5f83fb2b8509bcdae6cc6743a05758e5be8573cb6f784cbf4f88280e78c

See more details on using hashes here.

File details

Details for the file acgs_deliberation-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for acgs_deliberation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26669e23e984e69a3c62f1a7cb12fccfad62f3889a3395d3bb6791b8883a33d7
MD5 d9f3b553edce37bd7fdef9d8c99a50b1
BLAKE2b-256 fb4f40459107c096b684fee7f2446d27bf899e8cc1c9e0d8f3dbd61d74cfce55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page