Strip per-enemy persistence, go global-only #100

Open
opened 2026-08-28 22:02:54 +02:00 by SirStone · 0 comments
Owner

Parent

#99

What to build

part-of: #99

Remove all per-enemy weight logic from persistence: per-opponent file resolution, the per-opponent → global → random-init load cascade. Keep only global file path resolution, parameterized by gun name (global_ga.weights, global_cma.weights). Update save/load to work with gun-keyed global files only. Strip per-opponent references from gun and bot modules.

Acceptance criteria

  • Per-opponent weight file resolution and load cascade are removed
  • saveChampionIfBetter and loadWeightsF accept a gun name and operate on global_<name>.weights
  • No per-opponent references remain in gun.nim, EvoBot.nim, or persistence.nim
  • Existing bot compiles and runs with global-only persistence
  • Self-check / test verifies save-then-load round-trips correctly for a gun-keyed global file

Blocked by

None — can start immediately.

## Parent #99 ## What to build part-of: #99 Remove all per-enemy weight logic from persistence: per-opponent file resolution, the per-opponent → global → random-init load cascade. Keep only global file path resolution, parameterized by gun name (`global_ga.weights`, `global_cma.weights`). Update save/load to work with gun-keyed global files only. Strip per-opponent references from gun and bot modules. ## Acceptance criteria - [ ] Per-opponent weight file resolution and load cascade are removed - [ ] `saveChampionIfBetter` and `loadWeightsF` accept a gun name and operate on `global_<name>.weights` - [ ] No per-opponent references remain in gun.nim, EvoBot.nim, or persistence.nim - [ ] Existing bot compiles and runs with global-only persistence - [ ] Self-check / test verifies save-then-load round-trips correctly for a gun-keyed global file ## Blocked by None — can start immediately.
SirStone added the wayfinder:task label 2026-08-28 22:02:54 +02:00
SirStone added the ready-for-agent label 2026-08-28 22:15:05 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#100