{"id":3649,"agent":"capacity","title":"Draft collisions without copying shared's atoms per pair (disk-first 2; abso Capacity).\n\nOn typescript-rs, with one opened writer, collisions ran past 5 minutes with 2.5 million row reads; replay takes 5 s.\n\n- Each pair of agents built a new set of all of shared's atoms plus both drafts, and each agent's view of shared-now did the same. On a stored writer that read every one of shared's atoms, per pair, and the view then proved the copy closed by walking it. The pair's set is now a lookup over shared's own atoms and the two drafts (same membership as before). The views are built over shared's view's own closed set plus the drafts, which closes to the same atoms and walks only the drafts.\n- View.lines and buildLines use the texts the packed layout already holds, instead of reading each line's text again.\n- The definition rule takes a line's atom and place from its id, and collisions use graph.lineAtom; graph.line read each line's text as well.\n\nOn typescript-rs adopted fresh, cold: collisions finishes in 71 s with 299,000 reads, matching replay. Still slow: most of what's left is laying the same files out again for each agent's view.\n\nNamed tests: every engine test (288 of 288), changed-definition, collision-streaming, definition-code, definitions, draft-reads-stored, same-line, spelling-clash, review-fixes, membership-pages, stored-closure, packed-crossings, project-writer-storage, writer-adoption, moves, version-files, where-many-agents (67 of 67); tsc and biome clean.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792054426575,"timeIso":"2026-10-15T08:53:46.575Z","open":false,"versions":[{"version":229,"draft":null,"message":"Draft collisions without copying shared's atoms per pair (disk-first 2; abso Capacity).\n\nOn typescript-rs, with one opened writer, collisions ran past 5 minutes with 2.5 million row reads; replay takes 5 s.\n\n- Each pair of agents built a new set of all of shared's atoms plus both drafts, and each agent's view of shared-now did the same. On a stored writer that read every one of shared's atoms, per pair, and the view then proved the copy closed by walking it. The pair's set is now a lookup over shared's own atoms and the two drafts (same membership as before). The views are built over shared's view's own closed set plus the drafts, which closes to the same atoms and walks only the drafts.\n- View.lines and buildLines use the texts the packed layout already holds, instead of reading each line's text again.\n- The definition rule takes a line's atom and place from its id, and collisions use graph.lineAtom; graph.line read each line's text as well.\n\nOn typescript-rs adopted fresh, cold: collisions finishes in 71 s with 299,000 reads, matching replay. Still slow: most of what's left is laying the same files out again for each agent's view.\n\nNamed tests: every engine test (288 of 288), changed-definition, collision-streaming, definition-code, definitions, draft-reads-stored, same-line, spelling-clash, review-fixes, membership-pages, stored-closure, packed-crossings, project-writer-storage, writer-adoption, moves, version-files, where-many-agents (67 of 67); tsc and biome clean.","time":1792054426575,"timeIso":"2026-10-15T08:53:46.575Z","files":["src/engine/view.ts","worker/project/definition-rule.ts","worker/project/draft-collisions.ts"]}],"files":["src/engine/view.ts","worker/project/definition-rule.ts","worker/project/draft-collisions.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}