Versions 145 to 146
new file, 234 lines
6+
23+const digest = (value: unknown) => createHash("sha256").update(JSON.stringify(value)).digest("hex");
24+const integer = (value: unknown): value is number => Number.isSafeInteger(value) && Number(value) >= 0;
39+ if (value.format !== 1 || value.checksum !== digest(value.state)) throw Error("damaged move resolution cursor");
40+ shape(value.state, "identity phase mover move work item line slow fast meeting entry current weakest best");
46+ !["scan", "walk", "entry", "weakest", "repick", "mark", "done"].includes(String(state.phase)) ||
57+ if (state[key] !== null && (typeof state[key] !== "string" || !state[key] || String(state[key]).length > 4096))
70+ (["entry", "weakest", "repick", "mark"].includes(String(state.phase)) && state.line === null) ||
77+
87+ if (!identity || identity.length > 4096 || !Number.isSafeInteger(maxSteps) || maxSteps < 1 || maxSteps > 256)
108+ const selected = (line: string) => storage.read("selected", line) as RelocationInfo | undefined;
114+ const terminal = (node: NodeId | null) => node === null || isStartNode(node) || !!storage.read("reached", node);
116+ const stronger = (a: RelocationInfo, b: RelocationInfo) => graph.comparePriority(a.atom, b.atom) > 0;
- MCP
- compare on this site's /mcp
- CLI
- abso diff 145 146 src/engine/experimental/projection-move-resolution.ts --json
- JSON
- /christopher/abso-core/compare/145..146?file=src%2Fengine%2Fexperimental%2Fprojection-move-resolution.ts&format=json