Versions 2 to 318
new file, 136 lines
9+
10+test("one-step move pages preserve cycle resolution across competing and excluded moves", () => {
14+ const repo = Repo.init({ "f.txt": Array.from({ length: 12 }, (_, i) => `${i}\n`).join(""), "g.txt": "" });
55+ assert.deepEqual(actual.db.prepare("SELECT * FROM state ORDER BY collection,key").all(), before);
57+ const result = resolveMovesPage(repo.graph, (id) => repo.shared.has(id), actual, `trial-${trial}`, 1);
70+ assert.throws(() => resolveMovesPage(repo.graph, () => true, actual, "changed", 1), /identity changed/);
79+
80+test("damaged and structurally invalid move cursors refuse without changing stored state", () => {
125+ if (index > 0) damaged.checksum = createHash("sha256").update(JSON.stringify(damaged.state)).digest("hex");
128+ assert.throws(() => resolveMovesPage(repo.graph, () => true, storage, "source", 1), /invalid|damaged|incomplete/);
129+ assert.deepEqual(storage.db.prepare("SELECT * FROM state ORDER BY collection,key").all(), before);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 2 318 src/engine/test/projection-move-resolution.test.ts --json
- JSON
- /christopher/abso-core/compare/2..318?file=src%2Fengine%2Ftest%2Fprojection-move-resolution.test.ts&format=json