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

A stored writer's read cache holds 4 MB and 16,384 rows (disk-first 2; abso Capacity).

of shared·capacity··Not checked

Agent VCS's first disk-first reads on staging (commonmark-ts) found diff 9.7 s on the first call, against 1.8 s replayed. On typescript-rs, with one opened writer, an agent's diff made 59,000 row reads. It touches more rows than the old cache's 4,096, so it read the same rows many times: the membership and closure events of each atom it checks, and the list of atoms that move lines.

At 4 MB and 16,384 rows, the same diff makes 22,000 reads and takes 1.1-2.8 s locally instead of 1.7-2.4 s. Locally a row read is cheap; in a Durable Object each one costs more, which is where staging's 9.7 s comes from. 8 MB saves only another 1,800. show is unchanged (5,000-8,500 reads, all distinct).

Named tests: project-writer-storage, membership-cache, view-cache, draft-reads-stored, packed-crossings (19 of 19); tsc and biome clean.

Version 221 · Files at version 222

1 file, 9 lines added, 1 removed.

--- a/worker/project/project.ts
+++ b/worker/project/project.ts
@@ -238,6 +238,12 @@
238238/** A start note lasts this long after the agent's last activity (#44). */
239239const NOTE_IDLE = 2 * 60 * 60 * 1000;
240240const WRITER_REOPEN = Symbol("verified writer checkpoint");
241+/**
242+ * The stored writer's read cache (abso Capacity). An agent's diff on typescript-rs touches more rows than the old
243+ * 4,096 held, so it read many of them again: 59,000 reads cold, against 22,000 at this size.
244+ */
245+const WRITER_CACHE_BYTES = 4 * 1_048_576;
246+const WRITER_CACHE_ROWS = 16_384;
241247export interface WriterSource {
242248 readonly generation: number;
243249 readonly logLength: number;
@@ -385,7 +391,9 @@
385391 if (options.indexAcceptedAtom && !options.writerStorage)
386392 throw Error("accepted atom indexing requires writer storage");
387393 this.#store = store;
388− this.#writerStorage = options.writerStorage ? new CachedStateStorage(options.writerStorage) : undefined;
394+ this.#writerStorage = options.writerStorage
395+ ? new CachedStateStorage(options.writerStorage, WRITER_CACHE_BYTES, WRITER_CACHE_ROWS)
396+ : undefined;
389397 if (this.#writerStorage) {
390398 const storage = this.#writerStorage;
391399 // A stored Graph cannot be replayed over itself. Check before any