{"id":3674,"agent":"capacity","title":"The view cache holds up to 128 views, still within its byte budget (disk-first 2; abso Capacity).\n\nwhere visits every agent's draft view in turn. abso has more agents with drafts than the cache's 32 views, so each visit evicted the view the next call would need, and a kept writer laid every view out again on every call. Testing measured where at 5.5 s warm on abso with 232.\n\nVIEW_COUNT is now 128. The byte budget (VIEW_BUDGET, 24 MB) still bounds what the views hold.\n\nOn abso adopted fresh, one kept writer: where's first call takes 3.7 to 4.5 s, then 0.31 to 0.37 s with about 1,700 reads (4.6 to 5.5 s each time at 32 views). 64 views was already enough on abso today; heap after the run is 32 MB either way.\n\nTests: view-cache's two count tests now use VIEW_COUNT. Named tests: view-cache, where-many-agents, draft-reads-stored, project, membership-cache, files-reads, collision-streaming, authors-stored (42 of 42); tsc and biome clean.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792059512445,"timeIso":"2026-10-15T10:18:32.445Z","open":false,"versions":[{"version":234,"draft":null,"message":"The view cache holds up to 128 views, still within its byte budget (disk-first 2; abso Capacity).\n\nwhere visits every agent's draft view in turn. abso has more agents with drafts than the cache's 32 views, so each visit evicted the view the next call would need, and a kept writer laid every view out again on every call. Testing measured where at 5.5 s warm on abso with 232.\n\nVIEW_COUNT is now 128. The byte budget (VIEW_BUDGET, 24 MB) still bounds what the views hold.\n\nOn abso adopted fresh, one kept writer: where's first call takes 3.7 to 4.5 s, then 0.31 to 0.37 s with about 1,700 reads (4.6 to 5.5 s each time at 32 views). 64 views was already enough on abso today; heap after the run is 32 MB either way.\n\nTests: view-cache's two count tests now use VIEW_COUNT. Named tests: view-cache, where-many-agents, draft-reads-stored, project, membership-cache, files-reads, collision-streaming, authors-stored (42 of 42); tsc and biome clean.","time":1792059512445,"timeIso":"2026-10-15T10:18:32.445Z","files":["worker/project/test/view-cache.test.ts","worker/project/views.ts"]}],"files":["worker/project/test/view-cache.test.ts","worker/project/views.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}