Repository navigation
fix(verify): expect the current instruction schema to refuse the removed undecodable status - #11092
Merged
Merged
Conversation
…ved undecodable status verify-real-ghidra-com asserted that an unlisted-address record relabelled with the legacy undecodable status still parsed. #10946 removed that value with the other historical native enum values, so the lane failed on main after a correct not-in-listing result. The verifier now checks that the producer's record parses and that the relabelled record is refused.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] This verifier-only change appears safe to merge. SummaryUpdates the real-Ghidra COM verifier to follow the current instruction contract.
Reviews (1) · Last reviewed commit: "fix(verify): expect the current instruct..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run verify:ghidra:comfailed on main with real Ghidra 12.1.4. The producer correctly reportednot-in-listingfor an unlisted address. The verifier then asserted that the same record, relabelled with the legacyundecodablestatus, still parsed. #10946 (Phase 5, inside #10861) deliberately removedundecodabletogether with the other values that existed only for historical native Evidence. The assertion was testing a compatibility promise that no longer exists. No linked issue.Problem and expected behavior
GHIDRA_INSTALL_DIR=<Ghidra 12.1.4> npm run verify:ghidra:comon main.assert.ok(nativeInstructionSchema.safeParse({ ...unlisted, status: "undecodable" }).success).not-in-listingrecord parses, and a record carrying the removedundecodablestatus is refused.Change and scope
scripts/verify-real-ghidra-com.mjs: assert thatnativeInstructionSchemaaccepts the producer's record and refuses the relabelled one.scripts/:unrecorded, unknownvisibility,modinfo_field_exceeds_limit,declaration_coverageunknown,type-names-v1, and Evidence bundles built withoutevidence_format. No other verifier or script uses them. The two verifiers that import bundles (verify-package-mcp.mjs,verify-real-ghidra-project-coverage.mjs) import bundles REA itself exported, so those bundles carry the current format.Contribution scope: not applicable (verifier fix).
Contract and boundary impact
nativeInstructionSchema(src/domain/native/nativeInstruction.ts); the verifier follows it.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
nativeInstruction.ts.For evidence-bearing changes:
Validation performed
GHIDRA_INSTALL_DIR=~/Applications/ghidra_12.1.4_PUBLIC npm run verify:ghidra:com(macOS, real Ghidra 12.1.4):ok: true,mocked: false,cleanup: "complete"; 62 s elapsed, 967 MB peak RSS.grepoverscripts/for the removed Phase 5 values and fields: only this site matched.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.