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 254 --json
JSON
/christopher/abso-core/versions/254?format=json

A file's history checks each version's files before building its entry (abso Capacity, issue 664).

of shared·capacity··Not checked

log with a path built the full entry of every version it walked (every atom of the version read, to count its changes) and only then checked whether the version changed the file: down to the file's twentieth change that was 367 versions on abso. It now checks the version's files first (the same versionFiles the entry uses, kept by the path index) and builds entries only for the versions it lists. Same answers.

On a fresh abso adoption (my machine): log for issues/src/index.ts, 20 entries, 108 ms first and 17 ms again (was about 0.45 s again). A full run matches 33 of 33 answers. All of worker/project/test pass (349).

Version 253 · Files at version 254

1 file, 8 lines added, 2 removed.

--- a/worker/project/version-log.ts
+++ b/worker/project/version-log.ts
@@ -66,12 +66,18 @@
6666 const p = space.versions[v]!;
6767 if (![...p.atoms, ...(p.dropped ?? [])].some((id) => g.filesOf(id).some((f) => sources.has(f)))) continue;
6868 }
69+ // With a path: only the versions that changed that file (its history), under its name then. Their files first, and
70+ // the whole entry (every atom of the version read) only for those (abso Capacity): a file's history read every
71+ // version's atoms down to its twentieth change.
72+ if (path !== undefined && !host.paths.versionFiles(space, v, views).includes(nameAt(v))) {
73+ views.delete(v + 1);
74+ continue;
75+ }
6976 const entry = logEntry(host, space, v, views);
7077 // The walk goes down: a view above this version won't be needed again (#46).
7178 views.delete(v + 1);
72− // With a path: only the versions that changed that file (its history), under its name then.
7379 if (path === undefined) versions.push(entry);
74− else if (entry.files.includes(nameAt(v))) versions.push(nameAt(v) === path ? entry : { ...entry, path: nameAt(v) });
80+ else versions.push(nameAt(v) === path ? entry : { ...entry, path: nameAt(v) });
7581 }
7682 const next = v >= 0 && versions.length > 0 ? versions[versions.length - 1]!.version : undefined;
7783 const movedFrom = names.slice(0, -1).map((n, i) => ({ path: names[i + 1]!.path, version: n.since }));