Lines 17–24 at 205 (were 17–22 at 204)
1919 type GraphStateStorage, Lines 176–182 at 205 (were 174–180 at 204)
174176import { recordFile as hostedRecordFile, type RecordFileHost } from "./record-file.ts"; 175177import { refusals as hostedRefusals, refuse as hostedRefuse, type RefuseHost } from "./refuse.ts"; 176178import { restore as hostedRestore, type RestoreHost } from "./restore.ts"; 177−import { last, Membership, SHARED, SharedAdditions, type Space, sharedBaseOf } from "./spaces.ts";
179+import { indexClosure, last, Membership, SHARED, SharedAdditions, type Space, sharedBaseOf } from "./spaces.ts"; 178180import { starting as hostedStarting, type StartingHost } from "./start.ts"; 179181import { switchTo as hostedSwitchTo, type SwitchHost } from "./switch-to.ts"; 180182import { sync as hostedSync, type SyncHost } from "./sync.ts"; Lines 1586–1595 at 205 (were 1584–1589 at 204)
15841586 const versionsBefore = this.#spaces.get(SHARED)?.versions.length ?? 0; 15861588 this.#applyEntry(entry, at, keptTime); 1589+ // Shared's closure, kept per version on disk (abso Capacity): after the entry, since its atoms join the graph after 1591+ if (this.#writerStorage && (this.#spaces.get(SHARED)?.versions.length ?? 0) > versionsBefore) 1592+ indexClosure(this.#writerStorage, this.#spaces.get(SHARED)!, this.#graph); 15881594 // Positions by version: where each version of shared was made. 15891595 const versionsAfter = this.#spaces.get(SHARED)?.versions.length ?? 0; Lines 2725–2736 at 205 (were 2719–2727 at 204)
27192725 * (abso issue 80). A closed set is unchanged. 27212727 #closed(set: Iterable<AtomId>): ReadonlySet<AtomId> { 2728+ if (isClosedSet(set)) return set as ReadonlySet<AtomId>; 27222729 if (set instanceof StableSet) { 27232730 // Keep indexed membership external. Only dependencies absent from 2724− // that snapshot belong in the operation's closure overlay.
2731+ // that snapshot belong in the operation's closure overlay. Over a stored closed base (abso Capacity), 2732+ // only the overlay's atoms can reach outside it. 2733+ const walk = set instanceof StableUnionSet && isClosedSet(set.left) ? set.right : set; 27252734 const missing = new Set<AtomId>(); 27262735 const visit = (id: AtomId) => { 27272736 const stack = [id]; Lines 2743–2750 at 205 (were 2734–2741 at 204)
2737− for (const id of set) visit(id);
2738− return missing.size ? new StableUnionSet(set, new StableOverlaySet(missing)) : set;
2746+ for (const id of walk) visit(id); 2747+ return markClosed(missing.size ? new StableUnionSet(set, new StableOverlaySet(missing)) : set); 27402749 return this.#graph.closureOf(set);