{"version":313,"agent":"capacity","message":"fileExactAt: a file at a version by exactly its spelling, from its own lines, without the version's list of files (for abso's pipelines step)\n\n- version-log.ts fileExactAt(path, version): what fileAt answers for that same spelling, with no spelling lookup and no path list. Existence comes from hasFile's own test on the file itself: kept while empty, a link, a binary, or a visible line. A name nothing ever wrote is one hasAtomsIn read.\n- Why: fileAt's hasFile answers from the version's whole list of files (the kept path set, folded from version 0 when nothing nearby is kept), and a spelling it doesn't find reads every known path (filesOf over every atom). abso reads its project files (abso.yml and the like) for each green ready marker on every tick, and that grew with history: 2–5 s a tick on prod.\n- Project.fileExactAt; and ProjectHistory.fileExactAt, optional, so abso's pin compiles before its engine passes it through.\n- Test: worker/project/test/file-exact-at.test.ts. fileExactAt equals fileAt at every version for nine paths (added, edited, emptied, binary, removed, never written), and another spelling isn't resolved to the stored one.\n\nChecks: tsc clean; Biome clean; core tests (worker/project and src) 767 of 768 passed, 1 skipped, none failed.","time":1792205845200,"timeIso":"2026-10-17T02:57:25.200Z","changes":5,"change":5393,"files":["worker/project/project-api.ts","worker/project/project.ts","worker/project/test/file-exact-at.test.ts","worker/project/version-log.ts"],"draft":null,"diff":[{"path":"worker/project/project-api.ts","added":2,"removed":0,"diff":"--- a/worker/project/project-api.ts\n+++ b/worker/project/project-api.ts\n@@ -155,6 +155,8 @@\n \trefusals(agent?: string, limit?: number): unknown;\n \t/** A file as it was at a version (#27). */\n \tfileAt(path: string, version: number, draft: string | null, agent?: string): unknown;\n+\t/** fileAt for exactly this spelling, without the version's list of files (version-log.ts fileExactAt). */\n+\tfileExactAt?(path: string, version: number, draft: string | null): unknown;\n \t/** Every file that differs between two versions (#27). */\n \tcompare(from: number, to: number, draft: string | null, agent?: string, summary?: boolean): unknown;\n \t/** Version `version` of shared without the versions in `versions` (without.ts). */"},{"path":"worker/project/project.ts","added":6,"removed":0,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -222,6 +222,7 @@\n \tcompare as versionCompare,\n \tcompareSummary as versionCompareSummary,\n \tfileAt as versionFileAt,\n+\tfileExactAt as versionFileExactAt,\n \tlog as versionLog,\n \tribbon as versionRibbon,\n \tshow as versionShow,\n@@ -2008,6 +2009,11 @@\n \t\treturn versionFileAt(this.#logHost, ...args);\n \t}\n \n+\t/** fileAt for exactly this spelling, from the file's own lines: no list of the version's files (version-log.ts). */\n+\tfileExactAt(...args: Tail<Parameters<typeof versionFileExactAt>>): ReturnType<typeof versionFileExactAt> {\n+\t\treturn versionFileExactAt(this.#logHost, ...args);\n+\t}\n+\n \t/** Every file that differs between two versions of shared (or a named draft) (version-log.ts). */\n \tcompare(...args: Tail<Parameters<typeof versionCompare>>): ReturnType<typeof versionCompare> {\n \t\treturn versionCompare(this.#logHost, ...args);"},{"path":"worker/project/test/file-exact-at.test.ts","added":49,"removed":0,"diff":"--- /dev/null\n+++ b/worker/project/test/file-exact-at.test.ts\n@@ -0,0 +1,49 @@\n+// fileExactAt (version-log.ts, abso Capacity, 2026-10-17): the same answer as fileAt for exactly that spelling, at\n+// every version, read from the file's own lines without the version's list of files. abso's worker/test/\n+// project-files.test.ts checks it on the disk engine, where the list is what costs.\n+\n+import assert from \"node:assert/strict\";\n+import { test } from \"node:test\";\n+import { MemoryStore, Project } from \"../project.ts\";\n+\n+/** Files added, edited, emptied, made binary and taken out, beside others, over six versions. */\n+function history(): Project {\n+\tconst p = new Project(new MemoryStore(), { hasBlob: () => true });\n+\tp.init({ \"README.md\": \"hi\\n\", \"abso.json\": '{ \"check\": \"true\" }\\n', \"src/a.ts\": \"a\\n\" }, 0);\n+\tp.record(\"ann\", { \"abso.yml\": \"pipelines:\\n  ci:\\n    on: [push]\\n\", \"docs/abso.yml\": \"not this one\\n\" }, 1);\n+\tp.publish(\"ann\", \"a pipeline\", 2);\n+\tp.record(\"ann\", { \"abso.json\": '{ \"check\": \"false\" }\\n', \"empty.txt\": \"\" }, 3, {}, { \"abso.yaml\": \"b\".repeat(64) });\n+\tp.publish(\"ann\", \"a binary, and an empty file\", 4);\n+\tp.record(\"ann\", { \"abso.yml\": null, \"avcs.json\": \"{}\\n\", \"src/a.ts\": \"\" }, 5);\n+\tp.publish(\"ann\", \"the pipeline gone, a file emptied\", 6);\n+\treturn p;\n+}\n+\n+const PATHS = [\n+\t\"abso.yml\",\n+\t\"abso.yaml\",\n+\t\"abso.json\",\n+\t\"avcs.json\",\n+\t\"docs/abso.yml\",\n+\t\"empty.txt\",\n+\t\"src/a.ts\",\n+\t\"README.md\",\n+\t\"never.txt\",\n+];\n+\n+test(\"fileExactAt answers what fileAt answers for the same spelling, at every version\", () => {\n+\tconst p = history();\n+\tconst last = p.version;\n+\tassert.ok(last >= 3);\n+\tfor (let v = 0; v <= last; v++)\n+\t\tfor (const path of PATHS) assert.deepEqual(p.fileExactAt(path, v), p.fileAt(path, v), `${path} at ${v}`);\n+});\n+\n+test(\"a name nothing ever wrote is null, and another spelling is that spelling, not the stored one\", () => {\n+\tconst p = history();\n+\tconst last = p.version;\n+\tassert.deepEqual(p.fileExactAt(\"never.txt\", last), { path: \"never.txt\", version: last, text: null });\n+\t// fileAt reads the stored spelling for any spelling (#41); fileExactAt reads only the one asked.\n+\tassert.equal((p.fileAt(\"ABSO.json\", last) as { text: string | null }).text, '{ \"check\": \"false\" }\\n');\n+\tassert.deepEqual(p.fileExactAt(\"ABSO.json\", last), { path: \"ABSO.json\", version: last, text: null });\n+});"},{"path":"worker/project/version-log.ts","added":29,"removed":0,"diff":"--- a/worker/project/version-log.ts\n+++ b/worker/project/version-log.ts\n@@ -244,6 +244,35 @@\n \t};\n }\n \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,"}],"ci":null}