fix(artifacts): compare leaf inventories using explicit coverage
Classify coverage once at inventory production and require it in current outputs. Normalize older retained Evidence at the inventory parser, reject inconsistent page statuses, and remove comparison heuristics over limitation prose. Validation: public CLI-to-MCP plist comparison, changed-behavior and unknowns workflow; boundary checks for legacy Evidence, partial coverage, page disagreement, content and executable changes; generated docs checks. Fixes #2173.
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
artifactInventoryResultSchema,
|
||||
type ArtifactInventoryResult,
|
||||
} from "../../../src/domain/artifactGraph.js";
|
||||
import { jsonValueSchema } from "../../../src/domain/jsonValue.js";
|
||||
import {
|
||||
analysisViewResultSchema,
|
||||
type AnalysisViewResult,
|
||||
@@ -266,7 +267,7 @@ const assertHistoricalInventory = async (
|
||||
{
|
||||
operation: "inventory_artifact",
|
||||
parameters: {},
|
||||
result: legacyInventory,
|
||||
result: jsonValueSchema.parse(legacyInventory),
|
||||
},
|
||||
);
|
||||
const legacyInspection = createArtifactInspection(legacySource);
|
||||
@@ -490,7 +491,10 @@ it("keeps complete ZIP output and reads retained inventory views after the sourc
|
||||
{
|
||||
operation: "inventory_artifact",
|
||||
parameters: {},
|
||||
result: { ...graph, occurrences: graph.occurrences.slice(0, 1) },
|
||||
result: jsonValueSchema.parse({
|
||||
...graph,
|
||||
occurrences: graph.occurrences.slice(0, 1),
|
||||
}),
|
||||
},
|
||||
);
|
||||
const partialReply = await client.callTool({
|
||||
|
||||
Reference in New Issue
Block a user