Versions 252 to 253
Lines 30–60 at 253 (were 30–41 at 252)
33− constructor(source: GraphStateStorage, maxBytes = 1_048_576, maxEntries = 4096) {
34− if (!Number.isSafeInteger(maxBytes) || maxBytes < 0 || !Number.isSafeInteger(maxEntries) || maxEntries < 0)
34+ * The keys written or removed in each open transaction, innermost last (abso Capacity). A rollback drops only those:
35+ * every projection scratch scope ends in a rollback, and dropping the whole cache there read the same rows from
40+ * The biggest one row may be and still be kept (abso Capacity). A few big rows read on every call (each agent with
41+ * all the news it was told: 4.3 MB for abso's 109 agents) otherwise push every small page out of the cache.
44+ constructor(source: GraphStateStorage, maxBytes = 1_048_576, maxEntries = 4096, maxEntryBytes = maxBytes) {
Lines 108–121 at 253 (were 89–100 at 252)
111+ // A projection scope's own rows are never read again once it ends in its rollback: forget them with it.
97− if (entry.bytes <= this.#maxBytes && this.#maxEntries > 0) {
Lines 125–131 at 253 (were 104–109 at 252)
Lines 133–160 at 253 (were 111–127 at 252)
114− this.#drop(JSON.stringify([collection, key]));
122− return this.#source.transaction(body);
124− this.clear();
156+ // What the transaction wrote, and anything read back after it wrote it, is gone with the rollback.
- MCP
- compare on this site's /mcp
- CLI
- abso diff 252 253 src/engine/state-source.ts --json
- JSON
- /christopher/abso-core/compare/252..253?file=src%2Fengine%2Fstate-source.ts&format=json