{"version":244,"agent":"capacity","message":"compare keeps its own answer type; the summary is compareSummary (abso issue 680; abso Capacity).\n\n243 gave compare one answer type for both shapes, full and summary. abso's own callers read compare(...).files as file changes (worker/src/engine-project.ts, scripts/versions-check.ts, test/versions.test.ts), and the union broke their types, which showed when I pinned 243 into abso. Core's own tests didn't catch it.\n\n- version-log.ts: compared() works out the files and both views; compare answers {from, to, files: FileChange[]} as before 243, and compareSummary answers {from, to, summary: true, files}. Project.compareSummary calls it.\n- server/src/engine-project.ts: compare(..., summary) calls compareSummary when summary is set. http.ts and ProjectHistory are unchanged from 243 (?summary=1, a fifth argument).\n- compare-summary.test.ts calls compareSummary.\n\nAnswers are the same as 243's. Every engine test (292 of 292), every worker/project test (342 of 342); tsc (worker and server) and biome clean.","time":1792079189805,"timeIso":"2026-10-15T15:46:29.805Z","changes":4,"change":3767,"files":["server/src/engine-project.ts","worker/project/project.ts","worker/project/test/compare-summary.test.ts","worker/project/version-log.ts"],"draft":null,"diff":[{"path":"server/src/engine-project.ts","added":2,"removed":1,"diff":"--- a/server/src/engine-project.ts\n+++ b/server/src/engine-project.ts\n@@ -524,7 +524,8 @@\n \t\treturn this.project.fileAt(path, version, { draft, ...(agent ? { agent } : {}) });\n \t}\n \tcompare(from: number, to: number, draft: string | null, agent?: string, summary?: boolean) {\n-\t\treturn this.project.compare(from, to, { draft, ...(agent ? { agent } : {}), ...(summary ? { summary } : {}) });\n+\t\tconst where = { draft, ...(agent ? { agent } : {}) };\n+\t\treturn summary ? this.project.compareSummary(from, to, where) : this.project.compare(from, to, where);\n \t}\n \twithout(version: number, versions: readonly number[]) {\n \t\treturn this.project.without(version, versions);"},{"path":"worker/project/project.ts","added":6,"removed":0,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -203,6 +203,7 @@\n import {\n \ttype LogHost,\n \tcompare as versionCompare,\n+\tcompareSummary as versionCompareSummary,\n \tfileAt as versionFileAt,\n \tlog as versionLog,\n \tribbon as versionRibbon,\n@@ -1861,6 +1862,11 @@\n \t\treturn versionCompare(this.#logHost, ...args);\n \t}\n \n+\t/** compare as each file's size and SHA-256, not its texts (version-log.ts, abso issue 680). */\n+\tcompareSummary(...args: Tail<Parameters<typeof versionCompareSummary>>): ReturnType<typeof versionCompareSummary> {\n+\t\treturn versionCompareSummary(this.#logHost, ...args);\n+\t}\n+\n \t/** A version of shared without some earlier versions, or the refusal naming what builds on them (without.ts). */\n \twithout(version: number, versions: readonly number[]): ReturnType<typeof hostedWithout> {\n \t\tconst host: WithoutHost = {"},{"path":"worker/project/test/compare-summary.test.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/compare-summary.test.ts\n+++ b/worker/project/test/compare-summary.test.ts\n@@ -48,7 +48,7 @@\n \tfor (const project of [new Project(new MemoryStore(), { hasBlob: held }), writer()]) {\n \t\thistory(project);\n \t\tconst full = project.compare(0, 1);\n-\t\tconst summary = project.compare(0, 1, { summary: true });\n+\t\tconst summary = project.compareSummary(0, 1);\n \t\tif (\"summary\" in full || !(\"summary\" in summary)) throw Error(\"compare answered the wrong shape\");\n \t\tassert.deepEqual(\n \t\t\tsummary.files.map((f) => f.path),"},{"path":"worker/project/version-log.ts","added":28,"removed":13,"diff":"--- a/worker/project/version-log.ts\n+++ b/worker/project/version-log.ts\n@@ -238,15 +238,13 @@\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+/** 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; summary?: boolean } = {},\n-):\n-\t| { from: number; to: number; files: FileChange[] }\n-\t| { from: number; to: number; summary: true; files: ReturnType<typeof summariesBetween> } {\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@@ -254,18 +252,13 @@\n \tconst before = host.viewAt(space, from);\n \tconst after = host.viewAt(space, to);\n \tconst files = new Set<string>();\n-\t// With summary, each file's size and SHA-256 instead of its texts (abso issue 680).\n-\tconst answer = (paths: Iterable<string>) =>\n-\t\toptions.summary\n-\t\t\t? { from, to, summary: true as const, files: summariesBetween(before, after, paths) }\n-\t\t\t: { from, to, files: changesBetween(before, after, paths) };\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 answer(files);\n+\t\treturn { before, after, files };\n \t}\n \tconst a = host.at(space, from);\n \tconst b = host.at(space, to);\n@@ -281,9 +274,31 @@\n \t\t))\n \t\t\tfiles.add(file);\n \t}\n-\treturn answer(files);\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,"}],"ci":null}