{"draft":null,"from":175,"to":318,"files":[{"path":"worker/project/version-log.ts","added":74,"removed":9,"diff":"--- a/worker/project/version-log.ts\n+++ b/worker/project/version-log.ts\n@@ -9,7 +9,7 @@\n import { ProjectError } from \"./project-error.ts\";\n import type { FileChange, LogAnswer, LogEntry, ShowAnswer } from \"./project-types.ts\";\n import { last, SHARED, type Space } from \"./spaces.ts\";\n-import { changesBetween } from \"./view-changes.ts\";\n+import { changesBetween, summariesBetween } from \"./view-changes.ts\";\n \n /** What the version list reads need from a project. */\n export interface LogHost {\n@@ -66,12 +66,18 @@\n \t\t\tconst p = space.versions[v]!;\n \t\t\tif (![...p.atoms, ...(p.dropped ?? [])].some((id) => g.filesOf(id).some((f) => sources.has(f)))) continue;\n \t\t}\n+\t\t// With a path: only the versions that changed that file (its history), under its name then. Their files first, and\n+\t\t// the whole entry (every atom of the version read) only for those (abso Capacity): a file's history read every\n+\t\t// version's atoms down to its twentieth change.\n+\t\tif (path !== undefined && !host.paths.versionFiles(space, v, views).includes(nameAt(v))) {\n+\t\t\tviews.delete(v + 1);\n+\t\t\tcontinue;\n+\t\t}\n \t\tconst entry = logEntry(host, space, v, views);\n \t\t// The walk goes down: a view above this version won't be needed again (#46).\n \t\tviews.delete(v + 1);\n-\t\t// With a path: only the versions that changed that file (its history), under its name then.\n \t\tif (path === undefined) versions.push(entry);\n-\t\telse if (entry.files.includes(nameAt(v))) versions.push(nameAt(v) === path ? entry : { ...entry, path: nameAt(v) });\n+\t\telse versions.push(nameAt(v) === path ? entry : { ...entry, path: nameAt(v) });\n \t}\n \tconst next = v >= 0 && versions.length > 0 ? versions[versions.length - 1]!.version : undefined;\n \tconst movedFrom = names.slice(0, -1).map((n, i) => ({ path: names[i + 1]!.path, version: n.since }));\n@@ -238,22 +244,59 @@\n \t};\n }\n \n-/** Every file that differs between two versions of shared (or a named draft), before (at `from`) and after (at `to`). */\n-export function compare(\n+/**\n+ * fileAt for exactly this spelling, from the file's own lines (abso Capacity, 2026-10-17): no spelling lookup and no\n+ * list of the version's files. fileAt's hasFile answers from the version's whole path list, folded from version 0\n+ * when nothing's kept, and a spelling it doesn't find reads every known path. A name nothing ever wrote is one read.\n+ * The pipeline's project files (abso.yml and the like) are read this way on every tick.\n+ */\n+export function fileExactAt(\n \thost: LogHost,\n+\tpath: string,\n+\tversion: number,\n+\toptions: { draft?: string | null; agent?: string } = {},\n+): { path: string; version: number; text: string | null; blob?: string } {\n+\thost.needInit();\n+\tcheckReadPath(path);\n+\tconst space = host.spaceFor(options);\n+\thost.checkVersion(space, version);\n+\tif (!host.graph.hasAtomsIn(path)) return { path, version, text: null };\n+\tconst view = host.viewAt(space, version);\n+\tconst attrs = view.attrs(path);\n+\t// hasFile's own test, without its path list: kept while empty, a link, a binary, or a visible line.\n+\tconst exists = attrs.exists || attrs.link !== null || attrs.blob !== null || view.lines(path).length > 0;\n+\treturn {\n+\t\tpath,\n+\t\tversion,\n+\t\ttext: exists ? view.text(path) : null,\n+\t\t...(attrs.blob !== null ? { blob: attrs.blob } : {}),\n+\t};\n+}\n+\n+/** The files that may differ between two versions, and both views: compare's and compareSummary's ground. */\n+function compared(\n+\thost: LogHost,\n \tfrom: number,\n \tto: number,\n-\toptions: { draft?: string | null; agent?: string } = {},\n-): { from: number; to: number; files: FileChange[] } {\n+\toptions: { draft?: string | null; agent?: string },\n+): { before: ReadView; after: ReadView; files: Set<string> } {\n \thost.needInit();\n \tconst space = host.spaceFor(options);\n \thost.checkVersion(space, from);\n \thost.checkVersion(space, to);\n-\tconst a = host.at(space, from);\n-\tconst b = host.at(space, to);\n \tconst before = host.viewAt(space, from);\n \tconst after = host.viewAt(space, to);\n \tconst files = new Set<string>();\n+\t// A stored writer keeps each shared version's changed files (version-files.ts, abso Capacity): every file that\n+\t// differs between two versions changed in one between them, so those lists are the candidates, not every atom\n+\t// either set holds.\n+\tif (space.name === SHARED && host.graph.packedFiles) {\n+\t\tfor (let v = Math.min(from, to) + 1; v <= Math.max(from, to); v++)\n+\t\t\tfor (const file of host.paths.versionFiles(space, v)) files.add(file);\n+\t\treturn { before, after, files };\n+\t}\n+\tconst a = host.at(space, from);\n+\tconst b = host.at(space, to);\n \tfor (const [x, y] of [\n \t\t[a, b],\n \t\t[b, a],\n@@ -266,9 +309,31 @@\n \t\t))\n \t\t\tfiles.add(file);\n \t}\n+\treturn { before, after, files };\n+}\n+\n+/** Every file that differs between two versions of shared (or a named draft), before (at `from`) and after (at `to`). */\n+export function compare(\n+\thost: LogHost,\n+\tfrom: number,\n+\tto: number,\n+\toptions: { draft?: string | null; agent?: string } = {},\n+): { from: number; to: number; files: FileChange[] } {\n+\tconst { before, after, files } = compared(host, from, to, options);\n \treturn { from, to, files: changesBetween(before, after, files) };\n }\n \n+/** compare's files as each one's size and SHA-256 before and after, not its texts (abso issue 680). */\n+export function compareSummary(\n+\thost: LogHost,\n+\tfrom: number,\n+\tto: number,\n+\toptions: { draft?: string | null; agent?: string } = {},\n+): { from: number; to: number; summary: true; files: ReturnType<typeof summariesBetween> } {\n+\tconst { before, after, files } = compared(host, from, to, options);\n+\treturn { from, to, summary: true, files: summariesBetween(before, after, files) };\n+}\n+\n /** A version of shared (or of a named draft) as a ReadView, for reading lines (blame at a version). */\n export function viewAt(\n \thost: LogHost,"}],"unmatched":[]}