Block a user
Implement runBattle() orchestrator
Dependency addition
Blocked by: #127, #128, #129, #134 (adding #134 — BattleRunner process lifecycle must be implemented before the orchestrator can wire it in).
Implement server lifecycle manager (lazy singleton)
Dependency addition
Blocks: #130 (runBattle orchestrator), #134 (BattleRunner process lifecycle). Server must be running before either can operate.
Define BattleResult type and server output parser
Dependency correction
Blocked by: #133 (not "nothing" as originally stated). The parser cannot be implemented until #133 defines the structured stdout output format from BattleRunner.java.
Wayfinder: Shared integration test framework for garages
Dependency update
Implementation is tracked in child tickets #127–#134 (not #127–#132 as originally stated). #133 and #134 were added during spec grilling to cover Java-side modifications and…
Implement BattleRunner Java process lifecycle in Nim framework
Spec addition from grilling
- BattleRunner process completion timeout: 30s after battle should have ended.
- Use
deferfor process cleanup. - Detect hung process via stdout inactivity…
Modify BattleRunner.java to connect to external server and emit structured output
Spec addition from grilling
The structured stdout format is the contract between Java and Nim. Recommend JSON-lines, one JSON object per event:
{"event":"ready"}— server connected -…
Write framework usage guide
Spec additions from grilling
- Document that this is a local development tool (no CI support planned).
- Document
nim ccompilation requirement (not nimble build). - Include troubleshooti…
Implement runBattle() orchestrator
Spec additions from grilling
runBattle()must usedeferblocks to clean up bot processes and BattleRunner process on any exception.- Overall timeout: 120s hard ceiling per…
Implement bot compiler and launcher
Spec additions from grilling
- Use
nim cdirectly, NOTnimble build(nimble swallows compiler output, making errors hard to diagnose). - Compilation timeout: 30s per bot.
- Must handle…
Implement server lifecycle manager (lazy singleton)
Spec additions from grilling
- Server startup timeout: 15s default. If server doesn't print ready signal within this, raise error.
- Use
addExitProcto kill server process on program…
Wayfinder: Shared integration test framework for garages
Grilling resolutions (from spec review)
Resolved
- Port wiring: BattleRunner handles bot-to-server connection internally. Nim framework only needs to pass server URL to the modified…
Implement BattleRunner Java process lifecycle in Nim framework
Modify BattleRunner.java to connect to external server and emit structured output
Write framework usage guide
Create example integration test in one garage
Implement runBattle() orchestrator