🗂️ Add task card for remaining work-buffer poll cost

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
d-robotics 2026-10-28 00:49:09 +08:00
parent 8b96632ed1
commit f7a5e3272b

View File

@ -0,0 +1,8 @@
# Cut the remaining work-buffer poll cost and keep dashboard caches warm
Goal: after #63, the 3s work-buffer poll still spent ~126ms re-resolving display labels (full run documents, up to 6MB) and ~136ms in the store; dashboard caches were flushed by every autosave
Agent: Claude Code (Opus 5.5), desktop session 2026-10-28
Base: origin/dev @ 8b96632e
Scope: internal/api/annotation_work_buffer.go (2-minute display cache), internal/store/annotation_work_buffer.go (skip rereads for slots the active scan already counted), internal/api/server.go (draft, review-session, review-draft and work-buffer saves keep dashboard caches), tests
Out of scope: run document size, other list endpoints' enrichment, poll interval, dashboard computations themselves
Risk: no API, data or index change; pool labels may lag a project/workflow rename by up to 2 minutes; dashboards may lag a draft save by up to the existing 45s TTL