Versions 161 to 162
Lines 4–99 at 162 (were 4–14 at 161)
7−import { Project } from "../../worker/project/project.ts";
9−import { SqliteLog } from "../src/engine-project.ts";
1114
25+ const large = memory.entries.findIndex((entry) => Buffer.byteLength(JSON.stringify(entry)) > 1_048_576);
53+
54+test("historical runtime preserves named draft bases and intermediate states after landing", (t) => {
96+
Lines 127–155 at 162 (were 42–53 at 161)
136+ "DELETE FROM writer_state WHERE namespace LIKE 'disk-v1:history%'; DROP TABLE writer_history_keys; DROP TABLE writer_history_heads;",
45145 const req = { id: "record-1", identity: { agent: "alice", operation: "record", files: { "a.txt": "changed\n" } } };
Lines 185–216 at 162 (were 83–89 at 161)
Lines 256–488 at 162 (were 129–132 at 161)
277+ assert.deepEqual(rows(), adopted, "receipt failure must roll back canonical state, history and its cursor");
280+
305+ const oldWriter = () => new SqliteWriterHost(storage, namespace, projection, { indexProjectionAtoms: true });
325+ for (let page = 0; page < 100 && !ready; page++) ready = runtime().preparePage(() => {}).ready;
349+
360+ const request = { id: "large-response", identity: { agent: "alice", operation: "large-fixture" } };
382+
394+ state: storage.db.prepare("SELECT * FROM writer_state ORDER BY namespace,collection,key,part").all(),
395+ history: storage.db.prepare("SELECT * FROM writer_history_keys ORDER BY namespace,collection,key,revision").all(),
405+ if (collection === "runtime:receipt:chunk-failure" && key === "1") throw Error("injected receipt chunk failure");
413+ assert.throws(() => runtime().write(operation, () => {}, request), /injected receipt chunk failure/);
457+
470+ const before = storage.db.prepare("SELECT * FROM writer_state ORDER BY namespace,collection,key,part").all();
- MCP
- compare on this site's /mcp
- CLI
- abso diff 161 162 server/test/disk-first-runtime.test.ts --json
- JSON
- /christopher/abso-core/compare/161..162?file=server%2Ftest%2Fdisk-first-runtime.test.ts&format=json