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
Vendored
+16
-11
@@ -1,7 +1,10 @@
|
||||
import { createHash } from "node:crypto";
|
||||
import { createAnalysisExecution } from "../../../src/application/AnalysisProvider.js";
|
||||
import type { WasmArtifact } from "../../../src/domain/wasm/wasmArtifact.js";
|
||||
/** Source-owned transport seam; upstream binaries are verified in a separate lane. */
|
||||
export const wasmArtifactFixture = (path = "/artifacts/module.wasm") => ({
|
||||
export const wasmArtifactFixture = (
|
||||
path = "/artifacts/module.wasm",
|
||||
): WasmArtifact => ({
|
||||
artifact: { path, sha256: "a".repeat(64), bytes: 8 },
|
||||
validation: "valid" as const,
|
||||
sections: [],
|
||||
@@ -18,16 +21,18 @@ export const wasmArtifactFixture = (path = "/artifacts/module.wasm") => ({
|
||||
source: "https://github.com/WebAssembly/wabt" as const,
|
||||
release: "1.0.42" as const,
|
||||
source_commit: "ff0ef7e0009402740c805a9744c09b05be063e48" as const,
|
||||
commands: ["wasm-validate", "wasm-objdump", "wasm2wat"].map((tool) => ({
|
||||
tool,
|
||||
path: `/tools/${tool}`,
|
||||
sha256: "b".repeat(64),
|
||||
version_banner: "1.0.42\n",
|
||||
arguments:
|
||||
tool === "wasm-objdump"
|
||||
? ["-h", "-x", "module.wasm"]
|
||||
: ["--enable-all", "module.wasm"],
|
||||
})),
|
||||
commands: (["wasm-validate", "wasm-objdump", "wasm2wat"] as const).map(
|
||||
(tool) => ({
|
||||
tool,
|
||||
path: `/tools/${tool}`,
|
||||
sha256: "b".repeat(64),
|
||||
version_banner: "1.0.42\n",
|
||||
arguments:
|
||||
tool === "wasm-objdump"
|
||||
? ["-h", "-x", "module.wasm"]
|
||||
: ["--enable-all", "module.wasm"],
|
||||
}),
|
||||
),
|
||||
timeout_ms: 30_000,
|
||||
output_budget_bytes: 32 * 1024 * 1024,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user