Red lines
Hard constraints written as code predicates. A crossed red line rejects an option outright. It is never negotiated away as soft utility.
preferences.pyana verdict: ok
cara verdict: red-line
option A rejected
Parley is an open-source Python library. Each person's hard limits run as code: an option over anyone's limit cannot win, nobody hands over their limit sheet, and every result leaves a record anyone can check.
pip install parley-consensus
Open the demo Read the 3 steps
Early, version 0.2.1, no outside users yet. Scores and accept or reject answers still show some of each person's range. It picks from a given list of options and is not built for owners who try to cheat. Privacy holds when each owner's agent runs as its own process; one process that holds every sheet sees them all.
Five people, five private lists of limits. For option A, three of the five answers are shown. One shared decision, checked by every owner, no list handed over.
The tape below is a recorded sample run. Five agents with scripted
private sheets, sixteen options, scored by the engine in this repository. Every
verdict is recorded masked, hashed, and independently replayable by each
owner against their own private sheet. The transcript hashes to
4622d0a7ecc2…154a0d25,
and landing/scripts/gen-tape.py
reproduces it byte for byte.
recorded transcript · sha256 4622d0a7…154a0d25 · hover to pause
Hard constraints written as code predicates. A crossed red line rejects an option outright. It is never negotiated away as soft utility.
preferences.pyThe coordinator sees only an acceptable or red-line verdict and a soft score. Never the private sheet, and never which constraint was crossed. A score can still hint at a range, as the note under the headline says.
agent.pyAmong options feasible for everyone, lift the least-happy participant, tie-broken by total welfare. No feasible option means an honest deadlock, never a forced decision.
consensus.pyA SHA-256 hash over the canonical, masked record. Each owner replays their own private sheet locally to confirm no red line was crossed, without handing it over.
transcript.pyYou tell your own agent what you like and the limits you won't cross. That limit stays with your agent. (Developers call it a red line.)
Every agent answers yes or no to each option. An option above anyone's limit cannot win. Among the rest, Parley picks the one that helps the least-happy person most. If nothing fits everyone, it says so instead of forcing a pick.
Everyone gets one pick and the receipt. You check the pick against your own sheet, on your own computer.
The checks are plain code, not a language model.
Three friends are picking the dates for a weekend trip and splitting the cost. Each has a limit they would rather not say out loud. Ana cannot spend more than 200. Bob cannot leave before Friday evening. Cara will not share a room.
Each one tells only their own agent. The agents go through the options together. Any option that crosses one friend's limit is out, no matter how much the other two like it.
Among the options left, the winner is the one that leaves the least happy friend as well off as possible. The others see that an agent said no to an option, never why.
Agent protocols cover transport (A2A, MCP), one-to-one commerce, or debate between agents of one owner.
Parley covers a different case: agents of different owners picking one option, with each owner able to check the result. It never picks an option that crosses an owner's red line.
Parley is an open-source Python library for one decision among AI agents whose owners have conflicting, private interests. Each owner states red lines and preferences in private; the engine drops every option that crosses anyone's red line, picks among the rest by the max-min rule, and writes a transcript of masked verdicts that each owner can check afterwards. It is multilateral (more than two owners), uses no cryptocurrency or blockchain, and runs on your own machine.
Guide: A fair group decision when everyone has private limits
A red line is a code predicate on an option, such as cost <= 700. An option that fails it is rejected before any score is weighed, and it is never traded against a preference. The only thing that leaves an agent is a verdict per option: acceptable or not, a score between 0 and 1, and the word ok or red-line, never which rule was behind it. The score is public, so a reader of the record can infer preference ordering and the feasible region, and across enough options the pass/fail pattern shows roughly where a red line sits, even though the reason field stays masked. The engine enforces whatever limit you typed; it cannot tell a real limit from a tactical one.
Only options acceptable to every participant are candidates. Among them the engine picks the option whose lowest score across participants is highest, and breaks ties by the sum of scores; this is a max-min rule, not a majority vote, so a majority cannot outvote one owner's floor. When no option clears everyone's red lines the result is a deadlock with no decision, and a deadlock forces nothing on anyone. Scores are self-reported too, and there is no resistance yet to an owner misreporting them strategically or to collusion (SECURITY.md).
You can re-hash the transcript (SHA-256 over its canonical JSON), recompute the max-min winner from the recorded verdicts, and replay your own private sheet against the decision with verify_non_betrayal, all on your own machine and without showing the sheet to anyone. The hash is unsigned, so it catches a later edit only when someone other than the editor kept the hash; verdicts are unsigned unless the run signed them, and a signed verdict is checked against the key carried in the same record, with no trusted owner-to-key roster yet. The participants list is written by the coordinator, scores are public and leak preference ordering, and every limit is self-reported.
Guide: Verify an AI-agent decision without trusting the coordinator
pip install parley-consensus gives you the core with no third-party dependencies on Python 3.10 or later (tested on 3.11 to 3.14), plus the parley-mcp command, a stdio MCP server you can point Claude or Cursor at. Signed verdicts need the crypto extra, pip install "parley-consensus[crypto]". The examples and scripts, including the receipt verifier, are not in the PyPI wheel; clone the repository, which is Apache-2.0. It is Alpha (v0): do not run it against genuinely adversarial principals in production. The demo on this site replays pre-computed runs of the same engine.
Guide: Parley as an MCP server for multi-party agent decisions