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
MCP
show on this site's /mcp
CLI
abso show 236 --json
JSON
/christopher/abso-core/versions/236?format=json

Fix 235's wrong draft diff: a draft view's shared files count everything it holds beyond its base (disk-first 2; abso Capacity).

of shared·capacity··Not checked

Disk-first Testing found a wrong answer on typescript-rs with 235: diff for cloud-ts-01 showed lib.rs and passes.rs before cloud-ts-01's own version 326. The diff's before view is cloud-ts-01's base (293) plus three of its atoms that touch only reports/cloud-ts-01.md.

A view's set is closed under dependencies, so it also holds atoms those three depend on that 293 lacks, including the ones that added passes.rs and rewrote lib.rs. 235 counted only the draft's own atoms as touched, so it took those two files from version 293.

The files a draft's view can't take from its base are now worked out over everything the view holds beyond the base: the draft, plus whatever it depends on that the base lacks. Sharing is still off when any of those moves lines.

Check: on typescript-rs adopted fresh, diff for cloud-ts-01 differs from replay on 235's code and matches with this. The unit tests do not reproduce this state; the export comparison does. Named tests: every worker/project test (338 of 338) and every engine test; tsc and biome clean.

Version 235 · Files at version 236

1 file, 17 lines added, 6 removed.

--- a/worker/project/project.ts
+++ b/worker/project/project.ts
@@ -2744,13 +2744,24 @@
27442744 const base = this.#viewAt(this.#spaceOf(agent), agent.base);
27452745 if (base instanceof View) {
27462746 view.shareMoves(base);
2747− // And its layout of every file the draft doesn't touch, when the draft moves nothing (abso Capacity).
2747+ // And its layout of every file the draft doesn't touch, when the draft moves nothing (abso Capacity). What the
2748+ // view holds beyond its base is the draft and whatever the draft depends on that the base lacks (the view's
2749+ // set is closed): each of those can change a file, so all of them count.
27482750 const mine = agent.mine;
2749− view.shareFiles(base, () =>
2750− mine.some((id) => (this.#graph.atom(id).moves?.length ?? 0) > 0)
2751− ? undefined
2752− : this.#touchedFiles(mine, [base, view]),
2753− );
2751+ view.shareFiles(base, () => {
2752+ const graph = this.#graph;
2753+ const below = base.set;
2754+ const beyond = new Set<AtomId>();
2755+ const stack = [...mine];
2756+ while (stack.length) {
2757+ const id = stack.pop()!;
2758+ if (beyond.has(id) || below.has(id)) continue;
2759+ beyond.add(id);
2760+ for (const dep of graph.atom(id).deps) if (!beyond.has(dep) && !below.has(dep)) stack.push(dep);
2761+ }
2762+ for (const id of beyond) if ((graph.atom(id).moves?.length ?? 0) > 0) return undefined;
2763+ return this.#touchedFiles(beyond, [base, view]);
2764+ });
27542765 }
27552766 }
27562767 return view;