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:
morluto
2026-10-09 20:18:52 +08:00
parent 2a7746998d
commit 63bf91405c
514 changed files with 9296 additions and 5825 deletions
+13 -11
View File
@@ -453,15 +453,17 @@ export const managedNativeBoundaryInspectionSchema = z.object({
requires_artifact_sha256: digestSchema,
requires_mvid: cliMetadataGuidSchema.nullable(),
}),
cli_native: z.object({
il_only: z.boolean(),
requires_32bit: z.boolean(),
strong_name_signed: z.boolean(),
native_entry_point: z.boolean(),
ready_to_run_signature: z.boolean(),
managed_native_header_rva: z.number().int().min(0).max(0xffff_ffff),
managed_native_header_size: z.number().int().min(0).max(0xffff_ffff),
}),
cli_native: z
.object({
il_only: z.boolean(),
requires_32bit: z.boolean(),
strong_name_signed: z.boolean(),
native_entry_point: z.boolean(),
ready_to_run_signature: z.boolean(),
managed_native_header_rva: z.number().int().min(0).max(0xffff_ffff),
managed_native_header_size: z.number().int().min(0).max(0xffff_ffff),
})
.nullable(),
module_refs: z.array(managedModuleReferenceSchema),
pinvoke_imports: z.array(managedNativeImportSchema),
native_implementations: z.array(managedNativeImplementationSchema),
@@ -469,8 +471,8 @@ export const managedNativeBoundaryInspectionSchema = z.object({
module_ref_count: z.number().int().min(0),
pinvoke_import_count: z.number().int().min(0),
native_implementation_count: z.number().int().min(0),
ready_to_run: z.boolean(),
mixed_mode_or_native_header: z.boolean(),
ready_to_run: z.boolean().nullable(),
mixed_mode_or_native_header: z.boolean().nullable(),
}),
coverage: z.object({
state: z.enum(["complete", "partial", "unavailable"]),