refactor!: enforce canonical evidence and provider boundaries
Deliver complete Evidence directly through MCP with required nullable analysis profiles and immutable per-server delivery settings. Bind selected environments at construction and require typed cleanup outcomes with retained retry ownership. Remove test-only routing, duplicate session and snapshot metadata, producer-field repairs, and ambiguous provider arguments. Separate artifact byte identity from occurrence classification and retain typed source-map and partial native facts across CLI, MCP, and verifier consumers. BREAKING CHANGE: obsolete Evidence envelopes, session aliases, incomplete snapshots, and missing normalized producer facts are no longer accepted.
This commit is contained in:
@@ -63,15 +63,25 @@ for (const format of ["directory", "asar"] as const) {
|
||||
properties.json_parse_status === "included",
|
||||
),
|
||||
).toBe(true);
|
||||
expect(
|
||||
result.graph.nodes.some(
|
||||
({ kind, observations }) =>
|
||||
kind === "source-module" &&
|
||||
observations.some(
|
||||
({ properties }) => properties.source === "original.js",
|
||||
),
|
||||
),
|
||||
).toBe(true);
|
||||
const original = result.graph.nodes.find(
|
||||
({ kind }) => kind === "source-module",
|
||||
);
|
||||
expect(original?.identity).toMatchObject({
|
||||
strategy: "source-map-original",
|
||||
original_source: "original.js",
|
||||
source_root: null,
|
||||
});
|
||||
expect(original?.observations).toContainEqual(
|
||||
expect.objectContaining({
|
||||
source_map_reference: {
|
||||
source_name: "original.js",
|
||||
source_root: null,
|
||||
map_path: "app.js.map",
|
||||
resolution: { kind: "artifact-relative", path: "original.js" },
|
||||
},
|
||||
properties: { content_available: true },
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it(`${format} retains invalid UTF-8 as unavailable rather than replacing bytes`, async () => {
|
||||
|
||||
Reference in New Issue
Block a user