agora-protocol

Agora

Propose, vote, veto, and quorum semantics for multi-agent systems — layered on top of MCP and A2A without changing either spec.

What it does

A 2026 protocol analysis, Governance Gaps in Agent Interoperability Protocols, looked at MCP, A2A, ACP, ANP, and ERC-8004 and found that voting and dissent preservation are absent from all five. None of them define a quorum, a preference-aggregation rule, or a way to record that a proposal was rejected and why.

Agora is a reference implementation of those missing primitives: a small, dependency-free state machine for propose, then vote or veto, then resolve. Reference adapters carry that deliberation over real A2A messages and real MCP tool calls, so you keep the protocols you already run.

Install

npm install agora-protocol

Usage

Open a round, collect votes, and resolve it:

import { Round } from "agora-protocol";

const round = Round.propose({
  id: "deploy-2026-09-15",
  proposerId: "planner-agent",
  action: { type: "deploy", service: "checkout-api", version: "4.2.0" },
  voters: ["planner-agent", "reviewer-agent", "ops-agent"],
  quorum: { type: "fraction", value: 2 / 3 },
});

round.castVote({ agentId: "planner-agent", choice: "yes" });
round.castVote({ agentId: "reviewer-agent", choice: "yes" });

const resolution = round.evaluate();
// { outcome: "approved", tally: {...}, resolvedAt: ... }

A registered vetoer can stop the round no matter how the votes add up:

round.castVeto({
  agentId: "safety-agent",
  reason: "no confirmed backup exists for this bucket",
});

round.evaluate();
// { outcome: "vetoed", veto: {...}, resolvedAt: ... }

The annotated demo in the repository runs both scenarios and prints the wire messages:

npx tsx examples/demo.ts