feat(native): add inspection primitives, dispatch traces and approved UI observation (#500)

* fix(hopper): normalize string-backed addresses and update verification

* feat(native): add inspection primitives, dispatch traces and approved UI observation

* test: prioritize real artifact E2E and captured golden regressions

* fix(process): queue observed output before reactive rendering actions

* test: prune redundant cases and strengthen boundary assertions

* fix(cli): route native value tracing through shared workflows

* test: replace synthetic success with real workflows and captured data

* fix(catalog): separate portable metadata from native host availability
This commit is contained in:
morluto
2026-10-04 16:02:36 +08:00
committed by GitHub
parent 0356f7677f
commit 4fbc501121
205 changed files with 8136 additions and 1816 deletions
+10 -5
View File
@@ -64,6 +64,8 @@ export const nativeInvestigationRelationSchema = z.enum([
"swift_vtable_dispatch",
"thunk_to",
"direct_call",
"indirect_call",
"provider_call",
"reads",
"writes",
"flows_to",
@@ -83,7 +85,7 @@ export const nativeInvestigationEdgeSchema = z.discriminatedUnion(
from: z.string().min(1),
to: z.string().min(1),
relation: nativeInvestigationRelationSchema,
resolution: z.enum(["observed", "inferred"]),
resolution: z.enum(["observed", "inferred", "resolved", "ambiguous"]),
evidence: z.array(nativeMetadataEvidenceSchema).min(1),
limitations: z.array(z.string()),
}),
@@ -344,7 +346,7 @@ export const joinInterfaceBuilderDispatch = (
reason:
candidates.length > 1
? "selector_has_multiple_candidate_implementations"
: "implementation_not_resolved_from_provider_symbols",
: "implementation_not_resolved_from_binary_metadata_or_provider_symbols",
evidence: [
...action.evidence,
...candidates.flatMap(({ evidence }) => evidence),
@@ -378,15 +380,18 @@ export const joinInterfaceBuilderDispatch = (
from: selectorNodeId,
to: functionId,
relation: "objc_dispatch",
resolution: "inferred",
resolution:
className !== null && implementation.decode.status === "decoded"
? "resolved"
: "inferred",
evidence: [...action.evidence, ...implementation.evidence],
limitations:
className === null
? [
"The selector uniquely matches a symbolized method, but the Interface Builder receiver is an unresolved placeholder; runtime dispatch was not observed.",
"The selector uniquely matches a encoded or symbolized method, but the Interface Builder receiver is an unresolved placeholder; runtime dispatch was not observed.",
]
: [
"The Interface Builder target and symbolized method agree on class and selector; runtime dispatch and dynamically supplied targets were not observed.",
"The Interface Builder target and encoded or symbolized method agree on class and selector; runtime dispatch and dynamically supplied targets were not observed.",
],
});
resolved += 1;