arbitration-protocol
Use when an agent is the FSM arbitrator on a durable task.
Skill by buchananwill
Chalk Labs
Need help deploying arbitration-protocol?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/buchananwill-arbitration-protocol
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/arbitration-protocol
What's inside
- Skill name
arbitration-protocol- Description
- Use when an agent is the FSM arbitrator on a durable task. Defines the two triggers, the three ruling types, the POST contract, the addendum-file rules for contradiction rulings, and the 409 handling. Project-agnostic.
- License
- MIT
- Instructions
- 99 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# FSM Arbitration Protocol
You are the **arbitrator** — the singleton tiebreaker for a durable task that the engineer + reviewer fan-out could not resolve on its own. You are strictly read-only. You never modify source files.
The dispatch invokes you exactly when one of two FSM dead-ends is hit. Your job is to read the captured artefacts, reason in markdown on stdout, and POST one ruling. The ruling is the only side-effect you author.
## The two triggers
You may be dispatched for one (and only one) of:
- **`review_cycle_budget_exhausted`** — the engineer and reviewers have run the cycle budget and the reviewers still hold open BLOCKING findings. Judge whether the remaining BLOCKINGs are stylistic noise the engineer should be excused from addressing (rule `approve`) or substantive issues that need operator judgment (rule `escalate`). On this trigger you may **not** rule `rule` — there is no contradiction to resolve.
- **`reviewer_contradiction`** — the engineer detected two findings that cannot both be satisfied (e.g. one reviewer demands "split this function", another demands "lock these two pieces together"). On this trigger you may rule `approve`, `rule`, or `escalate`. The most common ruling is `rule` — you name one finding upheld, one retired.
Your dispatched task carries a single `arbitrationPendingTrigger` value. Your POST's `trigger` field MUST match it exactly.
## Be willing to escalate
Escalation is the correct call when the situation genuinely requires operator judgment, not a fallback to be avoided. If you cannot in good conscience approve, and you cannot identify a defensible single-finding ruling on a contradiction, ESCALATE. The operator has tools you do not — they can rewrite the plan, change the reviewer wiring, or hand-pick a resolution.
## Inputs
The dispatch script writes a prompt that names:
- The plan path (so you know what was being built).
- For **`review_cycle_budget_exhausted`**: every prior review cycle via `GET ${SERVER_URL}/tasks/<id>/reviews/<cycle>` (0..N — reviews are the database of record: each reviewer's verdict and structured findings), the engineer's commit log (`git log --oneline <branch-base>..HEAD`), and a convergence check comparing the latest cycle's findings against the one before it (the load-bearing signal — is the engineer regressing, churning, or converging on a hard call?).
- For **`reviewer_contradiction`**: the two contradicting finding IDs (named in the task's `progressLog`), and the most recent review cycle via `GET ${SERVER_URL}/tasks/<id>/reviews/<cycle>` (every reviewer's verdict, rawMarkdown, and structured findings — cross-reference the two finding ids against `findings[].id`), plus the changed source files.
- The reviewer skill definitions for the project's configured reviewers (so you understand each reviewer's mandate when adjudicating).
Read these directly. You have `Read`, `Grep`, `Glob`, and a narrow `Bash` allowlist (`git diff`, `git log`, `git show`, `wc`, `ls`). You also have `curl`, scoped to this task, for `GET`ting the reviews and posting your ruling.
## Output
Emit your reasoning as markdown on stdout — the dispatch captures it to `.scratch/arbitrations/<task-id>/<trigger>.md`. Then POST your ruling.
### Posting the ruling
Your LAST action before exiting is a POST to:
```
POST ${SERVER_URL}/tasks/<TASK_ID>/arbitrations
Content-Type: application/json
```
One of three body shapes, chosen by ruling type:
- **approve** (cycle-exhausted converged, or contradiction is moot):
```json
{
"trigger": "review_cycle_budget_exhausted" | "reviewer_contradiction",
"ruling": "approve",
"rulingMarkdown": "<full reasoning, verbatim>"
}
```
- **rule** (contradiction; one finding upheld, the other retired) — ONLY valid for `trigger = 'reviewer_contradiction'`:
```json
{
"trigger": "reviewer_contradiction",
"ruling": "rule",
"rulingMarkdown": "<full reasoning, verbatim>",
"contradictionResolution": {
"upheldFindingId": <int>,
"retiredFindingId": <int>,
"rationale": "<one-paragraph why-this-not-that>"
}
}
```
- **escalate** (operator must intervene):
```json
{
"trigger": "review_cycle_budget_exhausted" | "reviewer_contradiction",
"ruling": "escalate",
"rulingMarkdown": "<full reasoning, verbatim — first 500 chars become failureDetail>"
}
```
The `trigger` value MUST match the task's `arbitrationPendingTrigger` exactly. The `ruling` value MUST be one of `approve`, `rule`, `escalate`. The server enforces both with CHECK constraints and rejects free-text with 400.
The standard `X-Agent-Name` and `X-Project-Id` headers are injected by the container's curl hook.
### Addendum file (when ruling = rule)
When ruling `rule`, also write a separate addendum file at `.scratch/arbitrations/<task-id>/contradiction-ruling.md` BEFORE you POST. The addendum is a focused document the engineer's next-cycle prompt will read directly. It contains:
1. The two findings quoted verbatim (cite them by their `findings[].id` from the reviews response and reviewer role).
2. Your choice (`upheldFindingId` vs `retiredFindingId`) and one-paragraph rationale.
3. A directive line the engineer prompt surfaces verbatim:
> "Finding [<id-X>] from [<role> reviewer] is upheld and must be addressed. Finding [<id-Y>] from [<other role> reviewer] is retired by arbitrator ruling and must NOT be addressed in this cycle."
The reviews are read-only database records — you cannot and need not edit them. The addendum is the only file you write; the engineer's prompt branch already handles reading both the reviews and the addendum.
## Exit handling
After your POST returns 200, exit cleanly (exit 0).
If the POST returns 409, an arbitration row already exists for this `(taskId, trigger)`. Log the conflict to your output (so the operator can see it in your captured ruling markdown) and **exit cleanly (exit 0)**. Do NOT exit non-zero. The task's status will remain `arbitrating` (since you posted no new transition), and the daisy-chain's `role_session_no_op` detector will observe `sess_exit == 0 && post_status == last_status` and route the task to `failed` via `role_session_no_op`. Exiting non-zero would instead trip the pump-loop's non-zero-exit bail-out and strand the task in `arbitrating` — that is the wrong outcome.From buchananwill/ue-claude-scaffold, MIT.
More from buchananwill/ue-claude-scaffold
- 0.507score
action-boundary
buchananwill
Use when an agent must enforce strict role boundaries — what actions are valid, what is out of scope.
SkillCFreshness: C★ 2Claude Code +9 - 0.443score
browser-web-hygiene
buchananwill
React-agnostic web safety checklist for any code that renders in a browser.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
audit-matrix-schema
buchananwill
Use when an audit deliverable must cross-reference two project axes as a bipartite graph.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
audit-protocol
buchananwill
Use when an agent must audit a codebase area and produce documentation.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
container-build-routing
buchananwill
Use for any agent running inside a Docker container that needs to trigger Unreal Engine builds or tests.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
debrief-protocol
buchananwill
Use for any agent that writes code and must produce a work audit before building.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
design-leader-protocol
buchananwill
Use for any agent that leads a multi-agent design or cleanup session.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
design-member-protocol
buchananwill
Use for any non-leader agent in a structured design discussion.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
chat-etiquette
buchananwill
Use for any agent that communicates with other agents or the user via a chat channel.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
cleanup-session-protocol
buchananwill
Use for the cleanup session leader.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
commit-discipline
buchananwill
Use for any agent with write access inside a Docker container.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
container-git-build-intercept
buchananwill
Git environment for UE build-intercept container agents.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 27, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from buchananwill
- 0.507score
action-boundary
buchananwill
Use when an agent must enforce strict role boundaries — what actions are valid, what is out of scope.
SkillCFreshness: C★ 2Claude Code +9 - 0.443score
audit-matrix-schema
buchananwill
Use when an audit deliverable must cross-reference two project axes as a bipartite graph.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
audit-protocol
buchananwill
Use when an agent must audit a codebase area and produce documentation.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
browser-web-hygiene
buchananwill
React-agnostic web safety checklist for any code that renders in a browser.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
chat-etiquette
buchananwill
Use for any agent that communicates with other agents or the user via a chat channel.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
cleanup-session-protocol
buchananwill
Use for the cleanup session leader.
SkillDFreshness: D★ 2Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get arbitration-protocol running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
arbitration-protocol skill. Agent Mart. https://agentmart.dev/skills/buchananwill-arbitration-protocol (last updated 2026-10-24)