{"draft":null,"from":257,"to":258,"files":[{"path":"src/engine/state-source.ts","added":15,"removed":1,"diff":"--- a/src/engine/state-source.ts\n+++ b/src/engine/state-source.ts\n@@ -41,7 +41,19 @@\n \t * all the news it was told: 4.3 MB for abso's 109 agents) otherwise push every small page out of the cache.\n \t */\n \treadonly #maxEntryBytes: number;\n-\tconstructor(source: GraphStateStorage, maxBytes = 1_048_576, maxEntries = 4096, maxEntryBytes = maxBytes) {\n+\t/**\n+\t * Collections read straight through, never kept (abso Capacity): a file's packed line pages are read only to lay the\n+\t * file out, and the view keeps the layout, so keeping the pages too held them twice and pushed out the small rows\n+\t * read on every call (an agent's tree re-read 3,500 of them each time).\n+\t */\n+\treadonly #passThrough: (collection: string) => boolean;\n+\tconstructor(\n+\t\tsource: GraphStateStorage,\n+\t\tmaxBytes = 1_048_576,\n+\t\tmaxEntries = 4096,\n+\t\tmaxEntryBytes = maxBytes,\n+\t\tpassThrough: (collection: string) => boolean = () => false,\n+\t) {\n \t\tif (\n \t\t\t!Number.isSafeInteger(maxBytes) ||\n \t\t\tmaxBytes < 0 ||\n@@ -55,6 +67,7 @@\n \t\tthis.#maxBytes = maxBytes;\n \t\tthis.#maxEntries = maxEntries;\n \t\tthis.#maxEntryBytes = Math.min(maxEntryBytes, maxBytes);\n+\t\tthis.#passThrough = passThrough;\n \t}\n \tget retainedBytes(): number {\n \t\treturn this.#bytes;\n@@ -74,6 +87,7 @@\n \t\t}\n \t}\n \tread(collection: string, key: string): unknown {\n+\t\tif (this.#passThrough(collection)) return this.#source.read(collection, key);\n \t\tconst cacheKey = JSON.stringify([collection, key]);\n \t\tconst hit = this.#cache.get(cacheKey);\n \t\tif (hit) {"}],"unmatched":[]}