myxce/.kiro/specs/worker-rejoin-resync
Rongsong Shen e31012e8a7
feat(worker-rejoin-resync): task 4.1 - bounded finished-job retention on worker
Retain a job's exit status/code/true finish time for a configurable
window after update_worker_status() detects its exit, before
cleanup_worker_list() would otherwise discard all trace of it
(Requirements 3.4, 3.5, 3.7). Hooked into the single choke point both
production exit-detection paths (libuv IPC callback, dbus polling)
converge through, so retention happens-before any reap regardless of
which mechanism is active.

Also prunes on retain (not just on lookup), closing a review finding:
lookup currently has zero production callers until task 4.2 lands, so
without this the store would grow unboundedly for the daemon's uptime.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y4M5MJM2zK6nU43da267Ku
2026-09-01 16:03:19 +00:00
..
brief.md docs(kiro): reconcile spec metadata, promote 3 new specs, fix template path 2026-08-16 11:02:06 +00:00
design.md feat(worker-rejoin-resync): apply reported outcomes idempotently (task 3.2) 2026-09-01 15:24:29 +00:00
requirements.md docs(worker-rejoin-resync): add requirements, design, and research docs 2026-09-01 07:08:41 +00:00
research.md docs(worker-rejoin-resync): add requirements, design, and research docs 2026-09-01 07:08:41 +00:00
spec.json docs(worker-rejoin-resync): fix design review findings; add tasks.md 2026-09-01 08:03:10 +00:00
tasks.md feat(worker-rejoin-resync): task 4.1 - bounded finished-job retention on worker 2026-09-01 16:03:19 +00:00