#40: log every check-in, persist refusal history, 503 when the store cannot answer #41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "checkin-logging-40"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #40 — the server-side half of the 2026-08 licence-drop incident (client half shipped as Cairn v0.6.133, Cairn#437).
checkin ok(id, org, seats, expires, keyReturned) /checkin refused(id, reason, refusal count) / bad-request warns. The incident was unreconstructable because the handler logged nothing.lastRefusedAt/lastRefusedReason/refusalCountin the SQLitedataJSON — stamped on every 403 for a known licence, never cleared by later success (a trail, not state), survives store reopen.TDD: 503 + logging tests witnessed red on the runner (empty store answered 403; nothing logged); refusal-history test witnessed compile-red. Full suite green. Note:
gofmt -w .also normalised 4 pre-existing lines in accounts.go.