{"draft":null,"from":175,"to":318,"files":[{"path":"src/engine/test/projection-scratch.test.ts","added":3,"removed":1,"diff":"--- a/src/engine/test/projection-scratch.test.ts\n+++ b/src/engine/test/projection-scratch.test.ts\n@@ -32,7 +32,9 @@\n \t\t\t);\n \t\t\tassert.deepEqual(result, { value: 99, data: new Int32Array([1, 2]) });\n \t\t\tassert.throws(() => escaped!.write(\"x\", \"y\", true), /ended/);\n-\t\t\tassert.equal(storage.retainedEntries, 0, \"scratch rollback invalidates every cached value\");\n+\t\t\t// A scratch rollback drops only what the scratch wrote (abso Capacity): the canonical value written before it, in\n+\t\t\t// the outer transaction, stays cached and is still right.\n+\t\t\tassert.equal(storage.retainedEntries, 1, \"only the canonical value written before the scratch remains\");\n \t\t\tassert.equal(storage.read(\"canonical\", \"before\"), 1);\n \t\t\tstorage.write(\"canonical\", \"after\", 2);\n \t\t});"}],"unmatched":[]}