Move game data and saves to EWAD #6

Merged
fputs merged 12 commits from fputs/ewad-storage into master 2026-11-08 17:55:08 -08:00 AGit
Owner

Replaces JSON with spitwad EWAD archives for game data and adds save games (gates 39-45 in hdae/). wf-inspect and wayfinder_view now take [mod...] [save]. Golden files are byte-identical. Gates closed under a blanket authorization, not individually reviewed. The window was type-checked but not built: raylib is absent on the dev Mac. 🤖 Generated with Claude Code

Replaces JSON with spitwad EWAD archives for game data and adds save games (gates 39-45 in hdae/). wf-inspect and wayfinder_view now take <base> <campaign> [mod...] [save]. Golden files are byte-identical. Gates closed under a blanket authorization, not individually reviewed. The window was type-checked but not built: raylib is absent on the dev Mac. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Plan milestone 5: EWAD archives replace JSON for game data, and save
games persist party and campaign state on top of the content chain.

Record gates 38 through 45, decisions 28 through 38, and the rule
that a pull request needs green CI before review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Link spitwad into the loader
All checks were successful
safety / safety (push) Successful in 3m3s
5cae826199
Game data moves to EWAD archives, so the loader needs spitwad. Link
it privately and check that nothing else can reach it, in source and
in the archives.

CI pins the commit because the on-disk format is part of Wayfinder's
contract. A local checkout from before EWAD version 2 fails configure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Per-gate CI checks cost too much time. The pull request must pass
Forgejo CI before merge, and no gate waits on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Encode layers as EWAD archives
All checks were successful
safety / safety (push) Successful in 4m8s
bda83561b5
Layers become deterministic EWAD bytes through the field tables, so
JSON can be retired. Fixtures are generated at build time, which keeps
binaries out of the tree. Payload decoders are fuzzed directly because
EWAD hashes reject almost every mutated archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A game is one base, one campaign, then optional mods, so the chain API
enforces the mandatory campaign the content library does not. Every
archive's identity is returned for saves to record. Changing a mod
means loading the chain again; there is no unload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Carry the creature id on a build
Some checks failed
safety / safety (push) Has been cancelled
68e0ee7b39
A save must name what each combatant came from, so a build now keeps
the opaque id of its creature. The rules copy it whole and never read
its text, as the amended decision 13 requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add save games
Some checks failed
safety / safety (push) Has been cancelled
c43862b32b
Party state lives in its own archive so layer files stay read-only.
A save references creatures by id and stores Hit Points and attack
counts, and writes go through an atomic rename so a failed save keeps
the previous one. Saving during an open turn is refused until the
encounter lump exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Report save compatibility
Some checks failed
safety / safety (push) Has been cancelled
71205df9ef
Players change mods between sessions, so a save compares its recorded
chain with the loaded one and reports each difference. Warnings never
block a load. Only another campaign or a reference that no longer
resolves refuses it, because a party belongs to one campaign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove JSON from game data
Some checks failed
safety / safety (push) Has been cancelled
be6cff8279
EWAD is now the only game data format, so the parser, its fixtures,
and its fuzz targets go. The command line and the window take a chain
and an optional save, which supplies the combatants a roster file
used to. Every golden file is unchanged, so the switch moved no byte
of behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check the storage milestone
All checks were successful
safety / safety (push) Successful in 3m47s
safety / safety (pull_request) Successful in 3m46s
dc5d9c13a7
The milestone check now names the final tests, forbids the archive
library outside the loader, and proves the retired parser stays gone,
so a later change cannot quietly undo the move to EWAD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mark the view log callback as a format
All checks were successful
safety / safety (pull_request) Successful in 3m47s
safety / safety (push) Successful in 3m47s
b6852ae1c7
Apple clang rejects the callback's vfprintf under -Wformat-nonliteral,
so the window did not build on macOS. The attribute states that the
text argument is the format, which needs no suppressed warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close the storage milestone gate
All checks were successful
safety / safety (pull_request) Successful in 3m48s
safety / safety (push) Successful in 3m48s
32afd91ef6
Gate 45 is accepted with CI green on the pull request, so its record
moves to the closed ledger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fputs merged commit f26b92e18e into master 2026-11-08 17:55:08 -08:00
fputs referenced this pull request from a commit 2026-11-08 17:55:09 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
fputs/wayfinder!6
No description provided.