- MCP
- blame on this site's /mcp
- CLI
- abso blame worker/project/news.ts --version 295 --json
- JSON
- /christopher/abso-core/blame/worker/project/news.ts?version=295&format=json
443 linesFirst import 59% · capacity 26% · df-routing 5% · codex-capacity-chair 2% · speed 2% · autosettle 2% · Last change capacity in version 295,
443 lines from 16 changes in 14 versions.
init0Start the project1// How news reads: one sentence for each thing an agent should hear, with the key that makes it heard
2// once, and who hears it after an edit, publish or land. Writes (the news entry) stay on Project.
codex-capacity-chair143Add inactive disk projection provider and verified transactional readers (#16)Compare4import { type AtomId, type Graph, isStartNode, parseKey, type ReadView } from "../../src/engine/index.ts";
codex-capacity-chair133Keep persistent publish membership indexed through conflict checksCompare5import { unionOverlay } from "../../src/engine/state-source.ts";
init0Start the project6import { type Origin, type Pair, pairsIn, touchedFiles } from "./collisions.ts";
7import { type DefinitionCollision, signature } from "./definition-rule.ts";
8import { definitionsIn } from "./definitions.ts";
9import type { Kept } from "./markers.ts";
10import { pairKey } from "./project-helpers.ts";
11import type { AgentState, Collision, Entry, NoteKind, Overlap, PersonSender, Settled } from "./project-types.ts";
12import { last, type Space } from "./spaces.ts";
14/** One piece of news: `key` is told to an agent once, `text` is what it reads. */
15export interface NewsItem {
16 readonly key: string;
17 readonly text: string;
18}
20/** A line quoted in news: trimmed, and cut to 80 characters. */
21export function clip(line: string): string {
22 const t = line.trim();
23 return t.length > 80 ? `${t.slice(0, 79)}…` : t;
24}
26function versionName(o: { version: number; draft?: string }): string {
27 return o.draft === undefined ? `version ${o.version}` : `draft ${o.draft}, version ${o.version}`;
28}
30export function agentAnnouncement(sender: string, mark: string, text: string): string {
31 return `Announcement from ${sender} (${mark}): ${text.trim()}`;
32}
34export function personAnnouncement(name: string, id: string, text: string): string {
35 return `Announcement from ${name} (a person, signed in on the website, id ${id}): ${JSON.stringify(text.trim())}`;
36}
38/** A reviewer hears of a change that touches its review area (#44). */
39export function reviewItem(
40 by: string,
41 change: number,
42 title: string,
43 files: readonly string[],
44 version: number,
45): NewsItem {
46 const shown = files.slice(0, 3).join(", ") + (files.length > 3 ? ` and ${files.length - 3} more` : "");
47 return {
48 key: `review ${change}`,
49 text: `${by}'s change "${clip(title)}" touches ${shown} (version ${version}), in your review area. Read it: abso review ${change}.`,
50 };
51}
53/** An objection's writer hears that a version changed every line it was on (#44). */
54export function addressedItem(
55 by: string,
56 version: number,
57 note: { readonly id: number; readonly file: string; readonly text: string },
58): NewsItem {
59 return {
60 key: `addressed ${note.id}`,
61 text: `${by}'s version ${version} changed every line your objection ${note.id} on ${note.file} was on ("${clip(note.text)}"). Look, then close it: abso note --close ${note.id} --resolved.`,
62 };
63}
65/**
66 * A note's lines' authors, its change's agent and its thread hear it (#44).
67 * A person's text is JSON-quoted, as in their announcements, so a line break
68 * can't pass for another item.
69 */
70export function noteSaid(note: {
71 readonly id: number;
72 readonly writer: string;
73 readonly person?: PersonSender;
74 readonly kind: NoteKind;
75 readonly reply: boolean;
76 readonly file: string;
77 readonly where: readonly [number, number] | null;
78 readonly change?: string;
79 readonly text: string;
80}): string {
81 const { id, file, where } = note;
82 const span = where
83 ? where[0] === where[1]
84 ? `line ${where[0]}`
85 : `lines ${where[0]}-${where[1]}`
86 : "lines now gone";
87 const about = note.change !== undefined ? ` (change "${clip(note.change)}")` : "";
88 const verb = note.reply ? "replies on" : note.kind === "objection" ? "objects on" : "comments on";
89 const ask =
pinch78Biome is silent: about 90 hints cleared. String joins as templates, dotted keys, unused imports, variables and a private method removed, optional chains (one kept boolean with === true), the preset field instead of the deprecated recommended. Two rules off where they don't fit: noExplicitAny in the hook modules, whose engine types come from the host, and noTemplateCurlyInString in tests, which hold source text as data.Compare90 note.kind === "objection" ? ` Fix it, or answer: abso note --reply ${id}` : ` Answer: abso note --reply ${id}`;
92 ? `${note.person.person.name} (a person, signed in on the website, id ${note.person.person.id}) ${verb} ${file} ${span}${about}: ${JSON.stringify(clip(note.text))}.${ask}`
93 : `${note.writer} ${verb} ${file} ${span}${about}: "${clip(note.text)}".${ask}`;
94}
96/** A change's agent hears that an objection on it was closed (#44). */
97export function noteClosedItem(
98 by: string,
99 how: "resolved" | "withdrawn",
100 id: number,
101 note: { readonly file: string; readonly text: string },
102): NewsItem {
103 return {
104 key: `note closed ${id}`,
105 text: `${by} ${how === "resolved" ? "resolved" : "withdrew"} its objection on ${note.file}: "${clip(note.text)}".`,
106 };
107}
109/** An agent with work in files another's starting note names (#37). */
110export function startingItem(by: string, time: number, to: string, text: string, files: readonly string[]): NewsItem {
111 return {
112 key: `starting ${by} ${time} ${to}`,
113 text: `${by} says it is starting on "${text.trim()}", naming ${files.join(", ")}, where you have work too; run abso where to see who is where.`,
114 };
115}
117/** A file an edit left holding collision markers (#11): again whenever the count changes. */
118export function markedItem(draftId: string, file: string, blocks: number): NewsItem {
119 return {
120 key: `marked ${draftId} ${file} ${blocks}`,
121 text: `${file} still has ${blocks === 1 ? "1 collision block" : `${blocks} collision blocks`} to settle: abso settle ${file} --yours|--theirs|--both`,
122 };
123}
speed161A pull keeps the news of what a settle kept: it used to drop it with the news it makes moot, though the pull only brings the file, not whose side survivedCompare125/**
capacity200Project abso's memory, cut by a third (abso Capacity, prod abso hit its isolate memory limit at 7:20 and 7:25 PM CT). (1) The in-memory membership cache is one least-recently-used cache of 16 sets across every space, not up to 17 per space: each named draft cached whole copies of shared's set, 37 MB on prod abso with 106 drafts. Keyed by the space object, so a space rebuilt under the same name never gets old sets. (2) An agent keeps at most 200 unheard news lines (trimmed in batches of 50), the oldest dropped behind one line counting them: stopped agents kept every line, 7 MB. Measured on Engine's prod export of abso (81,855 entries) with measure-memory.ts --disk --reads: 96.6 MB after load before, 61.1 MB after; 105.3 MB after the heaviest reads before, 66.3 MB after. New tests membership-cache.test.ts and news-cap.test.ts.Compare126 * How many unheard news lines an agent keeps (abso Capacity). An agent that never hears its news, most often one that
127 * stopped, kept every line: 7 MB of prod project abso's memory. Past this many (and NEWS_TRIM more), the oldest go,
128 * and one line in front says how many.
129 */
130export const NEWS_KEPT = 200;
131/** How far past NEWS_KEPT the news grows before the oldest are trimmed off. */
132export const NEWS_TRIM = 50;
134const DROPPED_NEWS = /^(\d+) older news items? went unheard and (?:was|were) dropped: an agent keeps its newest \d+\.$/;
136/** The line in front of an agent's news that counts what was dropped. */
137export function droppedNewsLine(count: number): string {
138 return `${count} older news ${count === 1 ? "item" : "items"} went unheard and ${count === 1 ? "was" : "were"} dropped: an agent keeps its newest ${NEWS_KEPT}.`;
139}
141/**
142 * Keeps an agent's unheard news to at most NEWS_KEPT + NEWS_TRIM lines (and their times, in step): the oldest go, and the dropped-count
143 * line in front adds them up. Deterministic, so a replay of the log keeps the same lines.
144 */
145export function capNews(agent: { news: string[]; newsAt: (number | undefined)[] }): void {
146 const counted = DROPPED_NEWS.exec(agent.news[0] ?? "");
147 const before = counted ? Number(counted[1]) : 0;
148 const from = counted ? 1 : 0;
149 // Trimmed in batches of NEWS_TRIM, so a busy agent isn't copied on every line of news.
150 if (agent.news.length - from <= NEWS_KEPT + NEWS_TRIM) return;
151 const over = agent.news.length - from - NEWS_KEPT;
152 const at = agent.newsAt[from + over];
153 agent.news = [droppedNewsLine(before + over), ...agent.news.slice(from + over)];
154 agent.newsAt = [at, ...agent.newsAt.slice(from + over)];
155}
157/**
speed161A pull keeps the news of what a settle kept: it used to drop it with the news it makes moot, though the pull only brings the file, not whose side survivedCompare158 * News a sync doesn't make moot, so it is kept through one: announcements,
159 * and what a settle kept (the pull brings the file, not whose side survived).
160 */
161export function outlastsSync(text: string): boolean {
162 return text.startsWith("Announcement from ") || / settled its collision with your version \d+ in /.test(text);
163}
166 theirs: "it kept your lines",
167 yours: "it kept its own lines, not yours",
168 both: "it kept both its lines and yours",
169 rewrote: "it kept part of each side or rewrote them",
170};
speed160A held push keeps its message, and why tells every settle: the refusal stores the push's message; why on a line kept by abso settle --yours, --theirs or --both names the collision it was kept from, and both kinds of settle list the settler's held push with its reason; the settle's news and the change page carry it too, and a lone push's change now lists the refusals on its wayCompare172/** The other author of a marked collision a publish settled (#11): what was kept, any lines lost, and the settler's held reason. */
autosettle211Settled automatically, on the record and in the other agent's news (abso-core 23)
The client's re-push after settling by itself now ends its message with a fixed trailer, one line per file: 'Settled automatically (abso 19):' then '- <file>: kept <side>, confidence 0.81. <reason>' (or 'by a check in code'). autoTrailer writes it and autoSettledOf reads it back, both in worker/project/autosettle.ts. Publish and the merge queue put it on each settle record as settled[].auto {pick, by, confidence, reason}, so the website can mark the version. The other agent's news says 'X settled its collision with your version N in <file> automatically, as abso's model advised (confidence 0.81), pushing version V: ...' and still outlasts a sync.
Tests: autosettle.test.ts 9 (trailer round trip, news words), the client's settle/held tests 21, held-push, markers, project, same-line. Typecheck and server typecheck clean. Local open server under act: the trailer is written as above.Compare173/** " automatically, as abso's model advised (confidence 0.81)" for a settle the settler's abso made by itself (abso-core 23). */
174function autoWords(s: Settled): string {
175 if (!s.auto) return "";
176 return s.auto.by === "rule"
177 ? " automatically, by a check in code"
178 : ` automatically, as abso's model advised (confidence ${s.auto.confidence.toFixed(2)})`;
179}
init0Start the project181export function settledItem(by: string, version: number, s: Settled): NewsItem {
182 return {
183 key: `settled ${by} ${version} ${s.file} ${s.theirs.version}`,
184 text:
autosettle211Settled automatically, on the record and in the other agent's news (abso-core 23)
The client's re-push after settling by itself now ends its message with a fixed trailer, one line per file: 'Settled automatically (abso 19):' then '- <file>: kept <side>, confidence 0.81. <reason>' (or 'by a check in code'). autoTrailer writes it and autoSettledOf reads it back, both in worker/project/autosettle.ts. Publish and the merge queue put it on each settle record as settled[].auto {pick, by, confidence, reason}, so the website can mark the version. The other agent's news says 'X settled its collision with your version N in <file> automatically, as abso's model advised (confidence 0.81), pushing version V: ...' and still outlasts a sync.
Tests: autosettle.test.ts 9 (trailer round trip, news words), the client's settle/held tests 21, held-push, markers, project, same-line. Typecheck and server typecheck clean. Local open server under act: the trailer is written as above.Compare185 `${by} settled its collision with your version ${s.theirs.version} in ${s.file}${autoWords(s)}, pushing version ${version}: ${SETTLED_WHAT[s.kept]}.` +
187 ? ` It also lost ${s.lost.length === 1 ? "a line" : `${s.lost.length} lines`} you both still had: ${s.lost.map((l) => `"${clip(l)}"`).join(", ")}.`
188 : "") +
speed160A held push keeps its message, and why tells every settle: the refusal stores the push's message; why on a line kept by abso settle --yours, --theirs or --both names the collision it was kept from, and both kinds of settle list the settler's held push with its reason; the settle's news and the change page carry it too, and a lone push's change now lists the refusals on its wayCompare189 (s.held ? ` Its held push said: "${clip(s.held)}".` : "") +
191 };
192}
194/** One line per other agent whose work or starting note meets files the draft just started changing (#37). */
195export function overlapItems(draftId: string, overlaps: readonly Overlap[]): NewsItem[] {
196 const byAgent = new Map<string, Overlap[]>();
197 for (const o of overlaps) byAgent.set(o.agent, [...(byAgent.get(o.agent) ?? []), o]);
198 const items: NewsItem[] = [];
199 for (const [name, list] of byAgent) {
200 const files = list.map((o) => o.file);
rename100abso publish is now abso push, abso sync is now abso pull (abso 427)
Commands, help, flags, messages, MCP tool names and descriptions, hook text, README, SKILL.md and tests say push and pull; "shared" stays the noun ("Pushed version N"). No aliases, no notices. A queued push that was "pulled" is now "turned back", so pull means one thing.
push -f/--force/-u/--all/--tags and pull --rebase/--ff-only/--squash refuse with one plain line naming the abso way; push and pull take no remote or branch.
Kept as stored: log entry kinds (publish, sync, pulled), HTTP route paths, the pipeline trigger on: publish, the yours (unpublished) marker, npm-publish.Compare201 const what = list.some((o) => o.changes) ? "has unpushed changes in" : "says it is starting on";
203 items.push({
204 key: `overlap ${draftId} ${name} ${files.join(" ")}`,
205 text: `${name} ${what} ${files.join(", ")}${note ? ` ("${note}")` : ""}, which you just started changing. If it's the same work, talk to ${name} before going further; abso where shows the lines.`,
206 });
207 }
208 return items;
209}
211/** A move that took lines the draft changes somewhere else (#28): the changes went with them. */
212export function moveItem(atom: string, origin: Origin, from: string, to: string): NewsItem {
213 const where = from === to ? `within ${to}` : `from ${from} to ${to}`;
214 return {
215 key: `move ${atom}`,
216 text:
rename100abso publish is now abso push, abso sync is now abso pull (abso 427)
Commands, help, flags, messages, MCP tool names and descriptions, hook text, README, SKILL.md and tests say push and pull; "shared" stays the noun ("Pushed version N"). No aliases, no notices. A queued push that was "pulled" is now "turned back", so pull means one thing.
push -f/--force/-u/--all/--tags and pull --rebase/--ff-only/--squash refuse with one plain line naming the abso way; push and pull take no remote or branch.
Kept as stored: log entry kinds (publish, sync, pulled), HTTP route paths, the pipeline trigger on: publish, the yours (unpublished) marker, npm-publish.Compare217 `${origin.agent} pushed "${origin.message}" (${versionName(origin)}), which moved lines your draft changes ${where}; ` +
218 `your changes moved with them. Run abso pull to see them there.`,
220}
222/** A lines collision, as the agent whose draft it is reads it. */
223export function linesText(c: Collision): string {
224 const [a, b] = c.theirs.lines;
225 const where = b >= a ? `lines ${a}-${b}` : `line ${a}`;
226 return (
rename100abso publish is now abso push, abso sync is now abso pull (abso 427)
Commands, help, flags, messages, MCP tool names and descriptions, hook text, README, SKILL.md and tests say push and pull; "shared" stays the noun ("Pushed version N"). No aliases, no notices. A queued push that was "pulled" is now "turned back", so pull means one thing.
push -f/--force/-u/--all/--tags and pull --rebase/--ff-only/--squash refuse with one plain line naming the abso way; push and pull take no remote or branch.
Kept as stored: log entry kinds (publish, sync, pulled), HTTP route paths, the pipeline trigger on: publish, the yours (unpublished) marker, npm-publish.Compare227 `${c.theirs.agent} pushed "${c.theirs.message}" (${versionName(c.theirs)}), ` +
228 `which changes ${c.file} ${where}, where your draft also changes lines; run abso pull to see both versions.`
230}
232/** A changed or removed definition the draft uses (#11). */
233export function definitionText(origin: Origin, change: string, name: string, file: string, line: number): string {
234 return (
rename100abso publish is now abso push, abso sync is now abso pull (abso 427)
Commands, help, flags, messages, MCP tool names and descriptions, hook text, README, SKILL.md and tests say push and pull; "shared" stays the noun ("Pushed version N"). No aliases, no notices. A queued push that was "pulled" is now "turned back", so pull means one thing.
push -f/--force/-u/--all/--tags and pull --rebase/--ff-only/--squash refuse with one plain line naming the abso way; push and pull take no remote or branch.
Kept as stored: log entry kinds (publish, sync, pulled), HTTP route paths, the pipeline trigger on: publish, the yours (unpublished) marker, npm-publish.Compare235 `${origin.agent} pushed "${origin.message}" (${versionName(origin)}), which ${change}, ` +
236 `and your draft uses ${name} in ${file} line ${line}; run abso pull to see the new definition.`
238}
240/** What news assembly needs from a project. */
241export interface NewsHost {
242 readonly graph: Graph;
243 readonly agents: ReadonlyMap<string, AgentState>;
244 draft(agent: AgentState): AtomId[];
codex-capacity-chair133Keep persistent publish membership indexed through conflict checksCompare245 newerFor(agent: AgentState): ReadonlySet<AtomId>;
247 setOf(space: Space): ReadonlySet<AtomId>;
codex-capacity-chair143Add inactive disk projection provider and verified transactional readers (#16)Compare248 viewAt(space: Space, version: number): ReadView;
250 collision(agent: AgentState, pair: Pair): Collision;
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare251 /** `names`: only these can collide; a draft that uses none of them has none (newsForOthers). */
252 definitionCollisions(
253 agent: AgentState,
254 newer: ReadonlySet<AtomId>,
255 names?: ReadonlySet<string>,
256 ): DefinitionCollision[];
init0Start the project257 queueNews(agent: AgentState, items: readonly NewsItem[], entries: Entry[]): void;
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare258 /** A line for the host's logs (ProjectOptions.logLine). */
259 logLine?(line: Record<string, string | number>): void;
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare260 /**
261 * Owed news (abso Capacity, 2026-10-15): when this answers true, a publish leaves its definition news for other
262 * agents to be worked out after its write (definitionNewsOwed) and hands it to owe instead.
263 */
264 owesDefinitionNews(): boolean;
265 owe(owed: OwedDefinitionNews): void;
266 spaceNamed(name: string): Space | undefined;
267 /** newerFor as it was at `version` of the agent's space. */
268 newerAt(agent: AgentState, version: number): ReadonlySet<AtomId>;
269 /** definitionCollisions against the agent's space at `version`, not its newest. */
270 definitionCollisionsAt(
271 agent: AgentState,
272 newer: ReadonlySet<AtomId>,
273 names: ReadonlySet<string>,
274 version: number,
275 ): DefinitionCollision[];
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare278/** A publish's definition news for other agents, not yet worked out: the version it made, and the names it changed. */
279export interface OwedDefinitionNews {
280 readonly version: number;
281 readonly space: string;
282 readonly publisher: string;
283 readonly names: readonly string[];
284}
init0Start the project286function lineNews(host: NewsHost, agent: AgentState, pairs: readonly Pair[]): NewsItem[] {
287 return pairs.map((p) => ({ key: pairKey(p), text: linesText(host.collision(agent, p)) }));
288}
290function definitionNews(defs: readonly DefinitionCollision[]): NewsItem[] {
291 return defs.map((d) => ({ key: d.key, text: d.news }));
292}
294/**
295 * One sentence per move in `just` that took lines the draft changes
296 * (deletes, or writes right after) somewhere else (#28). The draft's
297 * changes went with them, so this is news, not a collision.
298 */
299function moveNews(
300 host: NewsHost,
301 draft: readonly AtomId[],
302 just: ReadonlySet<AtomId>,
303 space: Space,
304 version: number,
305): NewsItem[] {
306 const g = host.graph;
307 const movers = [...just].filter((id) => g.atom(id).moves);
308 if (movers.length === 0) return [];
309 const claimed = new Set<string>();
310 for (const id of draft) {
311 for (const key of g.atom(id).writes) {
312 const { kind, node } = parseKey(key);
313 if ((kind === "line" || kind === "gap") && !isStartNode(node)) claimed.add(node);
314 }
315 }
316 const was = host.viewAt(space, version - 1);
317 const now = host.viewAt(space, last(space));
318 const out: NewsItem[] = [];
319 for (const id of movers) {
320 const moved = g
321 .atom(id)
322 .writes.map((k) => parseKey(k))
323 .filter((k) => k.kind === "pos" && claimed.has(k.node))
324 .map((k) => k.node);
325 if (moved.length === 0) continue;
326 out.push(moveItem(id, host.origin(id, space.name), was.fileOf(moved[0]!), now.fileOf(moved[0]!)));
327 }
328 return out;
329}
331/** After the agent's own change: news when its draft now collides with work published after its base. */
332export function newsAboutOwnDraft(host: NewsHost, agent: AgentState, entries: Entry[]): void {
333 const draft = host.draft(agent);
334 if (draft.length === 0) return;
335 const newer = host.newerFor(agent);
336 if (newer.size === 0) return;
codex-capacity-chair133Keep persistent publish membership indexed through conflict checksCompare337 const lines = pairsIn(host.graph, draft, newer, unionOverlay(host.setOf(host.spaceOf(agent)), draft));
339 agent,
340 [...lineNews(host, agent, lines), ...definitionNews(host.definitionCollisions(agent, newer))],
341 entries,
342 );
343}
345/** After a publish or a landing: news for every other agent in that space whose draft collides with what just arrived. */
346export function newsForOthers(
347 host: NewsHost,
348 publisher: AgentState,
349 space: Space,
350 version: number,
351 entries: Entry[],
352): void {
353 const just = new Set(space.versions[version]!.atoms);
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare354 // The names whose definitions this publish changed, worked out once. Most publishes change none; then only the
355 // same-lines rule can bring news. A definition collision this publish brings (its `by` in `just`) is one of
356 // these, so a draft that uses none of them has none, and the rule isn't run for it (abso Capacity, prod abso
357 // 2026-10-15): it compared definitions in every file changed since each agent's base, for every agent with a draft,
358 // and a publish touching abso's worker/src/index.ts took 48 s of it.
359 let changedNames: ReadonlySet<string> | undefined;
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare360 // For the host's logs (abso 702): a line as the work starts, written before it, and one as it ends, so work that
361 // outlives its request still shows. No time in them: a Durable Object's clock stands still in synchronous code.
362 let drafts = 0;
363 let files = 0;
364 let news = 0;
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare365 const compareDefinitions = (): ReadonlySet<string> => {
codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare366 const touched = touchedFiles(host.graph, just, [host.viewAt(space, version - 1), host.viewAt(space, last(space))]);
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare367 files = touched.size;
codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare368 const before = definitionsIn(host.viewAt(space, version - 1), touched);
369 const after = definitionsIn(host.viewAt(space, last(space)), touched);
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare370 return new Set(
371 [...new Set([...before.keys(), ...after.keys()])].filter(
372 (name) => !before.has(name) || signature(before.get(name)!) !== signature(after.get(name) ?? []),
373 ),
codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare374 );
375 };
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare376 // Owed (abso Capacity, 2026-10-15): the definition rule over every other draft was most of a publish's write on
377 // stored tables (5.5 of 7.3 s on abso in the lab, about 45 s in prod, long enough to reset the object). Same lines
378 // and moves are told here as before; the definition news is worked out after the write, against this version.
379 // Asked only once some other agent has a draft (news-lazy.test.ts: no news work at all otherwise).
380 let owing: boolean | undefined;
381 let owed = false;
init0Start the project382 for (const agent of [...host.agents.values()].toSorted((a, b) => (a.name < b.name ? -1 : 1))) {
383 if (agent === publisher || agent.space !== space.name) continue;
384 const draft = host.draft(agent);
385 if (draft.length === 0) continue;
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare386 if (drafts++ === 0)
387 host.logLine?.({ work: "publishNews", step: "start", space: space.name, version, publisher: publisher.name });
codex-capacity-chair133Keep persistent publish membership indexed through conflict checksCompare388 const lines = pairsIn(host.graph, draft, just, unionOverlay(host.setOf(space), draft));
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare389 changedNames ??= compareDefinitions();
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare390 owing ??= host.owesDefinitionNews();
391 if (owing && changedNames.size > 0) owed = true;
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare392 const defs =
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare393 changedNames.size > 0 && !owing
capacity283A publish's news for others runs the definition rule only for drafts that use a name the publish changed (abso Capacity; prod abso's publishes ran past the storage limit, 2026-10-15)
When a publish changes any definition, newsForOthers ran the definition rule for every agent with a draft (about 100 on abso), and the rule compared definitions in every file changed since that agent's own base: worker/src/index.ts was laid out and parsed again for each base. News only reports collisions this publish brings (their by is in just), and each is a name whose definition this publish changed. So compareDefinitions now returns those names, worked out once, and DefinitionRule.collisions takes them: a draft that uses none of them has none, and the definitions changed since its base aren't worked out. Answers are unchanged.
On a copy of abso's tables, a publish changing about 300 lines of worker/src/index.ts plus 13 other files went from 56 s and 412,000 statements to 22.5 s and 158,000 (the second run on a busier machine; its first step took 18 s instead of 10). tsc and Biome clean; the 70 worker/project tests on news, definitions, publish and collisions: 329 pass.Compare394 ? host.definitionCollisions(agent, host.newerFor(agent), changedNames).filter((d) => just.has(d.by))
395 : [];
pinch289Local projects run as their own processes again: no compile cache for a local command, and plain words when the server's code can't load
At 287, every local command run as `node client/abso.ts` could crash with a segmentation fault (exit 139, at random, init and join included). The cause is Node's compile cache, which client/avcs.ts turns on, together with the module hook that gives the open server's code its cloudflare:workers stand-in. avcs.ts now leaves the cache off for a --local command and in a folder whose config names the server "local". The hook also stays registered rather than being removed after the import.
- If the server's code can't load (a package missing, say), it's said as "local projects couldn't load the server's code: ..." rather than "Can't reach local ... check your connection".
- In a local folder, status says "It's a local project, in <store>/<project>." instead of "Signed in with none.", and skips the npm newer-client check, which reaches for the network.
- worker/project/news.ts is Biome-formatted (only formatting), so the check gets past Biome again.
- scripts/local-measure.ts times status, log, blame, pull and push as separate processes on a small and a large local history, with peak memory and the store's size. scripts/local-writers.ts pushes from 1, 4 and 16 writers at once to measure the store lock.
Tests: client/test/local.test.ts (9, one running init, push, status and log as child processes with the cache as it is); tsc and Biome clean. Three rounds of init, push and status as processes exit 0.Compare396 const items = [
397 ...lineNews(host, agent, lines),
398 ...definitionNews(defs),
399 ...moveNews(host, draft, just, space, version),
400 ];
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare401 news += items.length;
402 host.queueNews(agent, items, entries);
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare404 if (drafts > 0)
405 host.logLine?.({
406 work: "publishNews",
407 step: "end",
408 space: space.name,
409 version,
410 publisher: publisher.name,
411 drafts,
412 files,
413 changedNames: changedNames?.size ?? 0,
414 news,
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare415 owed: owed ? 1 : 0,
df-routing286Log a line as a publish's news for other agents starts and ends (abso 702), through a new logLine option; nothing is written until a host passes itCompare416 });
capacity295Owed news: a publish can leave its definition news for other agents for after its write (abso Capacity; prod abso's publishes reset its object, 2026-10-15)
- With Project.owesDefinitionNews set, newsForOthers still tells same-lines and move news in the publish, but leaves the definition rule over other agents' drafts out. It records an OwedDefinitionNews {version, space, publisher, names} instead; takeOwedDefinitionNews hands it to the host once.
- definitionNewsOwed(owed) works that news out later, as it would have been told at the publish: the rule runs against the space at that version, with the work published up to that version only (#newerFor and SharedAdditions take an end version). It reads only. An agent that has synced past the version since is left out.
- deliverOwedNews(found) tells it through queueNews, so a key an agent was already told adds nothing.
- Default off: the replay engine and every existing caller behave as before. abso's disk route turns it on, keeps the marker in the publish's own transaction, and delivers from the alarm.
- Why: on abso's stored tables, the definition rule over ~40 drafts was 5.5 of a 1437-shaped publish's 7.3 s in the lab, about 45 s of one storage transaction in prod. That reset abso's object at 11:08 PM CT. With the rule owed, the publish's write is 18,622 statements instead of 105,252.
- On prod since 11:35 PM CT as a patch (abso 2341e805), with Agent VCS's yes. This brings core level with it; abso's pin follows.
- Keeps Observability's publishNews log lines (abso 702), and adds owed: 1 or 0 to the end line.
Checks: tsc clean. node --test in worker/project/test, 41 of 41 pass: changed-definition, collision-streaming, collisions-kept-views, news-cap, news-lazy, news-lines, news-times, news-written, owed-definition-news (new: the same news, against the publish's version even after a later publish removes the name, synced agents left out, the replay engine unchanged), project-writer-storage, writer-adoption.Compare417 if (owed)
418 host.owe({ version, space: space.name, publisher: publisher.name, names: [...(changedNames ?? [])].sort() });
419}
421/**
422 * The definition news a publish owes, worked out as newsForOthers would have at that version: the same agents, the
423 * same rule against the space at `owed.version` and the work published up to it, the same words and keys. Reads only.
424 * An agent that has synced past the version since is left out (the version is no longer newer for it), and an item
425 * an agent was already told (from its own edit since, or this run before) is dropped, as queueNews would.
426 */
427export function definitionNewsOwed(host: NewsHost, owed: OwedDefinitionNews): { agent: string; items: NewsItem[] }[] {
428 const space = host.spaceNamed(owed.space);
429 if (!space || owed.version > last(space) || !space.versions[owed.version]) return [];
430 const just = new Set(space.versions[owed.version]!.atoms);
431 const names = new Set(owed.names);
432 const out: { agent: string; items: NewsItem[] }[] = [];
433 for (const agent of [...host.agents.values()].toSorted((a, b) => (a.name < b.name ? -1 : 1))) {
434 if (agent.name === owed.publisher || agent.space !== space.name || agent.base >= owed.version) continue;
435 if (host.draft(agent).length === 0) continue;
436 const defs = host
437 .definitionCollisionsAt(agent, host.newerAt(agent, owed.version), names, owed.version)
438 .filter((d) => just.has(d.by));
439 const items = definitionNews(defs).filter((item) => !agent.told.has(item.key));
440 if (items.length > 0) out.push({ agent: agent.name, items });
441 }
442 return out;