fix(contracts)!: require observed provider output metadata
Reject omitted segment bounds, procedure classification and body facts, unresolved-call observations, dossier facets, and Ghidra parameter flow metadata. Providers emit explicit nulls for unsupported facets. Verify those unknowns in the real Hopper workflow. BREAKING CHANGE: Provider analysis outputs must explicitly supply metadata previously repaired with defaults; unsupported nullable facets must be reported as null.
This commit is contained in:
@@ -19,6 +19,12 @@ const observe = (
|
||||
procedure: {
|
||||
address,
|
||||
name: `fn_${address.slice(2)}`,
|
||||
classification: null,
|
||||
body: {
|
||||
available: false,
|
||||
reason:
|
||||
"Hopper's public Python API does not expose complete function body ranges",
|
||||
},
|
||||
signature: null,
|
||||
locals: [],
|
||||
},
|
||||
@@ -29,12 +35,21 @@ const observe = (
|
||||
callees: callees.map((callee) => ({
|
||||
address: callee,
|
||||
name: `fn_${callee.slice(2)}`,
|
||||
classification: null,
|
||||
body: {
|
||||
available: false,
|
||||
reason:
|
||||
"Hopper's public Python API does not expose complete function body ranges",
|
||||
},
|
||||
})),
|
||||
incoming_references: [],
|
||||
outgoing_references: [],
|
||||
referenced_strings: [],
|
||||
referenced_names: [],
|
||||
native_api: null,
|
||||
native_value_flow: null,
|
||||
basic_blocks: [],
|
||||
limitations: [],
|
||||
});
|
||||
return createEvidence(
|
||||
{ path: "/tmp/a", sha256: "a".repeat(64), format: "mach-o" },
|
||||
|
||||
Reference in New Issue
Block a user