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 153 to 318

Compare

+25 −0 in 1 place
Lines 31–58 at 318 (were 31–33 at 153)
3131 db.db.close();
3232 }
3333});
35+test("accepting an edit does not decode historical atoms to canonicalize identities", () => {
36+ const db = new SqlState();
37+ try {
38+ const repo = Repo.init({ "a.txt": `first\n${"old\n".repeat(8191)}` });
39+ const graph = new Graph({ storage: db });
40+ graph.add(repo.graph.atom("a0"));
41+ const edit = repo.edit({ edits: [{ file: "a.txt", old: "first\n", new: "changed\n" }] });
42+ assert.ok(edit.deps.includes("a0"));
43+ const read = db.read.bind(db);
44+ db.read = (collection, key) => {
45+ if (collection === "atoms") throw Error("historical atom payload read forbidden");
46+ return read(collection, key);
47+ };
48+ graph.add(edit);
49+ assert.equal(graph.size, 2);
50+ assert.equal(graph.idOfSeq(1), edit.id);
51+ assert.equal(graph.lamport(edit.id), repo.graph.lamport(edit.id));
52+ assert.deepEqual(graph.filesOf(edit.id), repo.graph.filesOf(edit.id));
53+ db.read = read;
54+ assert.deepEqual(graph.atom(edit.id), repo.graph.atom(edit.id));
55+ } finally {
56+ db.db.close();
57+ }
58+});
MCP
compare on this site's /mcp
CLI
abso diff 153 318 src/engine/test/graph-metadata-indexed.test.ts --json
JSON
/christopher/abso-core/compare/153..318?file=src%2Fengine%2Ftest%2Fgraph-metadata-indexed.test.ts&format=json