🗂️ Add task card for cheap read-only work-buffer polls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
d-robotics 2026-10-28 00:04:24 +08:00
parent bc17d50508
commit 459bcd072b

View File

@ -0,0 +1,8 @@
# Make work-buffer polls cheap and read-only
Goal: the workbench's 3s work-buffer poll stops scanning each annotator's authored history and stops writing the buffer ledger when nothing changed (live p50 556ms store time, 4,095 >1s requests in 3h20m on 2026-10-27)
Agent: Claude Code (Opus 5.5), desktop session 2026-10-28
Base: origin/dev @ bc17d505
Scope: internal/store/annotation_work_buffer.go, internal/store/annotation_work_buffer_mongo_test.go
Out of scope: dashboard cache invalidation, claim-count latency, enrich step, poll interval, worker CPU limits
Risk: no API, data-format or index change; the ledger is written only when capacity, slots or a reservation change