Versions 160 to 318
Lines 1–100 at 318 (were 1–14 at 160)
7−import { Project } from "../../worker/project/project.ts";
9−import { SqliteLog } from "../src/engine-project.ts";
1115
26+ const large = memory.entries.findIndex((entry) => Buffer.byteLength(JSON.stringify(entry)) > 1_048_576);
54+
55+test("historical runtime preserves named draft bases and intermediate states after landing", (t) => {
97+
Lines 128–156 at 318 (were 42–53 at 160)
137+ "DELETE FROM writer_state WHERE namespace LIKE 'disk-v1:history%'; DROP TABLE writer_history_keys; DROP TABLE writer_history_heads;",
45146 const req = { id: "record-1", identity: { agent: "alice", operation: "record", files: { "a.txt": "changed\n" } } };
Lines 186–217 at 318 (were 83–89 at 160)
Lines 257–499 at 318 (were 129–132 at 160)
278+ assert.deepEqual(rows(), adopted, "receipt failure must roll back canonical state, history and its cursor");
281+
306+ const oldWriter = () => new SqliteWriterHost(storage, namespace, projection, { indexProjectionAtoms: true });
326+ for (let page = 0; page < 100 && !ready; page++) ready = runtime().preparePage(() => {}).ready;
350+
361+ const request = { id: "large-response", identity: { agent: "alice", operation: "large-fixture" } };
373+ const header = state.read("runtime:receipts", request.id) as { parts: number; characters: number; digest: string };
393+
405+ state: storage.db.prepare("SELECT * FROM writer_state ORDER BY namespace,collection,key,part").all(),
406+ history: storage.db.prepare("SELECT * FROM writer_history_keys ORDER BY namespace,collection,key,revision").all(),
416+ if (collection === "runtime:receipt:chunk-failure" && key === "1") throw Error("injected receipt chunk failure");
424+ assert.throws(() => runtime().write(operation, () => {}, request), /injected receipt chunk failure/);
468+
481+ 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 160 318 server/test/disk-first-runtime.test.ts --json
- JSON
- /christopher/abso-core/compare/160..318?file=server%2Ftest%2Fdisk-first-runtime.test.ts&format=json