Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 204 to 205

Compare

+13 −4 in 5 places
Lines 17–24 at 205 (were 17–22 at 204)
1717 CachedStateStorage,
1818 differenceSet,
1919 type GraphStateStorage,
20+ isClosedSet,
21+ markClosed,
2022 StableOverlaySet,
2123 StableSet,
2224 StableUnionSet,
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;
15851587 try {
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
1590+ // its membership.
1591+ if (this.#writerStorage && (this.#spaces.get(SHARED)?.versions.length ?? 0) > versionsBefore)
1592+ indexClosure(this.#writerStorage, this.#spaces.get(SHARED)!, this.#graph);
15871593 } finally {
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.
27202726 */
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)
27342743 }
27352744 }
27362745 };
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);
27392748 }
27402749 return this.#graph.closureOf(set);
27412750 }
MCP
compare on this site's /mcp
CLI
abso diff 204 205 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/204..205?file=worker%2Fproject%2Fproject.ts&format=json