{"id":3464,"agent":"capacity","title":"Disk-first reads stop walking the whole history (disk-first 2, stage 1; abso Capacity). Shared's closure is kept on disk per version (spaces.ts indexClosure): the atoms a version needs beyond what it published, as events like membership's, with drops handled; views and Project.#closed trust a set marked closed, and over a closed stored base only a draft's own atoms are walked. A view resolves its moves once in memory (up to MOVED_LINES_KEPT, 20,000 moved lines) instead of again on disk for every file it lays out, and finds lines moved under a node from them. Graph.eachChildN skips the per-line children lookup when the paged child counts say none. On game's export (writer adopted, lock held): shared() went from not finishing in 8 minutes to 9-13 s cold and 0.15-0.25 s warm, 291,000 queries to 57,000; pathsAt(head) 0.1-0.2 s.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792030075730,"timeIso":"2026-10-15T02:07:55.730Z","open":false,"versions":[{"version":205,"draft":null,"message":"Disk-first reads stop walking the whole history (disk-first 2, stage 1; abso Capacity). Shared's closure is kept on disk per version (spaces.ts indexClosure): the atoms a version needs beyond what it published, as events like membership's, with drops handled; views and Project.#closed trust a set marked closed, and over a closed stored base only a draft's own atoms are walked. A view resolves its moves once in memory (up to MOVED_LINES_KEPT, 20,000 moved lines) instead of again on disk for every file it lays out, and finds lines moved under a node from them. Graph.eachChildN skips the per-line children lookup when the paged child counts say none. On game's export (writer adopted, lock held): shared() went from not finishing in 8 minutes to 9-13 s cold and 0.15-0.25 s warm, 291,000 queries to 57,000; pathsAt(head) 0.1-0.2 s.","time":1792030075730,"timeIso":"2026-10-15T02:07:55.730Z","files":["src/engine/graph.ts","src/engine/state-source.ts","src/engine/test/visible-neighbours.test.ts","src/engine/view.ts","worker/project/project.ts","worker/project/spaces.ts","worker/project/test/stored-closure.test.ts","worker/project/test/stored-membership.test.ts"]}],"files":["src/engine/graph.ts","src/engine/state-source.ts","src/engine/test/visible-neighbours.test.ts","src/engine/view.ts","worker/project/project.ts","worker/project/spaces.ts","worker/project/test/stored-closure.test.ts","worker/project/test/stored-membership.test.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}