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 161 to 162

Compare

+34 −0 in 2 places
Lines 72–108 at 162 (were 72–77 at 161)
7272 }).ready
7373 )
7474 assert.ok(++pages < 1000);
75+ // Repeated anonymous views share one reader only inside their verified session.
76+ const session = projection.open({ state, log: new SqliteLog(storage), root: host().root() });
77+ const views = session.readViewProvider(oracle.graph);
78+ const first = views.keyed!("v @0");
79+ assert.equal(views.keyed!("v @0"), first);
80+ assert.deepEqual(first.files(), { "a.txt": "one\ntwo\n" });
81+ const seq = oracle.graph.size;
82+ oracle.graph.add({
83+ id: `a${seq}`,
84+ seq,
85+ author: "fixture",
86+ message: "Advance graph",
87+ time: 5,
88+ inserts: [],
89+ deletes: [],
90+ writes: [],
91+ reads: [],
92+ holds: [],
93+ needs: [],
94+ resolves: [],
95+ reasons: [],
96+ deps: ["a0"],
97+ });
98+ assert.throws(() => first.files(), /stale/);
99+ const refreshed = views.keyed!("v @0");
100+ assert.notEqual(refreshed, first);
101+ assert.deepEqual(refreshed.files(), { "a.txt": "one\ntwo\n" });
102+ session.close();
103+ assert.throws(() => refreshed.files(), /expired|closed/);
104+ assert.throws(() => first.files(), /expired|closed/);
105+ assert.throws(() => views.keyed!("v @0"), /expired|closed/);
75106 const writer = () => new SqliteWriterHost(storage, namespace, projection, { indexProjectionAtoms: true });
76107 const run = (operation: "record" | "publish", body: unknown, failReceipt = false) =>
77108 writer().runCalls({
Lines 123–131 at 162 (were 92–97 at 161)
92123 assert.throws(() => run("record", { files: { "b.txt": "failed\n" } }, true), /receipt failure/);
93124 assert.deepEqual(rows(), before);
94125 assert.equal(run("record", { files: { "b.txt": "finished\n" } }).status, 200);
126+ const beforePublish = rows();
127+ assert.throws(() => run("publish", { message: "Disk first" }, true), /receipt failure/);
128+ assert.deepEqual(rows(), beforePublish);
95129 const published = run("publish", { message: "Disk first" });
96130 assert.equal(published.status, 200);
97131 assert.equal((published.body as { ok: boolean }).ok, true);
MCP
compare on this site's /mcp
CLI
abso diff 161 162 server/test/writer-host.test.ts --json
JSON
/christopher/abso-core/compare/161..162?file=server%2Ftest%2Fwriter-host.test.ts&format=json