diff --git a/.scratch/workbench-poll-cost/work.md b/.scratch/workbench-poll-cost/work.md new file mode 100644 index 00000000..3cbc7318 --- /dev/null +++ b/.scratch/workbench-poll-cost/work.md @@ -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