The database should contain 11 records total, but a normal SELECT * FROM items on test.db returns only 5 base records. The WAL file contains updates to 2 existing records and 6 new inserts, but SQLite refuses to apply the WAL frames because of a salt mismatch (likely XOR'd corruption of frame salts).
Your task is to:
Diagnose why SQLite ignores the WAL frames
Fix the WAL file (fixtures/test.db-wal) so SQLite can read all frames
Verify the database now returns all 11 records
Write output/recovered.json containing all 11 records, format:
json
[{"id": 1, "name": "...", "value": N.N}, ...]
sorted by id. Records 1 and 2 should reflect the updated values from the WAL.
Save a brief explanation of the corruption and your fix to output/recovery_writeup.md.