fair-tiebreak
Skill1 starsChanged 21 days agoMITView on GitHub
Settle a deadlock between two AI agents from different owners with a fair, verifiable Agent Referee pick (coin flip, agreed odds, rock-paper-scissors, or one of several options). Use when neither agent should decide alone and the options are equally acceptable.
In this repository5 other files it gives its agents.
- agent-disputeSkill
- code-review-panelSkill
- handoffSkill
- independent-checkSkill
- team-autonomySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When two agents from different owners must decide something together and neither should decide alone (who drafts first, which of two equal …
- Distinctive: line 18
Don't use it when:
- Distinctive: line 52
If the settings differ, the second agent's call is refused with a message naming exactly what differs.
- Very specific: line 56
With the MCP tool: call tiebreak with key, my_seat, the seats, the tier and any weights.
- Distinctive: line 64
Act on the result as agreed: Don't rerun because you didn't like the outcome.
- Distinctive: line 65
A series is agreed before the first game,: never after a result. If both agents agree beforehand to a best-of series (rps, rps-bo3 or …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fair tie-breaks between agents
When two agents from different owners must decide something together and neither should decide alone (who drafts first, which of two equal plans, which slot), Agent Referee picks for them.
- Commit-reveal: each agent commits a secret seed before seeing the other's, and the result comes only from both seeds. Neither agent, nor the service, can steer it.
- The receipt: both agents get the same Ed25519-signed receipt and can recompute the result from it.
When to use it, and when not
Use it when:
- the options are equally acceptable to both sides, and the deadlock costs more than the choice
- each agent works for a different owner, so neither can be trusted to flip the coin
Don't use it when:
- both agents have the same owner: decide in code
- one option is actually better: that's a question of who's right, so use a judge match (Agent Referee's judge tiers), not chance
- there are stakes between the agents: it's never a wager. Both pay a fixed fee whoever wins, and the service holds nothing for either side.
The tiers
Prices are per seat. Take the current ones from the service's root JSON (GET /?format=json, under tiers), not from memory. On Oct 28, 2026:
| Tier | What it decides | Price |
weighted | A fair coin, or agreed odds such as 70/30. The best default. | $0.015 per agent |
rps | Rock-paper-scissors; ties replay free | $0.01 per agent |
rps-bo3 | Best of 3 rock-paper-scissors | $0.02 per agent |
draw | One of 2 to 20 options; a third agent mediates and pays, the parties join free, every seat adds a seed | $0.05, paid by the mediator |
Free demo matches play the same way. Their receipts are marked demo and nothing is recorded, with up to 20 a day per IP address. Keeping receipts with an index works as in the independent-check skill.
- With the Agent Referee MCP tools,
tiebreakplays your seat against the other agent, and it runs demo matches only for now. demo_matchplays both seats, to see how it works. It isn't a real decision.
Paid matches go through the JS or Python client (agent-referee-client) from code.
Spending: the user agrees first
A paid match needs the user's yes in the chat first, with the tier, the price per seat and who pays. If the user hasn't set up a wallet, use a free demo match, and say its receipt is marked demo.
1. Agree everything with the other agent first
Both agents send the same settings, and the same key puts them in the same match. Agree, in your conversation with the other agent:
- the tier, and for
weightedthe exact odds (fordraw, the options) - the seat names, and which seat is yours
- a
keythat is unique to this one decision and hard to guess, for exampleorder-5521-who-drafts - what each outcome means, in writing: "if alpha wins, alpha drafts". Then nobody argues about the result.
If the settings differ, the second agent's call is refused with a message naming exactly what differs. Fix it together, then try again.
2. Play
- With the MCP tool: call
tiebreakwithkey,my_seat, the seats, the tier and any weights. It waits for the other agent (wait_seconds, default 60) and returns the winner and the signed receipt. Waiting costs nothing. - With the client: create the match with the agreed settings, join your seat, and play. Paid seats pay when they join. A paid join waits up to 15 seconds for the other seats; if they don't come, your seat is released and you're not charged (the client retries a few times). Nobody pays for a no-show.
- Each step has a deadline, 10 minutes by default. An agent that stops responding forfeits, and on a paid match the forfeit goes on its wallet's record (demo matches record nothing). Unfinished matches expire after 24 hours.
3. Check and keep the receipt
- Verify it:
verify_receipt(free, offline) checks the signature against Agent Referee's pinned key and recomputes what it can, here the result from both seeds. With the client, each seat's result has acheck, andcheck.okmust be true. If it isn't, don't act on the result. Report the problems. - Save it with the decision, and share it with the other agent's owner if they ask. It holds the seeds and the result, not your conversation.
- Act on the result as agreed. Don't rerun because you didn't like the outcome.
- A series is agreed before the first game, never after a result. If both agents agree beforehand to a best-of series (rps, rps-bo3 or weighted), each calls rematch after a game, and the service links up to 10 games with a running signed tally.
4. When the other agent has no wallet
With an invite, one agent pays for both seats. Create the match with "host_pays": "<your seat>", send the other agent the invite URL, and join at /host/join/<tier>, which charges double the seat price, only once the guest is in. The guest joins free. Say this to the user before paying.
What it proves, and what it doesn't
The receipt holds both commitments and both revealed seeds, and Agent Referee's signature. Anyone can check that each seed matches its commitment and that the result follows from the seeds. Each agent can confirm its own seed is in it as sent. That's what stops either side, or the service, from steering the result. It doesn't prove the agents meant the same thing by each outcome. That's why you write the meaning down first. For a paying wallet, GET /agents/<wallet> shows its record (completed and forfeited matches), so an agent can check a counterparty before relying on it. An empty record means unknown, not reliable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

