feat(analysis): add opt-in retained inventory and WASM views (#2122)
Add opt-in retained inventory and WASM Evidence views with exact nested output contracts and a small static WASM descriptor. Preserve old complete CLI/MCP workflows, producer choices, original authenticated Evidence and cleanup ownership. Validated with real public applications, genuine old Evidence migration, 123 focused assertions, 11 synchronized description checks and 42 installed-package WABT cases. Detailed generated experiment JSON stays outside the final tree; concise findings and reproduction inputs remain. Main-existing completion/package CI failures are separately attributed and left unchanged. Refs #2016 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
3159732597
commit
58fb372071
@@ -103,6 +103,24 @@ export type ArtifactInspectionResult = z.infer<
|
||||
typeof artifactInspectionResultSchema
|
||||
>;
|
||||
|
||||
/**
|
||||
* The current producer guarantees a concrete inventory payload. Specialize
|
||||
* its output without narrowing the historical inspection/Evidence input
|
||||
* parser or applying inventory defaults inside an authenticated imported record.
|
||||
*/
|
||||
export const artifactInspectionOutputSchema =
|
||||
artifactInspectionResultSchema.safeExtend({
|
||||
substeps: z
|
||||
.array(
|
||||
artifactInspectionResultSchema.shape.substeps.element.safeExtend({
|
||||
evidence: evidenceSchema.safeExtend({
|
||||
normalized_result: artifactInventoryResultSchema,
|
||||
}),
|
||||
}),
|
||||
)
|
||||
.min(1),
|
||||
});
|
||||
|
||||
/** Project one successful inventory Evidence record into an inspection report. */
|
||||
export const createArtifactInspection = (
|
||||
inventoryInput: unknown,
|
||||
|
||||
Reference in New Issue
Block a user