Files
PaperClipAI/server
nickyleachandPaperclip e7bfaa41a6 fix(server): key the task-drain termination audit row on a UUID, not the process-local generation
The dedup key for the termination outcome row used the in-memory drain
generation number. That counter resets to 0 on every server restart, so
a new termination could reuse a generation number an old activity row
already held from before the restart, and the write would then skip as
a false duplicate. Mint a UUID when the termination is armed and use it
as the key instead; the generation number still guards the in-memory
timer race it was built for.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-16 08:34:08 +00:00
..