Skip to content

insist on --token and --slot args for tournament support#190

Open
malcolmocean wants to merge 5 commits into
masterfrom
stag-hunt-tournament-args
Open

insist on --token and --slot args for tournament support#190
malcolmocean wants to merge 5 commits into
masterfrom
stag-hunt-tournament-args

Conversation

@malcolmocean
Copy link
Copy Markdown
Contributor

Summary

  • All 5 stag_hunt bots (coordinator, nearest_hunter, rabbiteer, sidekick, stag_hunter) crashed with Unknown option: --slot when the tournament runner passed standard args
  • Added --token and --slot parsing, threading them through connectUrl as query params (matching the pattern in planet_wars/skurge)
  • Added a pre-build validation step to tools/docker_build.nim that greps bot source files for --name, --token, and --slot handling before building images

Test plan

  • Build stag_hunt bots locally and verify they accept --slot 0 --token test without crashing
  • Run nim r tools/docker_build.nim --list to verify the check doesn't block game-server-only targets
  • Deploy coordinator to tournament and confirm it connects

🤖 Generated with Claude Code

malcolmocean and others added 2 commits May 15, 2026 17:33
All 5 stag_hunt bots crashed with "Unknown option: --slot" when the
tournament runner passed the standard tournament arguments. Thread
token and slot through connectUrl so they're sent as query params.

Also add a pre-build check to docker_build.nim that verifies bot
source files handle --name, --token, and --slot before building images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@malcolmocean malcolmocean changed the title stag_hunt: add --token and --slot args for tournament support insist on --token and --slot args for tournament support May 16, 2026
malcolmocean and others added 3 commits May 15, 2026 17:46
The coworld runner passes the full websocket URL via this env var.
Also check for it in docker_build's pre-build validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CLAUDE.md symlinks here. Points to the canonical spec in the metta repo
so bot authors find the requirements before hitting deploy failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant