F3 hardening: observable seam misses, cheaper disk-compare, E2E ordering notes (#6)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,15 @@ describe("PendingEditRegistry (INV-9)", () => {
|
||||
reg.unregister(p);
|
||||
expect(reg.match("d.md", { start: 0, end: 0, text: "x" })).toBeNull();
|
||||
});
|
||||
it("unregister reports whether the registration was still pending", () => {
|
||||
const reg = new PendingEditRegistry();
|
||||
const p = { docPath: "d.md", start: 0, end: 0, newText: "x", provenance: AGENT };
|
||||
reg.register(p);
|
||||
expect(reg.unregister(p)).toBe(true);
|
||||
reg.register(p);
|
||||
reg.match("d.md", { start: 0, end: 0, text: "x" });
|
||||
expect(reg.unregister(p)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("minimizeReplace (host diff-minimization mirror)", () => {
|
||||
|
||||
Reference in New Issue
Block a user