{"draft":null,"from":314,"to":318,"files":[{"path":"worker/project/collisions.ts","added":7,"removed":5,"diff":"--- a/worker/project/collisions.ts\n+++ b/worker/project/collisions.ts\n@@ -68,7 +68,7 @@\n \t\t}\n \t\tfor (const key of claimsOf(atom)) streams.push(g.eachWriterOf(key));\n \t\tconst theirs: AtomId[] = [];\n-\t\tfor (const id of orderedClaimants(g, streams)) if (against.has(id)) theirs.push(id);\n+\t\tfor (const id of orderedClaimants(streams)) if (against.has(id)) theirs.push(id);\n \t\tout.set(yours, theirs);\n \t}\n \treturn out;\n@@ -136,7 +136,7 @@\n \n /** Claim indexes append in canonical seq order. Merge one cursor per current\n  * atom key, retaining no candidate set proportional to historical claims. */\n-function* orderedClaimants(g: Graph, streams: IterableIterator<AtomId>[]): IterableIterator<AtomId> {\n+function* orderedClaimants(streams: IterableIterator<AtomId>[]): IterableIterator<AtomId> {\n \ttry {\n \t\ttype Head = { id: AtomId; seq: number; stream: number };\n \t\tconst heap: Head[] = [];\n@@ -152,9 +152,11 @@\n \t\t\t}\n \t\t\theap[at] = head;\n \t\t};\n+\t\t// Each claimant's seq from its id, as the graph reads it (abso 738): loading the stored atom for it read a row a\n+\t\t// claimant, most of a warm draft-state's pairing on abso.\n \t\tconst advance = (stream: number) => {\n \t\t\tconst next = streams[stream]!.next();\n-\t\t\tif (!next.done) push({ id: next.value, seq: g.atom(next.value).seq, stream });\n+\t\t\tif (!next.done) push({ id: next.value, seq: seqOf(next.value), stream });\n \t\t};\n \t\tfor (let stream = 0; stream < streams.length; stream++) advance(stream);\n \t\tlet previous = -1;\n@@ -190,8 +192,8 @@\n \t\tlet a = left.next();\n \t\tlet b = right.next();\n \t\twhile (!a.done && !b.done) {\n-\t\t\tconst x = g.atom(a.value).seq;\n-\t\t\tconst y = g.atom(b.value).seq;\n+\t\t\tconst x = seqOf(a.value);\n+\t\t\tconst y = seqOf(b.value);\n \t\t\tif (x === y && settled.has(a.value)) return true;\n \t\t\tif (x <= y) a = left.next();\n \t\t\tif (y <= x) b = right.next();"},{"path":"worker/project/definition-rule.ts","added":10,"removed":3,"diff":"--- a/worker/project/definition-rule.ts\n+++ b/worker/project/definition-rule.ts\n@@ -125,6 +125,11 @@\n \t\tspaceName: string,\n \t\tkept?: { parts: KeptParts; uses: string; changed: string },\n \t\tnames?: ReadonlySet<string>,\n+\t\t/**\n+\t\t * The files the newer work changed, when the caller knows them without placing its lines (land and draft-state:\n+\t\t * shared's kept version files, abso 738); undefined, or one that answers undefined, and they're worked out here.\n+\t\t */\n+\t\tchangedFiles?: () => ReadonlySet<string> | undefined,\n \t): DefinitionCollision[] {\n \t\tif (draft.size === 0 || newer.size === 0) return [];\n \t\tconst uses = kept\n@@ -153,9 +158,11 @@\n \t\t// Only a file the newer work touched can hold a changed definition, and only one a use means can matter: just those\n \t\t// files are laid out, before and with the newer work (abso 738). Laying out every file the newer work touched cost\n \t\t// codex-prose-authorship-610's draft-state 494 files a view where its uses reach 7.\n-\t\tconst touched = kept\n-\t\t\t? kept.parts.get(`touched ${kept.changed}`, () => this.#touched(newer, baseView, nowOf()), filesBytes)\n-\t\t\t: this.#touchedFor(newer, baseView, nowOf());\n+\t\tconst touched =\n+\t\t\tchangedFiles?.() ??\n+\t\t\t(kept\n+\t\t\t\t? kept.parts.get(`touched ${kept.changed}`, () => this.#touched(newer, baseView, nowOf()), filesBytes)\n+\t\t\t\t: this.#touchedFor(newer, baseView, nowOf()));\n \t\tconst changed = new Map<string, Changed>();\n \t\tconst changedIn = (file: string): Changed => {\n \t\t\tlet c = changed.get(file);"},{"path":"worker/project/land.ts","added":16,"removed":1,"diff":"--- a/worker/project/land.ts\n+++ b/worker/project/land.ts\n@@ -29,6 +29,8 @@\n \tpairs(draft: readonly AtomId[], against: ReadonlySet<AtomId>, settled: ReadonlySet<AtomId>): Pair[];\n \tdescribe(pair: Pair, yoursView: ReadView, theirsView: ReadView, spaceName: string): Collision;\n \tdefinitionRule(): DefinitionRule;\n+\t/** The files a space's versions after `from`, up to `to`, changed, when each one's are kept; else undefined. */\n+\tchangedSince(space: Space, from: number, to: number): ReadonlySet<string> | undefined;\n \trefuse(\n \t\tagent: AgentState,\n \t\tspace: Space,\n@@ -93,11 +95,24 @@\n \t\t? host.viewAt(shared, sharedBaseOf(space), changes)\n \t\t: host.viewAt(space, space.versions.length - 1);\n \tconst describeLand = (p: Pair): Collision => host.describe(p, draftView, host.sharedView(), SHARED);\n+\t// Where shared changed since the draft's base, from the files each version since kept as it landed (abso 738): working\n+\t// it out from the newer atoms placed every line they wrote or deleted, about 30% of a warm draft-state read.\n+\tconst changed = () => host.changedSince(shared, sharedBaseOf(space), host.version());\n \tconst collisions = [\n \t\t...host.pairs(changes, newer, union).map(describeLand),\n \t\t...host\n \t\t\t.definitionRule()\n-\t\t\t.collisions(own, draftView, host.viewAt(shared, sharedBaseOf(space)), host.sharedView(), newer, SHARED)\n+\t\t\t.collisions(\n+\t\t\t\town,\n+\t\t\t\tdraftView,\n+\t\t\t\thost.viewAt(shared, sharedBaseOf(space)),\n+\t\t\t\thost.sharedView(),\n+\t\t\t\tnewer,\n+\t\t\t\tSHARED,\n+\t\t\t\tundefined,\n+\t\t\t\tundefined,\n+\t\t\t\tchanged,\n+\t\t\t)\n \t\t\t.map((d) => d.collision),\n \t];\n \treturn { collisions, newer, union };"},{"path":"worker/project/pathindex.ts","added":15,"removed":0,"diff":"--- a/worker/project/pathindex.ts\n+++ b/worker/project/pathindex.ts\n@@ -90,6 +90,21 @@\n \t\treturn files && [...files].sort();\n \t}\n \n+\t/**\n+\t * The files the versions after `from`, up to `to`, changed, from each version's kept row (abso 738): undefined when one\n+\t * has none, and the caller works them out from the atoms. Every file whose text differs between the two versions is\n+\t * in it, since some version between changed it.\n+\t */\n+\tkeptChangesSince(space: Space, from: number, to: number): ReadonlySet<string> | undefined {\n+\t\tconst out = new Set<string>();\n+\t\tfor (let v = from + 1; v <= to; v++) {\n+\t\t\tconst files = this.#keptFiles(space, v);\n+\t\t\tif (!files) return undefined;\n+\t\t\tfor (const f of files) out.add(f);\n+\t\t}\n+\t\treturn out;\n+\t}\n+\n \t/** keptPaths as a set, kept for the newest version asked: never changed once made, so a view can hold it. */\n \tkeptPathSet(space: Space, version: number): ReadonlySet<string> | undefined {\n \t\tlet fold = this.#keptPaths.get(space);"},{"path":"worker/project/project.ts","added":8,"removed":1,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -2499,6 +2499,9 @@\n \t\t\tpairs: (draft, against, settled) => this.#pairs(draft, against, settled),\n \t\t\tdescribe: (pair, yoursView, theirsView, spaceName) => this.#describe(pair, yoursView, theirsView, spaceName),\n \t\t\tdefinitionRule: () => this.#definitionRule,\n+\t\t\t// Only from a stored writer's kept rows, as keptPaths: a project in memory keeps none, and works them out.\n+\t\t\tchangedSince: (space, from, to) =>\n+\t\t\t\tthis.#writerStorage ? this.#paths.keptChangesSince(space, from, to) : undefined,\n \t\t\trefuse: (agent, space, via, time, collisions, entries) =>\n \t\t\t\tthis.#refuse(agent, space, via, time, collisions, entries),\n \t\t\trequireClosed: (tie, union) => this.#requireClosed(tie, union),\n@@ -3215,15 +3218,19 @@\n \t\tconst base = agent.mine.some((id) => at.has(id))\n \t\t\t? this.#view(differenceSet(at, new StableOverlaySet(agent.mine)))\n \t\t\t: this.#viewAt(space, agent.base);\n+\t\tconst to = version ?? last(space);\n \t\treturn this.#definitionRule.collisions(\n \t\t\tdraft,\n \t\t\tthis.#agentView(agent),\n \t\t\tbase,\n-\t\t\tthis.#viewAt(space, version ?? last(space)),\n+\t\t\tthis.#viewAt(space, to),\n \t\t\tnewer,\n \t\t\tspace.name,\n \t\t\tundefined,\n \t\t\tnames,\n+\t\t\t// Where the space changed since the agent's base, from each version's kept files on a stored writer, as land's\n+\t\t\t// (abso 714): walking every newer atom for them was 6.5 s of a publish 770 versions behind on abso.\n+\t\t\t() => (this.#writerStorage ? this.#paths.keptChangesSince(space, agent.base, to) : undefined),\n \t\t);\n \t}\n }"},{"path":"worker/project/spelling.ts","added":4,"removed":2,"diff":"--- a/worker/project/spelling.ts\n+++ b/worker/project/spelling.ts\n@@ -73,7 +73,9 @@\n export function spellingOf(view: ReadView, path: string): string {\n \tif (view.hasFile(path)) return path;\n \tconst key = pathKey(path);\n-\t// Known paths first, by key, then only those laid out (#46).\n-\tconst twins = view.knownPaths().filter((p) => pathKey(p) === key && view.hasFile(p));\n+\t// Every path the graph has ever had, by key, then only those the view has a file at (#46). Not the view's known paths\n+\t// (abso Capacity, 714): those read every atom's membership and file list, 36,360 statements of a record on abso, as\n+\t// clashIn found. A path the view never had has no file in it, so the answers are the same.\n+\tconst twins = [...view.graph.knownFiles()].filter((p) => pathKey(p) === key && view.hasFile(p));\n \treturn twins.length === 1 ? twins[0]! : path;\n }"}],"unmatched":[]}