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