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 138 to 139

Compare

+26 −0 in 1 place
Lines 947–978 at 139 (were 947–952 at 138)
947947 */
948948 #reaches(from: Iterable<AtomId>, target: AtomId): boolean {
949949 const floor = this.#lamport[this.#seq(target)]!;
950+ if (this.#storage) {
951+ // Roots belong to the current atom's dependency list, not its history.
952+ const roots = [...from];
953+ if (roots.includes(target)) return true;
954+ if (roots.every((id) => this.#lamport[this.#seq(id)]! <= floor)) return false;
955+ return this.withProjectionScratch((scratch) => {
956+ let length = 0;
957+ const push = (id: AtomId): void => {
958+ if (scratch.read("seen", id)) return;
959+ scratch.write("seen", id, true);
960+ scratch.write("stack", String(length++), id);
961+ };
962+ for (const id of roots) push(id);
963+ while (length > 0) {
964+ const key = String(--length);
965+ const current = scratch.read("stack", key) as AtomId;
966+ scratch.remove("stack", key);
967+ if (this.#lamport[this.#seq(current)]! <= floor) continue;
968+ for (const dependency of this.atom(current).deps) {
969+ if (dependency === target) return true;
970+ push(dependency);
971+ }
972+ }
973+ return false;
974+ });
975+ }
950976 const seen = new Set<AtomId>();
951977 const stack = [...from];
952978 while (stack.length > 0) {
MCP
compare on this site's /mcp
CLI
abso diff 138 139 src/engine/graph.ts --json
JSON
/christopher/abso-core/compare/138..139?file=src%2Fengine%2Fgraph.ts&format=json