{"id":3628,"agent":"capacity","title":"Membership by atom number, a page per 256 atoms (disk-first 2; abso Capacity).\n\nAsking whether an atom is in shared (or shared's closure) at a version read the atom's event list: its length, then the event, and closure's length after that. where asks it for every line of every file a draft touches, for every agent with a draft. On typescript-rs that came to about 100,000 of where's 180,000 row reads, and to most of an agent's diff.\n\n- Each space now also keeps, per 256 atoms, a page of numbers, one per atom: none, the version of its only event when that event adds it, or mixed when it has more (dropped, or back again). A set reads a page once and answers from it; a mixed atom reads its events as before. Shared's closure keeps the same pages.\n- Kept from a space's first event on, so only fresh adoptions have them. A space indexed before reads its events as before.\n\nOn typescript-rs adopted fresh, with one opened writer, cold:\n- where: 180,000 reads to 59,000; 36 s to 4.9 s\n- diff for cloud-ts-06: 59,000 reads to 4,500; 592 ms\n- show: about 5,000 reads to about 3,000; about 300 ms\n26 of 27 answers match replay; collisions still runs past 60 s.\n\nNew test membership-pages: every atom at every version, through drops, answers as the in-memory project. It fails when the page comparison is off by one. Named tests: membership-pages, stored-membership, stored-closure, membership-cache, draft-reads-stored, version-files, packed-crossings, project-writer-storage, writer-adoption, drop, named-drafts (42 of 42); tsc and biome clean.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792052913222,"timeIso":"2026-10-15T08:28:33.222Z","open":false,"versions":[{"version":226,"draft":null,"message":"Membership by atom number, a page per 256 atoms (disk-first 2; abso Capacity).\n\nAsking whether an atom is in shared (or shared's closure) at a version read the atom's event list: its length, then the event, and closure's length after that. where asks it for every line of every file a draft touches, for every agent with a draft. On typescript-rs that came to about 100,000 of where's 180,000 row reads, and to most of an agent's diff.\n\n- Each space now also keeps, per 256 atoms, a page of numbers, one per atom: none, the version of its only event when that event adds it, or mixed when it has more (dropped, or back again). A set reads a page once and answers from it; a mixed atom reads its events as before. Shared's closure keeps the same pages.\n- Kept from a space's first event on, so only fresh adoptions have them. A space indexed before reads its events as before.\n\nOn typescript-rs adopted fresh, with one opened writer, cold:\n- where: 180,000 reads to 59,000; 36 s to 4.9 s\n- diff for cloud-ts-06: 59,000 reads to 4,500; 592 ms\n- show: about 5,000 reads to about 3,000; about 300 ms\n26 of 27 answers match replay; collisions still runs past 60 s.\n\nNew test membership-pages: every atom at every version, through drops, answers as the in-memory project. It fails when the page comparison is off by one. Named tests: membership-pages, stored-membership, stored-closure, membership-cache, draft-reads-stored, version-files, packed-crossings, project-writer-storage, writer-adoption, drop, named-drafts (42 of 42); tsc and biome clean.","time":1792052913222,"timeIso":"2026-10-15T08:28:33.222Z","files":["worker/project/spaces.ts","worker/project/test/membership-pages.test.ts"]}],"files":["worker/project/spaces.ts","worker/project/test/membership-pages.test.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}