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:
@@ -426,6 +426,8 @@ export class IdaOperationRunner {
|
||||
referenced_strings: [],
|
||||
referenced_names: [],
|
||||
basic_blocks: [],
|
||||
native_api: null,
|
||||
native_value_flow: null,
|
||||
limitations: [
|
||||
...IDA_LIMITATIONS,
|
||||
...this.limitations,
|
||||
|
||||
@@ -95,6 +95,17 @@ describe("headless IDA producer pagination", () => {
|
||||
const dossier = functionDossierSchema.parse(result.value.result);
|
||||
expect(dossier.pseudocode).toBe("first line\nsecond line");
|
||||
expect(dossier.assembly).toEqual(["0x1000: push rbp", "0x1001: ret"]);
|
||||
expect(dossier).toMatchObject({
|
||||
procedure: {
|
||||
classification: null,
|
||||
body: {
|
||||
available: false,
|
||||
reason: "IDA MCP does not report complete function body ranges.",
|
||||
},
|
||||
},
|
||||
native_api: null,
|
||||
native_value_flow: null,
|
||||
});
|
||||
await client.close();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user