{"version":231,"agent":"capacity","message":"visibleWriters uses the writers the packed layout keeps (disk-first 2; abso Capacity).\n\nwhere asks each agent's view for its visible lines' writers in every file the draft touches. visibleWriters looked each one up again (graph.writerSeqOf), which on a stored graph read the line-atom pages: on typescript-rs that was 2.6 s of where's 4 s in SQLite. The packed layout already keeps them since 230 (visWriter).\n\nOn typescript-rs adopted fresh, cold: where 39,000 reads to 20,000 and 6.5 s to 3.8 s, matching replay.\n\nNamed tests: every engine test (288 of 288), where-many-agents, draft-reads-stored, authors-stored, packed-crossings, membership-pages, view-cache, files-reads, project (39 of 39); tsc and biome clean.","time":1792056158354,"timeIso":"2026-10-15T09:22:38.354Z","changes":1,"change":3661,"files":["src/engine/view.ts"],"draft":null,"diff":[{"path":"src/engine/view.ts","added":4,"removed":1,"diff":"--- a/src/engine/view.ts\n+++ b/src/engine/view.ts\n@@ -1002,7 +1002,10 @@\n \t/** The seq of the atom that wrote each visible line, in order: lines() without ids or text. */\n \tvisibleWriters(path: string): number[] {\n \t\tconst graph = this.graph;\n-\t\treturn Array.from(this.#file(path).vis, (n) => graph.writerSeqOf(n));\n+\t\tconst { vis, visWriter } = this.#file(path);\n+\t\t// The packed layout keeps them (abso Capacity): looking each up again read a page per few lines on a stored graph.\n+\t\tif (visWriter) return Array.from(visWriter);\n+\t\treturn Array.from(vis, (n) => graph.writerSeqOf(n));\n \t}\n \n \t/** All projected text files, path -> text, in path order. Binary files are in `blobs()`. */"}],"ci":null}