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

+27 −0 in 1 place
Lines 103–132 at 162 (were 103–105 at 161)
103103 db.db.close();
104104 }
105105});
107+test("multi-key locator updates match sequential sparse edits and retain previous roots", () => {
108+ const db = new SqlState();
109+ try {
110+ const batched = new ProjectionLocator(db, "multi", decode);
111+ const sequential = new ProjectionLocator(db, "oracle", decode);
112+ let left: number | null = null,
113+ right: number | null = null;
114+ let seed = 12345;
115+ const random = () => (seed = (Math.imul(seed, 1664525) + 1013904223) >>> 0);
116+ const keys = [0, 0xffffffff, 1, 16, 255, 256, ...Array.from({ length: 60 }, random)];
117+ for (let round = 0; round < 8; round++) {
118+ const edits: [number, number][] = Array.from({ length: 64 }, (_, i) => [
119+ keys[random() % keys.length]!,
120+ round * 100 + i,
121+ ]);
122+ const prior: number | null = left;
123+ const oldEntries: (readonly [number, number])[] = [...batched.entries(prior)];
124+ left = batched.setMany(left, edits);
125+ for (const [key, value] of edits) right = sequential.set(right, key, value);
126+ assert.deepEqual([...batched.entries(left)], [...sequential.entries(right)]);
127+ assert.deepEqual([...batched.entries(prior)], oldEntries);
128+ }
129+ } finally {
130+ db.db.close();
131+ }
132+});
MCP
compare on this site's /mcp
CLI
abso diff 161 162 src/engine/test/projection-locator.test.ts --json
JSON
/christopher/abso-core/compare/161..162?file=src%2Fengine%2Ftest%2Fprojection-locator.test.ts&format=json