{"draft":null,"from":134,"to":135,"files":[{"path":"src/engine/graph.ts","added":10,"removed":2,"diff":"--- a/src/engine/graph.ts\n+++ b/src/engine/graph.ts\n@@ -665,8 +665,8 @@\n \t\tconst index = new OrderedIndex(this.#storage, \"ordered-children\", String(code));\n \t\tif (this.#storage.read(\"ordered-children\", \"format\") !== 1)\n \t\t\tthrow new Error(\"ordered children require fresh adoption\");\n-\t\tif (index.size !== this.#runStartPages!.length(String(code))) throw new Error(\"ordered child index count mismatch\");\n-\t\tconst cursor = after === undefined ? undefined : this.#childPriority(after);\n+\t\tconst count = index.size;\n+\t\tif (count !== this.#runStartPages!.length(String(code))) throw new Error(\"ordered child index count mismatch\");\n \t\tlet implicit: number | undefined;\n \t\tif (\n \t\t\tcode >= 0 &&\n@@ -675,6 +675,14 @@\n \t\t\tthis.#lineParent.at(code + 1) === code\n \t\t)\n \t\t\timplicit = code + 1;\n+\t\t// Most historical run lines have no explicit child. With zero or one\n+\t\t// child, traversal needs no priority decoding or radix lookup. Keep the\n+\t\t// format/count checks above even on this path.\n+\t\tif (count === 0 && (after === undefined || after === implicit)) {\n+\t\t\tif (implicit !== undefined && after !== implicit) yield implicit;\n+\t\t\treturn;\n+\t\t}\n+\t\tconst cursor = after === undefined ? undefined : this.#childPriority(after);\n \t\tif (implicit !== undefined && cursor !== undefined && this.#childPriority(implicit) <= cursor) implicit = undefined;\n \t\tfor (const n of index.values(cursor)) {\n \t\t\tif (implicit !== undefined && this.#childPriority(implicit) < this.#childPriority(n)) {"}],"unmatched":[]}