feat(native): add investigation features (#486)

* feat(native): add UI and dispatch investigation workflows

* feat(ghidra): support macOS host validation

* docs: update native investigation capabilities

* feat(artifacts): decode compiled Interface Builder archives

* feat(ghidra): expose bounded p-code value flow

* test(ghidra): split host and cross-format verification

* fix(verify): follow complete result contracts

* refactor: remove unused authorization and schema helpers

* refactor: remove unused evidence result alias

* fix(ghidra): report jump-table evidence precisely

* fix(verify): align browser scenario fixture schema

* fix(setup): compare parsed client config structurally

* test(ghidra): verify AArch64 jump-table mappings

* fix(ghidra): recover AArch64 byte jump tables

* test(artifacts): verify compiled interface builder archives

* feat(native): trace UI actions through handlers

* fix(tests): update native trace and shutdown fixtures

* fix(verification): diagnose browser scenario failures

* fix(browser): wrap scenario snapshots in capture state

* fix(native): bind and bound investigation workflows

* fix(artifacts): preserve bounded interface builder evidence

* fix(ghidra): enforce admitted hosts and preflight tools

* fix(native): preserve trace cancellation and bounds

* test(application): expect bound analysis target evidence

* fix(native): preserve investigation bounds and cancellation

* fix(application): preserve bundle and unresolved trace evidence

* style(test): format artifact subject fixture
This commit is contained in:
morluto
2026-09-30 00:41:05 +08:00
committed by GitHub
parent fa26affc86
commit ed933d1893
87 changed files with 6771 additions and 375 deletions
+8 -13
View File
@@ -108,9 +108,9 @@ const verifyPackagedElectronApplication = async ({
const sameArtifactIdentity = (left, right) =>
isDeepStrictEqual(left?.manifest, right?.manifest) &&
isDeepStrictEqual(left?.nodes?.items, right?.nodes?.items) &&
isDeepStrictEqual(left?.occurrences?.items, right?.occurrences?.items) &&
isDeepStrictEqual(left?.edges?.items, right?.edges?.items);
isDeepStrictEqual(left?.nodes, right?.nodes) &&
isDeepStrictEqual(left?.occurrences, right?.occurrences) &&
isDeepStrictEqual(left?.edges, right?.edges);
const verifyPackagedArtifactExtraction = async ({
artifactArchive,
@@ -118,7 +118,7 @@ const verifyPackagedArtifactExtraction = async ({
cli,
environment,
}) => {
const occurrence = artifactInventory?.occurrences?.items?.find(
const occurrence = artifactInventory?.occurrences?.find(
({ logical_path: path }) => path === "app/main.js",
);
if (occurrence?.logical_path === undefined)
@@ -126,13 +126,7 @@ const verifyPackagedArtifactExtraction = async ({
const extraction = json(
await run(
cli,
[
"extract-artifact",
artifactArchive,
"--paths",
occurrence.logical_path,
"--json",
],
["extract-artifact", artifactArchive, "--json"],
environment,
),
);
@@ -142,8 +136,9 @@ const verifyPackagedArtifactExtraction = async ({
extraction.operation !== "extract_artifact" ||
extraction.provider?.id !== "rea-artifact-graph" ||
extraction.normalized_result?.containment_verified !== true ||
extraction.normalized_result?.artifacts?.items?.[0]?.relative_path !==
"app/main.js" ||
extraction.normalized_result?.artifacts?.some(
({ relative_path: path }) => path === occurrence.logical_path,
) !== true ||
typeof outputRoot !== "string" ||
(await readFile(join(outputRoot, "app/main.js"), "utf8")) !== "main();"
)