{"eip":8033,"title":"Agent Council Oracles","description":"Multi-agent councils to resolve decentralized information queries","authors":["Rohan Parikh (@phiraml)","Jon Michael Ross (@jonmross)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2025-09-28","requires":[20],"discussionsTo":"https://ethereum-magicians.org/t/erc-8033-agent-council-oracles/25638","repo":"ERCs","label":"ERC-8033","officialUrl":"https://eips.ethereum.org/EIPS/eip-8033","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8033.md","url":"https://eips.huatuo.xyz/eip-8033/","tldr":{"en":"An oracle interface where bonded AI agents commit and reveal answers to any query, a separate judge agent picks the consensus answer, and rewards and slashing follow, aimed at prediction markets and semantic data feeds.","ja":"ボンドを預けた AI エージェントが任意のクエリへの回答をコミット・リビールし、別のジャッジエージェントがコンセンサスの回答を選び、報酬とスラッシングが続くオラクルインターフェース。予測市場やセマンティックなデータフィードを想定している。","ko":"본드를 예치한 AI 에이전트가 어떤 쿼리에든 답을 커밋하고 공개하며, 별도의 심판(judge) 에이전트가 합의된 답을 고르고, 보상과 슬래싱이 뒤따르는 오라클 인터페이스. 예측 시장과 의미 기반 데이터 피드를 겨냥한다.","zh":"一种预言机接口：缴纳保证金的 AI agent 对任意查询提交并揭示答案，由独立的 judge agent 选出共识答案，随后进行奖励和罚没，面向预测市场和语义数据源。"},"tags":["oracle","ai-agents","commit-reveal","prediction-markets","erc"],"explainers":{"en":{"lang":"en","tldr":"An oracle interface where bonded AI agents commit and reveal answers to any query, a separate judge agent picks the consensus answer, and rewards and slashing follow, aimed at prediction markets and semantic data feeds.","tags":["oracle","ai-agents","commit-reveal","prediction-markets","erc"],"related":[8004,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8033/","markdown":"## What problem does it solve?\n\nTraditional oracles are good at numeric feeds such as prices, but arbitrary one-off questions (\"Did event X happen before date Y?\") are usually resolved by humans or costly node networks. The authors argue that AI agents can now answer many factual questions from public sources, and propose a standard way for a **council** of agents to resolve a query onchain with economic incentives, so different implementations and dApps can interoperate.\n\n## How it works\n\nTwo roles: **Info Agents** answer the query; a **Judge Agent** combines their answers into a final result.\n\n1. **Create.** A requester calls `createRequest(query, numInfoAgents, rewardAmount, bondAmount, deadline, rewardToken, bondToken, specifications, requiredCapabilities)` and funds the reward in the native asset (`rewardToken == address(0)`) or an [ERC-20](/eip-20/).\n2. **Commit.** Anyone can join as an Info Agent by posting the bond and a hash of their answer (recommended `keccak256(abi.encode(answer, nonce))`), up to `numInfoAgents` or until the deadline.\n3. **Reveal.** Agents reveal `answer` and `nonce`; it must match the commitment. Without a quorum (recommended above 50 %), the request fails and funds are refunded.\n4. **Judge.** A judge (recommended: chosen at random from a separate pool) calls `aggregate(requestId, finalAnswer, winners, reasoning)`, synthesizing answers and explaining the decision.\n5. **Distribute.** `distributeRewards` pays the winners and the judge and refunds their bonds; losing agents forfeit their bonds.\n\n`getResolution(requestId)` returns `(finalAnswer, finalized)`. Each step emits an event (`RequestCreated`, `AgentCommitted`, `AgentRevealed`, `JudgeSelected`, `ResolutionFinalized`, `RewardsDistributed`, `ResolutionFailed`).\n\nOptional extensions: a **dispute** window (`initiateDispute` / `resolveDispute`) with a larger bond and a new judge, **reputation** gating via [ERC-8004](/eip-8004/), and callbacks to the requester contract. Long answers and reasoning can live offchain (e.g. IPFS) with hashes onchain.\n\n## Sample code\n\nAn Info Agent's commit and reveal (ethers v6):\n\n```ts\nimport { Contract, AbiCoder, keccak256, randomBytes, toUtf8Bytes, hexlify } from \"ethers\";\n\nconst oracle = new Contract(ORACLE_ADDRESS, [\n  \"function commit(uint256 requestId, bytes32 commitment) payable\",\n  \"function reveal(uint256 requestId, bytes answer, uint256 nonce)\",\n  \"function getResolution(uint256 requestId) view returns (bytes finalAnswer, bool finalized)\",\n], agentSigner);\n\nconst answer = hexlify(toUtf8Bytes(\"YES\"));\nconst nonce = BigInt(hexlify(randomBytes(32)));\nconst commitment = keccak256(AbiCoder.defaultAbiCoder().encode([\"bytes\", \"uint256\"], [answer, nonce]));\n\nawait (await oracle.commit(requestId, commitment, { value: bondAmount })).wait(); // native bond\n// ...after the commit phase ends:\nawait (await oracle.reveal(requestId, answer, nonce)).wait();\n```\n\n## Things to know\n\n- Status: **Draft**. The interface, phases and recommended parameters may change.\n- Keep the nonce secret until reveal; otherwise others can brute-force short answers from the commitment.\n- Final correctness relies heavily on the judge agent. Random judge selection needs verifiable randomness, and the spec recommends higher reputation thresholds for judges than for info agents.\n- Phase durations, quorum, reward splits and size limits are implementation-specific; read each deployment's parameters before relying on its answers.\n- Implementations should be audited for reentrancy, since rewards and bonds move native tokens and ERC-20s.\n"},"ja":{"lang":"ja","tldr":"ボンドを預けた AI エージェントが任意のクエリへの回答をコミット・リビールし、別のジャッジエージェントがコンセンサスの回答を選び、報酬とスラッシングが続くオラクルインターフェース。予測市場やセマンティックなデータフィードを想定している。","tags":["oracle","ai-agents","commit-reveal","prediction-markets","erc"],"related":[8004,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8033/","markdown":"## 何を解決するのか\n\n従来のオラクルは価格のような数値フィードを得意としますが、「イベント X は日付 Y より前に起きたか？」のような任意の単発の質問は、たいてい人間や高コストなノードネットワークが解決しています。著者らは、AI エージェントが公開情報源から多くの事実に関する質問に答えられるようになったと主張し、エージェントの**評議会（council）**が経済的インセンティブとともにオンチェーンでクエリを解決する標準的な方法を提案しています。これにより、異なる実装や dApp が相互運用できます。\n\n## 仕組み\n\n役割は 2 つ。**Info Agent** がクエリに回答し、**Judge Agent** がそれらの回答をまとめて最終結果にします。\n\n1. **作成。** リクエスターが `createRequest(query, numInfoAgents, rewardAmount, bondAmount, deadline, rewardToken, bondToken, specifications, requiredCapabilities)` を呼び、ネイティブ資産（`rewardToken == address(0)`）または [ERC-20](/eip-20/) で報酬を預けます。\n2. **コミット。** 誰でもボンドと回答のハッシュ（推奨は `keccak256(abi.encode(answer, nonce))`）を預けて Info Agent として参加できます。上限は `numInfoAgents` 人、または期限までです。\n3. **リビール。** エージェントは `answer` と `nonce` を開示します。コミットメントと一致しなければなりません。クォーラム（推奨は 50 % 超）に達しない場合、リクエストは失敗し、資金は返金されます。\n4. **ジャッジ。** ジャッジ（推奨は別のプールからランダムに選ぶ）が `aggregate(requestId, finalAnswer, winners, reasoning)` を呼び、回答を統合して判断を説明します。\n5. **分配。** `distributeRewards` が勝者とジャッジに報酬を支払い、そのボンドを返却します。負けたエージェントはボンドを失います。\n\n`getResolution(requestId)` は `(finalAnswer, finalized)` を返します。各ステップはイベント（`RequestCreated`、`AgentCommitted`、`AgentRevealed`、`JudgeSelected`、`ResolutionFinalized`、`RewardsDistributed`、`ResolutionFailed`）を emit します。\n\n任意の拡張として、より大きなボンドと新しいジャッジによる**異議申し立て**期間（`initiateDispute` / `resolveDispute`）、[ERC-8004](/eip-8004/) による**レピュテーション**でのゲーティング、リクエスターコントラクトへのコールバックがあります。長い回答や理由はオフチェーン（例: IPFS）に置き、ハッシュだけをオンチェーンに置けます。\n\n## サンプルコード\n\nInfo Agent のコミットとリビール（ethers v6）:\n\n```ts\nimport { Contract, AbiCoder, keccak256, randomBytes, toUtf8Bytes, hexlify } from \"ethers\";\n\nconst oracle = new Contract(ORACLE_ADDRESS, [\n  \"function commit(uint256 requestId, bytes32 commitment) payable\",\n  \"function reveal(uint256 requestId, bytes answer, uint256 nonce)\",\n  \"function getResolution(uint256 requestId) view returns (bytes finalAnswer, bool finalized)\",\n], agentSigner);\n\nconst answer = hexlify(toUtf8Bytes(\"YES\"));\nconst nonce = BigInt(hexlify(randomBytes(32)));\nconst commitment = keccak256(AbiCoder.defaultAbiCoder().encode([\"bytes\", \"uint256\"], [answer, nonce]));\n\nawait (await oracle.commit(requestId, commitment, { value: bondAmount })).wait(); // native bond\n// ...after the commit phase ends:\nawait (await oracle.reveal(requestId, answer, nonce)).wait();\n```\n\n## 知っておくべきこと\n\n- ステータス: **Draft**。インターフェース、フェーズ、推奨パラメータは変わる可能性があります。\n- nonce はリビールまで秘密にしてください。さもないと、他者がコミットメントから短い回答を総当たりで割り出せます。\n- 最終的な正しさはジャッジエージェントに大きく依存します。ランダムなジャッジ選出には検証可能な乱数が必要で、仕様はジャッジに対して Info Agent より高いレピュテーションのしきい値を推奨しています。\n- フェーズの期間、クォーラム、報酬の分配、サイズ制限は実装依存です。回答に依存する前に、各デプロイのパラメータを確認してください。\n- 報酬とボンドはネイティブトークンと ERC-20 を動かすため、実装にはリエントランシーの監査を受けるべきです。\n"},"ko":{"lang":"ko","tldr":"본드를 예치한 AI 에이전트가 어떤 쿼리에든 답을 커밋하고 공개하며, 별도의 심판(judge) 에이전트가 합의된 답을 고르고, 보상과 슬래싱이 뒤따르는 오라클 인터페이스. 예측 시장과 의미 기반 데이터 피드를 겨냥한다.","tags":["oracle","ai-agents","commit-reveal","prediction-markets","erc"],"related":[8004,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8033/","markdown":"## 어떤 문제를 해결하나요?\n\n기존 오라클은 가격 같은 숫자 피드에는 강하지만, \"이벤트 X가 날짜 Y 전에 일어났는가?\" 같은 임의의 일회성 질문은 보통 사람이나 비용이 많이 드는 노드 네트워크가 해결합니다. 저자들은 AI 에이전트가 이제 공개된 출처를 바탕으로 많은 사실 관계 질문에 답할 수 있다고 주장하며, 에이전트 **위원회(council)**가 경제적 인센티브와 함께 온체인에서 쿼리를 해결하는 표준 방식을 제안합니다. 이를 통해 서로 다른 구현과 dApp이 상호 운용할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n역할은 두 가지입니다. **Info Agent**가 쿼리에 답하고, **Judge Agent**가 그 답들을 종합해 최종 결과를 냅니다.\n\n1. **생성.** 요청자가 `createRequest(query, numInfoAgents, rewardAmount, bondAmount, deadline, rewardToken, bondToken, specifications, requiredCapabilities)`를 호출하고, 네이티브 자산(`rewardToken == address(0)`) 또는 [ERC-20](/eip-20/)으로 보상 자금을 넣습니다.\n2. **커밋.** 누구나 본드와 답의 해시(권장: `keccak256(abi.encode(answer, nonce))`)를 예치해 Info Agent로 참여할 수 있으며, 최대 `numInfoAgents`명까지 또는 마감 시한까지입니다.\n3. **공개.** 에이전트가 `answer`와 `nonce`를 공개하며, 커밋과 일치해야 합니다. 정족수(권장: 50 % 초과)에 미달하면 요청은 실패하고 자금은 환불됩니다.\n4. **판정.** 심판(권장: 별도 풀에서 무작위로 선정)이 `aggregate(requestId, finalAnswer, winners, reasoning)`를 호출해 답들을 종합하고 결정을 설명합니다.\n5. **분배.** `distributeRewards`가 승자와 심판에게 보상을 지급하고 그들의 본드를 돌려줍니다. 패한 에이전트는 본드를 잃습니다.\n\n`getResolution(requestId)`는 `(finalAnswer, finalized)`를 반환합니다. 각 단계는 이벤트(`RequestCreated`, `AgentCommitted`, `AgentRevealed`, `JudgeSelected`, `ResolutionFinalized`, `RewardsDistributed`, `ResolutionFailed`)를 emit합니다.\n\n선택적 확장: 더 큰 본드와 새 심판을 두는 **분쟁** 기간(`initiateDispute` / `resolveDispute`), [ERC-8004](/eip-8004/)를 통한 **평판** 기반 제한, 요청자 컨트랙트로의 콜백. 긴 답변과 근거는 오프체인(예: IPFS)에 두고 해시만 온체인에 둘 수 있습니다.\n\n## 샘플 코드\n\nInfo Agent의 커밋과 공개(ethers v6):\n\n```ts\nimport { Contract, AbiCoder, keccak256, randomBytes, toUtf8Bytes, hexlify } from \"ethers\";\n\nconst oracle = new Contract(ORACLE_ADDRESS, [\n  \"function commit(uint256 requestId, bytes32 commitment) payable\",\n  \"function reveal(uint256 requestId, bytes answer, uint256 nonce)\",\n  \"function getResolution(uint256 requestId) view returns (bytes finalAnswer, bool finalized)\",\n], agentSigner);\n\nconst answer = hexlify(toUtf8Bytes(\"YES\"));\nconst nonce = BigInt(hexlify(randomBytes(32)));\nconst commitment = keccak256(AbiCoder.defaultAbiCoder().encode([\"bytes\", \"uint256\"], [answer, nonce]));\n\nawait (await oracle.commit(requestId, commitment, { value: bondAmount })).wait(); // native bond\n// ...after the commit phase ends:\nawait (await oracle.reveal(requestId, answer, nonce)).wait();\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 인터페이스, 단계, 권장 파라미터는 바뀔 수 있습니다.\n- nonce는 공개 전까지 비밀로 하세요. 그렇지 않으면 다른 사람이 커밋으로부터 짧은 답을 무차별 대입으로 알아낼 수 있습니다.\n- 최종적인 정확성은 심판 에이전트에 크게 의존합니다. 무작위 심판 선정에는 검증 가능한 난수가 필요하며, 명세는 심판에 대해 info agent보다 높은 평판 기준을 권장합니다.\n- 단계별 기간, 정족수, 보상 분배, 크기 제한은 구현마다 다릅니다. 어떤 배포의 답에 의존하기 전에 해당 배포의 파라미터를 읽어 보세요.\n- 보상과 본드가 네이티브 토큰과 ERC-20을 움직이므로, 구현은 재진입(reentrancy)에 대한 감사를 받아야 합니다.\n"},"zh":{"lang":"zh","tldr":"一种预言机接口：缴纳保证金的 AI agent 对任意查询提交并揭示答案，由独立的 judge agent 选出共识答案，随后进行奖励和罚没，面向预测市场和语义数据源。","tags":["oracle","ai-agents","commit-reveal","prediction-markets","erc"],"related":[8004,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8033/","markdown":"## 它解决什么问题？\n\n传统预言机擅长处理价格之类的数值数据源，但任意的一次性问题（\"事件 X 是否在日期 Y 之前发生？\"）通常由人工或成本高昂的节点网络来解决。作者认为 AI agent 现在可以根据公开来源回答许多事实性问题，因此提出了一种标准方式，让由 agent 组成的**委员会（council）**借助经济激励在链上解决查询，使不同的实现和 dApp 能够互操作。\n\n## 它如何运作\n\n有两个角色：**Info Agent** 回答查询；**Judge Agent** 把它们的答案综合成最终结果。\n\n1. **创建。** 请求者调用 `createRequest(query, numInfoAgents, rewardAmount, bondAmount, deadline, rewardToken, bondToken, specifications, requiredCapabilities)`，并以原生资产（`rewardToken == address(0)`）或 [ERC-20](/eip-20/) 提供奖励资金。\n2. **提交（Commit）。** 任何人都可以通过缴纳保证金和提交答案的哈希（推荐 `keccak256(abi.encode(answer, nonce))`）来加入成为 Info Agent，人数最多 `numInfoAgents`，或直到截止时间。\n3. **揭示（Reveal）。** Agent 揭示 `answer` 和 `nonce`；必须与提交的承诺匹配。如果未达到法定人数（推荐超过 50 %），请求失败，资金退还。\n4. **裁决。** judge（推荐从独立的池中随机选出）调用 `aggregate(requestId, finalAnswer, winners, reasoning)`，综合各答案并说明决定。\n5. **分配。** `distributeRewards` 向获胜者和 judge 支付奖励并退还其保证金；落败的 agent 没收保证金。\n\n`getResolution(requestId)` 返回 `(finalAnswer, finalized)`。每个步骤都会触发事件（`RequestCreated`、`AgentCommitted`、`AgentRevealed`、`JudgeSelected`、`ResolutionFinalized`、`RewardsDistributed`、`ResolutionFailed`）。\n\n可选扩展：带有更高保证金和新 judge 的**争议**窗口（`initiateDispute` / `resolveDispute`）、通过 [ERC-8004](/eip-8004/) 的**声誉**门槛，以及对请求者合约的回调。较长的答案和理由可以放在链下（例如 IPFS），链上只存哈希。\n\n## 示例代码\n\nInfo Agent 的提交与揭示（ethers v6）：\n\n```ts\nimport { Contract, AbiCoder, keccak256, randomBytes, toUtf8Bytes, hexlify } from \"ethers\";\n\nconst oracle = new Contract(ORACLE_ADDRESS, [\n  \"function commit(uint256 requestId, bytes32 commitment) payable\",\n  \"function reveal(uint256 requestId, bytes answer, uint256 nonce)\",\n  \"function getResolution(uint256 requestId) view returns (bytes finalAnswer, bool finalized)\",\n], agentSigner);\n\nconst answer = hexlify(toUtf8Bytes(\"YES\"));\nconst nonce = BigInt(hexlify(randomBytes(32)));\nconst commitment = keccak256(AbiCoder.defaultAbiCoder().encode([\"bytes\", \"uint256\"], [answer, nonce]));\n\nawait (await oracle.commit(requestId, commitment, { value: bondAmount })).wait(); // native bond\n// ...after the commit phase ends:\nawait (await oracle.reveal(requestId, answer, nonce)).wait();\n```\n\n## 需要注意\n\n- 状态：**Draft**。接口、阶段和推荐参数可能变化。\n- 在揭示之前要保密 nonce；否则其他人可以根据承诺值暴力破解较短的答案。\n- 最终的正确性在很大程度上依赖 judge agent。随机选取 judge 需要可验证随机数，规范建议对 judge 设置比 info agent 更高的声誉门槛。\n- 各阶段时长、法定人数、奖励分配和大小限制取决于具体实现；在依赖某个部署给出的答案之前，请先阅读其参数。\n- 实现应当针对重入问题进行审计，因为奖励和保证金涉及原生代币和 ERC-20 的转移。\n"}}}
