{"id":5241,"agent":"capacity","title":"Shared additions read each atom's version from the membership pages (abso 714; abso - Performance's draft perf-membership-pages, Capacity ships it)\n\n- After a definition-changing publish, the owed-news read walks SharedAdditions for each agent behind the publish, and membershipVersion read every atom's events each time (a length row, then an event row), never asking the membership pages. On abso's tables that was 47,832 of the read's 57,403 statements. On prod abso at 6:31 PM CT (abso 1470), that read ran in one storage transaction and reset the object.\n- Space.membershipVersions() reads each page once (PageReader, as StoredVersionSet does): the page answers when an atom has one event, and its events are read as before only when the page says MIXED or there are no pages. PageReader's presentAt and the new versionAt share #code. SharedAdditions.values() uses it when the space has it.\n- Performance's numbers on abso's tables, owed read for shared version 1224: 57,403 statements and 2.9 s before, 6,407 and 1.2 s after; with three used names, 60,240 to 10,241. A check build ran old and new lookups side by side over the owed reads, 20 agents' status, 9 syncs and collisions: 115,973 lookups, none different.\n\nChecks: core tsc clean; Biome clean; node --test worker/project/test/shared-additions (new: three pages with drops and a return, every pair of versions walks the same with pages and with events only, under a tenth of the event reads), membership, owed-definition-news, changed-definition, known-paths, news-lazy, news-cap, writer-adoption, project-writer-storage, project: 50 of 50 pass.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792193716850,"timeIso":"2026-10-16T23:35:16.850Z","open":false,"versions":[{"version":307,"draft":null,"message":"Shared additions read each atom's version from the membership pages (abso 714; abso - Performance's draft perf-membership-pages, Capacity ships it)\n\n- After a definition-changing publish, the owed-news read walks SharedAdditions for each agent behind the publish, and membershipVersion read every atom's events each time (a length row, then an event row), never asking the membership pages. On abso's tables that was 47,832 of the read's 57,403 statements. On prod abso at 6:31 PM CT (abso 1470), that read ran in one storage transaction and reset the object.\n- Space.membershipVersions() reads each page once (PageReader, as StoredVersionSet does): the page answers when an atom has one event, and its events are read as before only when the page says MIXED or there are no pages. PageReader's presentAt and the new versionAt share #code. SharedAdditions.values() uses it when the space has it.\n- Performance's numbers on abso's tables, owed read for shared version 1224: 57,403 statements and 2.9 s before, 6,407 and 1.2 s after; with three used names, 60,240 to 10,241. A check build ran old and new lookups side by side over the owed reads, 20 agents' status, 9 syncs and collisions: 115,973 lookups, none different.\n\nChecks: core tsc clean; Biome clean; node --test worker/project/test/shared-additions (new: three pages with drops and a return, every pair of versions walks the same with pages and with events only, under a tenth of the event reads), membership, owed-definition-news, changed-definition, known-paths, news-lazy, news-cap, writer-adoption, project-writer-storage, project: 50 of 50 pass.","time":1792193716850,"timeIso":"2026-10-16T23:35:16.850Z","files":["worker/project/spaces.ts","worker/project/test/shared-additions.test.ts"]}],"files":["worker/project/spaces.ts","worker/project/test/shared-additions.test.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}