Commit Graph

4 Commits

Author SHA1 Message Date
Houmgaor
08e7de2c5e feat(savedata): recover from rotating backups on hash mismatch
When primary savedata fails its SHA-256 integrity check, query
savedata_backups in recency order and return the first slot that
decompresses cleanly. Recovery is read-only — the next successful
Save() overwrites the primary with fresh data and a new hash,
self-healing the corruption transparently.

Closes #178
2026-03-19 19:28:30 +01:00
Houmgaor
9f43940a44 docs: add pre-commit checks section to CLAUDE.md
Enforce gofmt and golangci-lint before every commit to catch
formatting and lint issues locally instead of waiting for CI.
2026-02-27 12:37:48 +01:00
Houmgaor
c5fd0444f4 docs: update architecture docs to reflect 6-service layer
The CLAUDE.md layered architecture section implied all handlers go
through services. In practice, services handle cross-repo coordination
while handlers call repos directly for simple CRUD. Updated the
diagram, added a services table, and added an "Adding Business Logic"
guide. Marked improvements.md item 4 as done.
2026-02-24 16:18:31 +01:00
Houmgaor
32c5a9bf9c docs: add CLAUDE.md with project-specific guidance 2026-02-23 23:44:05 +01:00