Skip to content

M5.5: persistent restore receipts - #31

Merged
pgousdal merged 8 commits into
mainfrom
work/m5.5-restore-receipts
Sep 8, 2026
Merged

pgousdal merged 8 commits into
mainfrom
work/m5.5-restore-receipts

Conversation

@pgousdal

@pgousdal pgousdal commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Adds a persistent local audit trail for successful portable archive restores. Full and selective restore responses keep their existing result fields and add a receipt containing generated ID, UTC timestamp, mode, result counts, and for selective restore the approved M5.4 plan token plus sorted selected recording IDs. Receipts are stored atomically in a separate <recordings path>.restore-receipts.json file and never duplicate archive/audio payloads. New read-only GET /api/recording-archive/receipts?limit=50 lists newest receipts with a validated 1–200 limit. Includes receipt persistence/API/limit tests, README and M5.5 docs. If a receipt write fails after an already committed restore, the API reports that explicitly and does not falsely claim an audit record exists.

@pgousdal
pgousdal merged commit 2976757 into main Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant