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 134 to 135

Compare

+10 −2 in 2 places
Lines 665–672 at 135 (were 665–672 at 134)
665665 const index = new OrderedIndex(this.#storage, "ordered-children", String(code));
666666 if (this.#storage.read("ordered-children", "format") !== 1)
667667 throw new Error("ordered children require fresh adoption");
668− if (index.size !== this.#runStartPages!.length(String(code))) throw new Error("ordered child index count mismatch");
669− const cursor = after === undefined ? undefined : this.#childPriority(after);
668+ const count = index.size;
669+ if (count !== this.#runStartPages!.length(String(code))) throw new Error("ordered child index count mismatch");
670670 let implicit: number | undefined;
671671 if (
672672 code >= 0 &&
Lines 675–688 at 135 (were 675–680 at 134)
675675 this.#lineParent.at(code + 1) === code
676676 )
677677 implicit = code + 1;
678+ // Most historical run lines have no explicit child. With zero or one
679+ // child, traversal needs no priority decoding or radix lookup. Keep the
680+ // format/count checks above even on this path.
681+ if (count === 0 && (after === undefined || after === implicit)) {
682+ if (implicit !== undefined && after !== implicit) yield implicit;
683+ return;
684+ }
685+ const cursor = after === undefined ? undefined : this.#childPriority(after);
678686 if (implicit !== undefined && cursor !== undefined && this.#childPriority(implicit) <= cursor) implicit = undefined;
679687 for (const n of index.values(cursor)) {
680688 if (implicit !== undefined && this.#childPriority(implicit) < this.#childPriority(n)) {
MCP
compare on this site's /mcp
CLI
abso diff 134 135 src/engine/graph.ts --json
JSON
/christopher/abso-core/compare/134..135?file=src%2Fengine%2Fgraph.ts&format=json