refactor(domain)!: remove obsolete comparison representations

Compare complete function dossiers directly, remove unreachable truncation and collection wrappers, and preserve deterministic Unicode ordering. Require real external reference targets instead of display placeholders.

BREAKING CHANGE: function comparison results no longer advertise the unreachable truncated state or counter.
This commit is contained in:
morluto
2026-10-09 20:18:52 +08:00
parent 475a0f84da
commit 5510b27d7f
11 changed files with 224 additions and 468 deletions
+3 -3
View File
@@ -184,7 +184,7 @@ describe("historical source graph", () => {
}
});
it("retains actual external targets and accepts legacy markers", () => {
it("retains actual external targets and rejects placeholder targets", () => {
const input = { ...graphInput(), inventory_state: "partial" as const };
input.entries[2] = symlinkEntry({
target: "/private/shared/target.js",
@@ -205,7 +205,7 @@ describe("historical source graph", () => {
: entry,
),
}),
).not.toThrow();
).toThrow(/target path does not match/u);
});
it("derives language and manifest indexes and enforces code-point order", () => {
@@ -337,7 +337,7 @@ describe("historical source graph validation", () => {
: entry,
),
}),
).not.toThrow();
).toThrow(/target path does not match/u);
expect(() =>
createHistoricalSourceGraph({
...graphInput(),