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:
morluto committed 2026-10-10 03:52:13 +08:00
1 parent e3bbb9ac45
commit a4ba8aecd5
29 files changed
+465 -112

No files matched your search

@@ -24,6 +24,12 @@ const dossier = jsonValueSchema.parse(
procedure: {
address: "0x1000",
name: "main",
classification: null,
body: {
available: false,
reason:
"Hopper's public Python API does not expose complete function body ranges",
},
signature: "int main(void)",
locals: [],
},
@@ -36,7 +42,10 @@ const dossier = jsonValueSchema.parse(
outgoing_references: [],
referenced_strings: [],
referenced_names: [],
native_api: null,
native_value_flow: null,
basic_blocks: [{ start: "0x1000", end: "0x1001", successors: [] }],
limitations: [],
}),
);