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

Status for an agent behind shared lists its base version's kept paths, not a layout of every known file (abso 711, abso - Performance's fix; Capacity ships it)

of shared·capacity··Not checked

  • agentPaths and pathsOf listed an agent's files with agentView(agent).paths(). For an agent behind shared on a stored writer, that lays out every known file's history: 21,939-28,410 statements the first time, 11,330-26,075 each repeat, nothing kept. On prod abso this afternoon, 28 status calls ran 29,000-40,000 statements each while the object reset (Observability).
  • An agent with nothing of its own (agent.mine empty) sees exactly its base version, so its paths are that version's kept file list (keptPaths, as pathsAt already uses: about 30 statements). An agent with a draft, or a store without kept paths, is laid out as before.
  • Performance's measurement on a copy of abso's tables, first status of 12 agents: median 26,040 statements before, 203 after (max 4,686, the three with drafts); 44.2 s in all before, 4.8 s after; every status body byte for byte the same.

Checks: core tsc clean; Biome clean; node --test worker/project/test/known-paths (new: agentPaths and pathsOf on a writer match the in-memory project, for agents behind shared, at shared and with drafts), files-reads, project, reviewers: 33 of 33 pass.

Version 302 · Files at version 303

2 files, 31 lines added, 2 removed.

--- a/worker/project/project-status.ts
+++ b/worker/project/project-status.ts
@@ -49,6 +49,18 @@
4949}
5050
5151/**
52+ * An agent with nothing of its own sees exactly its base version, so its paths are that version's kept file list
53+ * (pathindex.ts), when there is one: no layout of every known file (abso - Performance, abso 711).
54+ */
55+function viewPaths(host: SnapshotHost, agent: AgentState): string[] {
56+ const kept =
57+ agent.mine.length === 0
58+ ? host.keptPaths?.(host.spaceNamed(agent.space === SHARED ? null : agent.space), agent.base)
59+ : undefined;
60+ return kept ?? host.agentView(agent).paths();
61+}
63+/**
5264 * The paths in an agent's view now (#37): what its folder should hold.
5365 * Reading it changes nothing. Binary files are included.
5466 */
@@ -62,7 +74,7 @@
6274 return {
6375 version: agent.base,
6476 draft: agent.space === SHARED ? null : agent.space,
65− files: host.agentView(agent).paths(),
77+ files: viewPaths(host, agent),
6678 };
6779}
6880
@@ -94,7 +106,7 @@
94106 agent: agent.name,
95107 version: agent.base,
96108 draft: agent.space === SHARED ? null : agent.space,
97− files: host.agentView(agent).paths(),
109+ files: viewPaths(host, agent),
98110 };
99111}
100112
--- a/worker/project/test/known-paths.test.ts
+++ b/worker/project/test/known-paths.test.ts
@@ -105,3 +105,20 @@
105105 ] as const)
106106 assert.deepEqual(project.pathsAt(version).files, oracle.draftOf(agent)!.view.paths(), `paths at ${version}`);
107107});
109+test("an agent's files on a writer, from its base version's kept list when it has nothing of its own, as the in-memory project says", () => {
110+ // abso - Performance (abso 711): a status for an agent behind shared listed its files by laying out every known file.
111+ const oracle = new Project(new MemoryStore());
112+ const project = writer();
113+ history(oracle);
114+ history(project);
115+ // v0 and v1 are behind shared with nothing of their own, v2 is at shared, and bob, cy, dee and eve have drafts.
116+ for (const agent of ["v0", "v1", "v2", "bob", "cy", "dee", "eve"]) {
117+ assert.deepEqual(project.agentPaths(agent), oracle.agentPaths(agent), agent);
118+ assert.deepEqual(project.pathsOf(agent), oracle.pathsOf(agent), `${agent} for a reader`);
119+ }
120+ assert.deepEqual(project.agentPaths("v0").files, project.pathsAt(0).files);
121+ assert.equal(project.agentPaths("v0").files.includes("src/gone.ts"), true);
122+ assert.equal(project.agentPaths("v1").files.includes("src/gone.ts"), false);
123+ assert.equal(project.agentPaths("eve").files.includes("src/draft-new.ts"), true);
124+});