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

Versions 316 to 318

Compare

+12 −6 in 5 places
Lines 68–74 at 318 (were 68–74 at 316)
6868 }
6969 for (const key of claimsOf(atom)) streams.push(g.eachWriterOf(key));
7070 const theirs: AtomId[] = [];
71− for (const id of orderedClaimants(g, streams)) if (against.has(id)) theirs.push(id);
71+ for (const id of orderedClaimants(streams)) if (against.has(id)) theirs.push(id);
7272 out.set(yours, theirs);
7373 }
7474 return out;
Lines 136–142 at 318 (were 136–142 at 316)
136136
137137/** Claim indexes append in canonical seq order. Merge one cursor per current
138138 * atom key, retaining no candidate set proportional to historical claims. */
139−function* orderedClaimants(g: Graph, streams: IterableIterator<AtomId>[]): IterableIterator<AtomId> {
139+function* orderedClaimants(streams: IterableIterator<AtomId>[]): IterableIterator<AtomId> {
140140 try {
141141 type Head = { id: AtomId; seq: number; stream: number };
142142 const heap: Head[] = [];
Lines 152–162 at 318 (were 152–160 at 316)
152152 }
153153 heap[at] = head;
154154 };
155+ // Each claimant's seq from its id, as the graph reads it (abso 738): loading the stored atom for it read a row a
156+ // claimant, most of a warm draft-state's pairing on abso.
155157 const advance = (stream: number) => {
156158 const next = streams[stream]!.next();
157− if (!next.done) push({ id: next.value, seq: g.atom(next.value).seq, stream });
159+ if (!next.done) push({ id: next.value, seq: seqOf(next.value), stream });
158160 };
159161 for (let stream = 0; stream < streams.length; stream++) advance(stream);
160162 let previous = -1;
Lines 192–199 at 318 (were 190–197 at 316)
190192 let a = left.next();
191193 let b = right.next();
192194 while (!a.done && !b.done) {
193− const x = g.atom(a.value).seq;
194− const y = g.atom(b.value).seq;
195+ const x = seqOf(a.value);
196+ const y = seqOf(b.value);
195197 if (x === y && settled.has(a.value)) return true;
196198 if (x <= y) a = left.next();
197199 if (y <= x) b = right.next();
Lines 3218–3236 at 318 (were 3218–3232 at 316)
32183218 const base = agent.mine.some((id) => at.has(id))
32193219 ? this.#view(differenceSet(at, new StableOverlaySet(agent.mine)))
32203220 : this.#viewAt(space, agent.base);
3221+ const to = version ?? last(space);
32213222 return this.#definitionRule.collisions(
32223223 draft,
32233224 this.#agentView(agent),
32243225 base,
3225− this.#viewAt(space, version ?? last(space)),
3226+ this.#viewAt(space, to),
32263227 newer,
32273228 space.name,
32283229 undefined,
32293230 names,
3231+ // Where the space changed since the agent's base, from each version's kept files on a stored writer, as land's
3232+ // (abso 714): walking every newer atom for them was 6.5 s of a publish 770 versions behind on abso.
3233+ () => (this.#writerStorage ? this.#paths.keptChangesSince(space, agent.base, to) : undefined),
32303234 );
32313235 }
32323236}
MCP
compare on this site's /mcp
CLI
abso diff 316 318 worker --json
JSON
/christopher/abso-core/compare/316..318?file=worker&format=json