Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
MCP
blame on this site's /mcp
CLI
abso blame worker/project/news.ts --version 289 --json
JSON
/christopher/abso-core/blame/worker/project/news.ts?version=289&format=json
384 linesFirst import 68% · capacity 14% · df-routing 6% · codex-capacity-chair 3% · speed 3% · autosettle 2% · Last change pinch in version 289,

384 lines from 15 changes in 13 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.
3
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;
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;
26function versionName(o: { version: number; draft?: string }): string {
27 return o.draft === undefined ? `version ${o.version}` : `draft ${o.draft}, version ${o.version}`;
30export function agentAnnouncement(sender: string, mark: string, text: string): string {
31 return `Announcement from ${sender} (${mark}): ${text.trim()}`;
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())}`;
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 };
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 };
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}`;
init0Start the project91 return note.person
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}`;
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 };
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 };
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 };
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}.`;
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)];
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);
init0Start the project165const SETTLED_WHAT: Record<Kept, string> = {
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)})`;
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]}.` +
init0Start the project186 (s.lost
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)}".` : "") +
init0Start the project190 ` abso show ${version}:${s.file} shows the file.`,
191 };
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";
init0Start the project202 const note = list.find((o) => o.starting)?.starting;
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;
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.`,
init0Start the project219 };
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.`
init0Start the project229 );
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.`
init0Start the project237 );
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>;
init0Start the project246 spaceOf(agent: AgentState): Space;
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;
init0Start the project249 origin(atom: AtomId, spaceName: string): Origin;
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;
init0Start the project260}
262function lineNews(host: NewsHost, agent: AgentState, pairs: readonly Pair[]): NewsItem[] {
263 return pairs.map((p) => ({ key: pairKey(p), text: linesText(host.collision(agent, p)) }));
266function definitionNews(defs: readonly DefinitionCollision[]): NewsItem[] {
267 return defs.map((d) => ({ key: d.key, text: d.news }));
270/**
271 * One sentence per move in `just` that took lines the draft changes
272 * (deletes, or writes right after) somewhere else (#28). The draft's
273 * changes went with them, so this is news, not a collision.
274 */
275function moveNews(
276 host: NewsHost,
277 draft: readonly AtomId[],
278 just: ReadonlySet<AtomId>,
279 space: Space,
280 version: number,
281): NewsItem[] {
282 const g = host.graph;
283 const movers = [...just].filter((id) => g.atom(id).moves);
284 if (movers.length === 0) return [];
285 const claimed = new Set<string>();
286 for (const id of draft) {
287 for (const key of g.atom(id).writes) {
288 const { kind, node } = parseKey(key);
289 if ((kind === "line" || kind === "gap") && !isStartNode(node)) claimed.add(node);
290 }
291 }
292 const was = host.viewAt(space, version - 1);
293 const now = host.viewAt(space, last(space));
294 const out: NewsItem[] = [];
295 for (const id of movers) {
296 const moved = g
297 .atom(id)
298 .writes.map((k) => parseKey(k))
299 .filter((k) => k.kind === "pos" && claimed.has(k.node))
300 .map((k) => k.node);
301 if (moved.length === 0) continue;
302 out.push(moveItem(id, host.origin(id, space.name), was.fileOf(moved[0]!), now.fileOf(moved[0]!)));
303 }
304 return out;
307/** After the agent's own change: news when its draft now collides with work published after its base. */
308export function newsAboutOwnDraft(host: NewsHost, agent: AgentState, entries: Entry[]): void {
309 const draft = host.draft(agent);
310 if (draft.length === 0) return;
311 const newer = host.newerFor(agent);
312 if (newer.size === 0) return;
codex-capacity-chair133Keep persistent publish membership indexed through conflict checksCompare313 const lines = pairsIn(host.graph, draft, newer, unionOverlay(host.setOf(host.spaceOf(agent)), draft));
init0Start the project314 host.queueNews(
315 agent,
316 [...lineNews(host, agent, lines), ...definitionNews(host.definitionCollisions(agent, newer))],
317 entries,
318 );
321/** After a publish or a landing: news for every other agent in that space whose draft collides with what just arrived. */
322export function newsForOthers(
323 host: NewsHost,
324 publisher: AgentState,
325 space: Space,
326 version: number,
327 entries: Entry[],
328): void {
329 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.Compare330 // The names whose definitions this publish changed, worked out once. Most publishes change none; then only the
331 // same-lines rule can bring news. A definition collision this publish brings (its `by` in `just`) is one of
332 // these, so a draft that uses none of them has none, and the rule isn't run for it (abso Capacity, prod abso
333 // 2026-10-15): it compared definitions in every file changed since each agent's base, for every agent with a draft,
334 // and a publish touching abso's worker/src/index.ts took 48 s of it.
335 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 itCompare336 // For the host's logs (abso 702): a line as the work starts, written before it, and one as it ends, so work that
337 // outlives its request still shows. No time in them: a Durable Object's clock stands still in synchronous code.
338 let drafts = 0;
339 let files = 0;
340 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.Compare341 const compareDefinitions = (): ReadonlySet<string> => {
codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare342 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 itCompare343 files = touched.size;
codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare344 const before = definitionsIn(host.viewAt(space, version - 1), touched);
345 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.Compare346 return new Set(
347 [...new Set([...before.keys(), ...after.keys()])].filter(
348 (name) => !before.has(name) || signature(before.get(name)!) !== signature(after.get(name) ?? []),
349 ),
codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare350 );
351 };
init0Start the project352 for (const agent of [...host.agents.values()].toSorted((a, b) => (a.name < b.name ? -1 : 1))) {
353 if (agent === publisher || agent.space !== space.name) continue;
354 const draft = host.draft(agent);
355 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 itCompare356 if (drafts++ === 0)
357 host.logLine?.({ work: "publishNews", step: "start", space: space.name, version, publisher: publisher.name });
codex-capacity-chair133Keep persistent publish membership indexed through conflict checksCompare358 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.Compare359 changedNames ??= compareDefinitions();
360 const defs =
361 changedNames.size > 0
362 ? host.definitionCollisions(agent, host.newerFor(agent), changedNames).filter((d) => just.has(d.by))
363 : [];
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.Compare364 const items = [
365 ...lineNews(host, agent, lines),
366 ...definitionNews(defs),
367 ...moveNews(host, draft, just, space, version),
368 ];
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 itCompare369 news += items.length;
370 host.queueNews(agent, items, entries);
init0Start the project371 }
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 itCompare372 if (drafts > 0)
373 host.logLine?.({
374 work: "publishNews",
375 step: "end",
376 space: space.name,
377 version,
378 publisher: publisher.name,
379 drafts,
380 files,
381 changedNames: changedNames?.size ?? 0,
382 news,
383 });
init0Start the project384}