{"draft":null,"from":117,"to":118,"files":[{"path":"src/engine/test/view.test.ts","added":14,"removed":0,"diff":"--- a/src/engine/test/view.test.ts\n+++ b/src/engine/test/view.test.ts\n@@ -8,6 +8,20 @@\n import { lines, Repo } from \"./helpers.ts\";\n \n describe(\"View\", () => {\n+\tit(\"current indexed paths do not retain deleted historical file layouts\", () => {\n+\t\tconst retained = (count: number) => {\n+\t\t\tconst files: Record<string, string> = { \"live.txt\": \"live\\n\" };\n+\t\t\tfor (let i = 0; i < count; i++) files[`old-${i}.txt`] = \"gone\\n\";\n+\t\t\tconst repo = Repo.init(files);\n+\t\t\trepo.edit({ edits: Array.from({ length: count }, (_, i) => ({ file: `old-${i}.txt`, old: \"gone\\n\", new: \"\" })) });\n+\t\t\tconst view = new View(repo.graph, new StableOverlaySet<AtomId>([\"a0\", \"a1\"]));\n+\t\t\tassert.deepEqual(view.files(), { \"live.txt\": \"live\\n\" });\n+\t\t\tconst weight = view.weight();\n+\t\t\tassert.equal(view.knownPaths().length, count + 1, \"explicit historical enumeration is preserved\");\n+\t\t\treturn weight;\n+\t\t};\n+\t\tassert.equal(retained(200), retained(20), \"deleted path count must not grow current-view retained state\");\n+\t});\n \tit(\"reuses indexed membership across a long run of lines without a history-sized memo\", () => {\n \t\tconst repo = Repo.init({ \"long.txt\": \"line\\n\".repeat(1000) });\n \t\tclass CountingSet extends StableOverlaySet<AtomId> {"}],"unmatched":[]}