Skip to content

feat: implement background judge worker (#6)#52

Merged
soomtochukwu merged 1 commit into
DXmakers:mainfrom
anoncon:feature/background-judge-worker
Mar 29, 2026
Merged

feat: implement background judge worker (#6)#52
soomtochukwu merged 1 commit into
DXmakers:mainfrom
anoncon:feature/background-judge-worker

Conversation

@anoncon

@anoncon anoncon commented Mar 27, 2026

Copy link
Copy Markdown

Implements the background judge worker that polls open disputes every 30 seconds, calls the AI judge service, persists verdicts, resolves disputes on-chain via Soroban, and resets failed disputes back to open.

  • Implement run_judge_worker with 30s polling loop
  • Implement JudgeService::judge() via configurable HTTP endpoint (JUDGE_API_URL)
  • Spawn worker from main.rs alongside HTTP server
  • Integration test with mocked judge API (wiremock)

Closes #6

@anoncon anoncon requested a review from soomtochukwu as a code owner March 27, 2026 20:08
@drips-wave

drips-wave Bot commented Mar 27, 2026

Copy link
Copy Markdown

@anoncon Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@anoncon

anoncon commented Mar 27, 2026

Copy link
Copy Markdown
Author

@soomtochukwu please review my PR

@soomtochukwu soomtochukwu merged commit 29c0443 into DXmakers:main Mar 29, 2026
5 checks passed
BernardOnuh pushed a commit to BernardOnuh/lance that referenced this pull request Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background Judge Worker

3 participants