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:
@@ -3,12 +3,7 @@ import { evidenceSchema } from "./evidence.js";
|
||||
import { digestSchema } from "./../domain/digests.js";
|
||||
import { prefixedDigestSchema } from "./../domain/digests.js";
|
||||
|
||||
const comparisonStatusSchema = z.enum([
|
||||
"unchanged",
|
||||
"changed",
|
||||
"truncated",
|
||||
"unknown",
|
||||
]);
|
||||
const comparisonStatusSchema = z.enum(["unchanged", "changed", "unknown"]);
|
||||
const dimensionNameSchema = z.enum([
|
||||
"identity",
|
||||
"pseudocode",
|
||||
@@ -60,7 +55,7 @@ const functionDimensionSchema = z.union([
|
||||
}),
|
||||
z.object({
|
||||
...functionDimensionContextShape,
|
||||
status: z.enum(["truncated", "unknown"]),
|
||||
status: z.literal("unknown"),
|
||||
left_digest: z.null(),
|
||||
right_digest: z.null(),
|
||||
text_delta: z.null(),
|
||||
@@ -92,7 +87,6 @@ export const functionComparisonResultSchema = z.object({
|
||||
summary: z.object({
|
||||
unchanged: z.number().int().min(0),
|
||||
changed: z.number().int().min(0),
|
||||
truncated: z.number().int().min(0),
|
||||
unknown: z.number().int().min(0),
|
||||
}),
|
||||
dimensions: z.array(functionDimensionSchema).length(8),
|
||||
|
||||
Reference in New Issue
Block a user