Weight files gain a metadata header (format marker + stored fitness) above the float lines; loaders accept legacy headerless files and rank them never-better (−inf); saving becomes temp-file + atomic rename within the same directory; the weights directory resolves at runtime to the directory of the running binary, injectable so tests can redirect it; a best-gating decision is available (replace iff strictly greater, ties keep incumbent).
Acceptance criteria
New-format file writes header above 745 floats and round-trips through load
Legacy headerless file loads unchanged and ranks never-better
Gating accepts strictly-better, rejects tie and worse
Simulated kill mid-write leaves the previous file intact (atomic rename)
Weights directory resolves beside the running binary at runtime; test override works
Persistence self-check extended and green
Blocked by
None — can start immediately.
## Parent
Spec #92 (round-end checkpointing).
## What to build
Weight files gain a metadata header (format marker + stored fitness) above the float lines; loaders accept legacy headerless files and rank them never-better (−inf); saving becomes temp-file + atomic rename within the same directory; the weights directory resolves at runtime to the directory of the running binary, injectable so tests can redirect it; a best-gating decision is available (replace iff strictly greater, ties keep incumbent).
## Acceptance criteria
- [ ] New-format file writes header above 745 floats and round-trips through load
- [ ] Legacy headerless file loads unchanged and ranks never-better
- [ ] Gating accepts strictly-better, rejects tie and worse
- [ ] Simulated kill mid-write leaves the previous file intact (atomic rename)
- [ ] Weights directory resolves beside the running binary at runtime; test override works
- [ ] Persistence self-check extended and green
## Blocked by
None — can start immediately.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent
Spec #92 (round-end checkpointing).
What to build
Weight files gain a metadata header (format marker + stored fitness) above the float lines; loaders accept legacy headerless files and rank them never-better (−inf); saving becomes temp-file + atomic rename within the same directory; the weights directory resolves at runtime to the directory of the running binary, injectable so tests can redirect it; a best-gating decision is available (replace iff strictly greater, ties keep incumbent).
Acceptance criteria
Blocked by
None — can start immediately.
Superseded — dropping per-enemy weights, pivoting to global-only weights + improved GA/network.