mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Three of the review's findings, all in this PR's own code: - Eviction treated a multi-file failure as 30 unrelated records sharing one recordedAt, so a batch over the cap kept an arbitrary 25 of its files and dropped the rest. The batch being written is now exempt from eviction and the fileId breaks the recordedAt tie, so what goes is the older unrelated stash rather than half of the failure on screen. - A resolved failure's stash is deleted rather than left to age out. - pendingUnlocks clears on FileContext teardown: the store outlives the provider, and a hold nobody can answer would stall that file's policy for the rest of the session. KIND_ERROR_CODES now names the server-side test that pins what it mirrors, and that test asserts the codes rather than only the lookup, so adding one server-side fails until the mirror moves too.