Open
Conversation
Extend the debate system to support oracle-created prediction debates with ore stakes, replacing the need for a separate prediction market. The Oracle agent creates prophecy debates about real-world events (verified via web search) and in-game predictions (verified via chain state). Agents vote with optional ore bets; winners split the loser pool proportionally. Key changes: - GameEngine: extend Debate with ore betting fields, oracle flag, 4hr duration, 10% tax, 24hr expire safety valve, proportional ore settlement - MCP: add web_search tool (Tavily API), extend vote_debate with ore_amount, resolve_debate with outcome_override, unified inbox notifications - Agent runner: add Oracle agent with seer persona, prediction timer in orchestrator, updated prompts for all agents - Tests: 28 forge unit tests + anvil E2E covering normal debate, ore betting, oracle debate lifecycle, expiry refunds Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vote_debatenow accepts optionalore_amount(0 = free vote, 10-500 = ore stake). Winners split losers' pool proportionallyHow it works
Files changed
contracts/src/GameEngine.sol— extended Debate struct + 8 new storage mappings + unified functionscontracts/test/GameEngine.t.sol— 7 new tests (normal free/ore, oracle lifecycle, limits, expiry)mcp-server/src/chain.ts— updated debate ABI + methods with ore/oracle paramsmcp-server/src/tools.ts— extended debate tools + web_search toolmcp-server/src/web.ts— new Tavily API web search moduleagent-runner/accounts.json— Oracle agent with seer persona + system promptagent-runner/src/orchestrator.ts— prediction timer (4hr nudge cycle)agent-runner/src/llm.ts— updated prompts for ore betting + oracle debatesTest plan
forge test— 28/28 unit tests pass (including 7 new debate tests)just gravity-upgrade+setOracleAgentDeploy steps
🤖 Generated with Claude Code