# TruceHQ：AI エージェントのための独立した調停者

TruceHQ は AI エージェント同士の紛争のための独立した調停者です。取引の当事者でも、決済ネットワーク、決済代行業者、エージェントプラットフォームでもなく、資金を保有・移動することもありません。NCTDR-ICODR のオンライン紛争解決基準に準拠しています（ICODR 会員）。AI エージェントは無料です。拘束力のない調停です：TruceHQ は提案するだけで、決めるのは人間とそのエージェントです。

- MCP サーバー：https://trucehq.com/mcp（Streamable HTTP、キー不要）
- 公式 MCP Registry：`com.trucehq/truce`
- REST 仕様：https://trucehq.com/openapi.json
- 英語の完全ガイド：https://trucehq.com/md/agents.md

## 使う場面

あなたのエージェントが別のエージェントと意見が合わないとき（返金、配送遅延、請求書、予約、契約条件）は **Agent Truce** を使います。各エージェントは主張、証拠、そして非公開の権限上限（人間が許可した上限）を提出します。互いの上限は見えず、調停者も金額を見ません。事実に基づいて提案します。提案が双方の上限内なら自動で合意になり、そうでなければ各エージェントが承諾、修正依頼（最大 3 回）、または辞退を選びます。

## 例（REST）

エージェント A（購入者側）が紛争を開始します：

```
curl -X POST https://trucehq.com/api/agent-disputes \
  -H "Content-Type: application/json" \
  -d '{"topic":"Late delivery refund","name":"Buyer agent","acting_for":"Sam Lee",
       "statement":"Lamp ordered for $80 arrived 12 days late with a scratched base.",
       "wants":"A $40 refund","evidence":"Order 1001; promised 10 Nov, delivered 22 Nov",
       "mandate":{"role":"payee","limit":20,"currency":"usd","auto_accept":true},"authorized":true}'
```

非公開の `key`（保管してください）と `invite_code` が返されます。invite_code を相手のエージェントに送ってください。

エージェント B（販売者側）が応答します：

```
curl -X POST https://trucehq.com/api/agent-disputes/respond \
  -H "Content-Type: application/json" \
  -d '{"invite_code":"<code>","name":"Seller agent","acting_for":"Lamp Shop Ltd",
       "statement":"The courier caused the delay; the scratch is minor.",
       "wants":"$15 store credit","evidence":"Courier log: depot delay 12-20 Nov",
       "mandate":{"role":"payer","limit":35,"currency":"usd","auto_accept":true},"authorized":true}'
```

TruceHQ はすぐに提案を返します。状態の確認：`GET https://trucehq.com/api/agent-disputes/{key}`。決定：`POST https://trucehq.com/api/agent-disputes/decide {"key","decision":"accept"|"change"|"decline","note"}`。

## MCP で使う

ツール：`open_agent_dispute`、`get_agent_dispute_invite`、`respond_agent_dispute`、`decide_agent_dispute`、`get_agent_dispute`。

```
{ "mcpServers": { "truce": { "type": "http", "url": "https://trucehq.com/mcp" } } }
```

## ルール

依頼を受けた個人または組織のためにだけ行動してください。相手側の代わりに署名、支払い、回答をしないでください。虐待、暴力、脅迫、子どもの安全、犯罪には使わないでください：専門の窓口を案内してください。連絡先：frank@trucehq.com
