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 123 to 124

Compare

+24 −5 in 2 places
Lines 333–344 at 124 (were 333–339 at 123)
333333 * - creating a file over a deleted one: the atoms that deleted its lines;
334334 * - needs and resolves.
335335 * Nothing else from the view: not the line below an insertion, not the
336− * tombstones around it.
336+ * tombstones around it. New atoms encode implicit dependencies as maximal
337+ * tips: ancestors reachable through another tip are omitted from direct deps.
338+ * Explicit needs/resolves always remain direct. Existing atoms are not rewritten.
339+ * Direct-edge diagnostics (including why/Deps trailers and missingDeps) therefore
340+ * show fewer redundant edges; transitive closure and dependency ordering remain
341+ * the semantic contract. A missing tip still implies its required ancestors.
337342 */
338343function deriveDeps(
339344 view: View,
Lines 352–381 at 124 (were 347–362 at 123)
347352 },
348353): AtomId[] {
349354 const graph = view.graph;
350− const deps = new Set<AtomId>(parts.emptiedBy);
355+ // New atoms retain maximal implicit dependencies. Their transitive closure is
356+ // unchanged; explicit needs/resolves remain direct edges below.
357+ const deps = new Set<AtomId>();
358+ const addImplicit = (candidate: AtomId): void => {
359+ if (deps.has(candidate)) return;
360+ const candidateClock = graph.lamport(candidate);
361+ for (const previous of deps) {
362+ const previousClock = graph.lamport(previous);
363+ // Equal Lamport clocks cannot reach each other; check only the possible direction.
364+ if (previousClock > candidateClock && graph.dependsOn(previous, candidate)) return;
365+ if (candidateClock > previousClock && graph.dependsOn(candidate, previous)) deps.delete(previous);
366+ }
367+ deps.add(candidate);
368+ };
369+ for (const id of parts.emptiedBy) addImplicit(id);
351370 for (const key of [...parts.writes, ...parts.reads, ...parts.holds]) {
352371 const { kind, node } = parseKey(key);
353372 // An attribute builds on whoever set it last in the view, the way an insertion builds on a gap's writers;
354373 // a move builds on the earlier moves of its lines.
355− if (kind !== "attr" && !isStartNode(node)) deps.add(writerOf(node));
356− if (kind !== "line") for (const writer of graph.eachWriterOf(key)) if (view.set.has(writer)) deps.add(writer);
374+ if (kind !== "attr" && !isStartNode(node)) addImplicit(writerOf(node));
375+ if (kind !== "line") for (const writer of graph.eachWriterOf(key)) if (view.set.has(writer)) addImplicit(writer);
357376 }
358377 for (const key of parts.writes) {
359− for (const reader of graph.eachReaderOf(key)) if (view.set.has(reader)) deps.add(reader);
378+ for (const reader of graph.eachReaderOf(key)) if (view.set.has(reader)) addImplicit(reader);
360379 }
361380 for (const id of parts.needs) deps.add(id);
362381 for (const id of parts.resolves) deps.add(id);
MCP
compare on this site's /mcp
CLI
abso diff 123 124 src/engine/build.ts --json
JSON
/christopher/abso-core/compare/123..124?file=src%2Fengine%2Fbuild.ts&format=json