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
show on this site's /mcp
CLI
abso show 316 --json
JSON
/christopher/abso-core/versions/316?format=json

Land and draft-state take where shared changed since a draft's base from each version's kept files (abso 738). The definition rule placed every line the newer atoms wrote or deleted to find the files they touched: about 30% of a warm draft-state read. LandHost.changedSince unions PathIndex's kept version files over the versions since the base, on a stored writer only, and the rule falls back to working them out when a version has none. Every file whose text differs between the base and now is in it. Known difference: it also names files only the draft's own atoms already in shared changed; a collision there still needs a newer atom on the definition's lines. On abso's Oct 14 tables both named drafts' states are identical by hash; codex-prose-authorship-610's warm read goes from 18,256 statements and 3.4 s to 8,863 and 2.3 s.

of shared·capacity··Not checked

Land and draft-state take where shared changed since a draft's base from each version's kept files (abso 738). The definition rule placed every line the newer atoms wrote or deleted to find the files they touched: about 30% of a warm draft-state read.

LandHost.changedSince unions PathIndex's kept version files over the versions since the base, on a stored writer only, and the rule falls back to working them out when a version has none. Every file whose text differs between the base and now is in it.

Known difference: it also names files only the draft's own atoms already in shared changed; a collision there still needs a newer atom on the definition's lines. On abso's Oct 14 tables both named drafts' states are identical by hash; codex-prose-authorship-610's warm read goes from 18,256 statements and 3.4 s to 8,863 and 2.3 s.

Version 315 · Files at version 316

4 files, 44 lines added, 4 removed.

--- a/worker/project/definition-rule.ts
+++ b/worker/project/definition-rule.ts
@@ -125,6 +125,11 @@
125125 spaceName: string,
126126 kept?: { parts: KeptParts; uses: string; changed: string },
127127 names?: ReadonlySet<string>,
128+ /**
129+ * The files the newer work changed, when the caller knows them without placing its lines (land and draft-state:
130+ * shared's kept version files, abso 738); undefined, or one that answers undefined, and they're worked out here.
131+ */
132+ changedFiles?: () => ReadonlySet<string> | undefined,
128133 ): DefinitionCollision[] {
129134 if (draft.size === 0 || newer.size === 0) return [];
130135 const uses = kept
@@ -153,9 +158,11 @@
153158 // Only a file the newer work touched can hold a changed definition, and only one a use means can matter: just those
154159 // files are laid out, before and with the newer work (abso 738). Laying out every file the newer work touched cost
155160 // codex-prose-authorship-610's draft-state 494 files a view where its uses reach 7.
156− const touched = kept
157− ? kept.parts.get(`touched ${kept.changed}`, () => this.#touched(newer, baseView, nowOf()), filesBytes)
158− : this.#touchedFor(newer, baseView, nowOf());
161+ const touched =
162+ changedFiles?.() ??
163+ (kept
164+ ? kept.parts.get(`touched ${kept.changed}`, () => this.#touched(newer, baseView, nowOf()), filesBytes)
165+ : this.#touchedFor(newer, baseView, nowOf()));
159166 const changed = new Map<string, Changed>();
160167 const changedIn = (file: string): Changed => {
161168 let c = changed.get(file);
--- a/worker/project/land.ts
+++ b/worker/project/land.ts
@@ -29,6 +29,8 @@
2929 pairs(draft: readonly AtomId[], against: ReadonlySet<AtomId>, settled: ReadonlySet<AtomId>): Pair[];
3030 describe(pair: Pair, yoursView: ReadView, theirsView: ReadView, spaceName: string): Collision;
3131 definitionRule(): DefinitionRule;
32+ /** The files a space's versions after `from`, up to `to`, changed, when each one's are kept; else undefined. */
33+ changedSince(space: Space, from: number, to: number): ReadonlySet<string> | undefined;
3234 refuse(
3335 agent: AgentState,
3436 space: Space,
@@ -93,11 +95,24 @@
9395 ? host.viewAt(shared, sharedBaseOf(space), changes)
9496 : host.viewAt(space, space.versions.length - 1);
9597 const describeLand = (p: Pair): Collision => host.describe(p, draftView, host.sharedView(), SHARED);
98+ // Where shared changed since the draft's base, from the files each version since kept as it landed (abso 738): working
99+ // it out from the newer atoms placed every line they wrote or deleted, about 30% of a warm draft-state read.
100+ const changed = () => host.changedSince(shared, sharedBaseOf(space), host.version());
96101 const collisions = [
97102 ...host.pairs(changes, newer, union).map(describeLand),
98103 ...host
99104 .definitionRule()
100− .collisions(own, draftView, host.viewAt(shared, sharedBaseOf(space)), host.sharedView(), newer, SHARED)
105+ .collisions(
106+ own,
107+ draftView,
108+ host.viewAt(shared, sharedBaseOf(space)),
109+ host.sharedView(),
110+ newer,
111+ SHARED,
112+ undefined,
113+ undefined,
114+ changed,
115+ )
101116 .map((d) => d.collision),
102117 ];
103118 return { collisions, newer, union };
--- a/worker/project/pathindex.ts
+++ b/worker/project/pathindex.ts
@@ -90,6 +90,21 @@
9090 return files && [...files].sort();
9191 }
9292
93+ /**
94+ * The files the versions after `from`, up to `to`, changed, from each version's kept row (abso 738): undefined when one
95+ * has none, and the caller works them out from the atoms. Every file whose text differs between the two versions is
96+ * in it, since some version between changed it.
97+ */
98+ keptChangesSince(space: Space, from: number, to: number): ReadonlySet<string> | undefined {
99+ const out = new Set<string>();
100+ for (let v = from + 1; v <= to; v++) {
101+ const files = this.#keptFiles(space, v);
102+ if (!files) return undefined;
103+ for (const f of files) out.add(f);
104+ }
105+ return out;
106+ }
93108 /** keptPaths as a set, kept for the newest version asked: never changed once made, so a view can hold it. */
94109 keptPathSet(space: Space, version: number): ReadonlySet<string> | undefined {
95110 let fold = this.#keptPaths.get(space);
--- a/worker/project/project.ts
+++ b/worker/project/project.ts
@@ -2499,6 +2499,9 @@
24992499 pairs: (draft, against, settled) => this.#pairs(draft, against, settled),
25002500 describe: (pair, yoursView, theirsView, spaceName) => this.#describe(pair, yoursView, theirsView, spaceName),
25012501 definitionRule: () => this.#definitionRule,
2502+ // Only from a stored writer's kept rows, as keptPaths: a project in memory keeps none, and works them out.
2503+ changedSince: (space, from, to) =>
2504+ this.#writerStorage ? this.#paths.keptChangesSince(space, from, to) : undefined,
25022505 refuse: (agent, space, via, time, collisions, entries) =>
25032506 this.#refuse(agent, space, via, time, collisions, entries),
25042507 requireClosed: (tie, union) => this.#requireClosed(tie, union),