Repository navigation
Conversation
|
@greptileai review Please review the decompiler warning observations, their propagation into compact views and snapshot Evidence, and the rule that warned pseudocode comparisons remain unresolved. The source-owned fixture was verified through the production CLI with real Ghidra 12.1.4 on macOS arm64; its original bytes remained unchanged and no target code ran. 125 focused tests and the static/documentation gates passed. The branch includes the #2899 prerequisite correction. |
[High impact] The PR appears safe to merge; no new blocking issue was found. SummaryThis PR preserves Ghidra’s warning observations through function records, paged views, comparisons, and composed workflows.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
G["Ghidra decompiler output"] --> O["Structured warning observations"]
A["Authored Listing comments"] --> D["Separate comment records"]
O --> F["Full function Evidence"]
F --> P["Paged warnings, dropped blocks and diagnostics"]
F --> W["API, value, batch and annotation workflows"]
F --> C{"Warnings explicitly checked and none reported?"}
C -->|No| U["Pseudocode comparison stays unknown"]
C -->|Yes| T["Compare observed pseudocode"]
Reviews (11) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f5050ca84c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@greptileai please re-review the latest head 72d0577. Addressed both findings from the previous review. The Linux verifier now builds a non-PIE executable and declares ELF function metadata, preserving the independent The profile interpretation is bumped to v2. Final archive inspection also caught and fixed omission of the new parser from npm's file allowlist; package verifiers now require it, including the Windows package check. Six producer cases, |
|
@greptileai please review the latest head 8584638 after the additional Codex findings. The warning was lost when API inspection/value tracing projected a dossier without its outer limitations. Both consumers now retain warning/diagnostic unknowns and inline limitations, including reached callees, and composed Evidence preserves those limitations. Focused regression tests assert both the result and final Evidence. Workflow revisions are advanced to prevent stale replay. The rendered-C parser previously had no way to distinguish authored Listing comments from generated warning comments. The decompiler now excludes authored PRE/EOL/POST/PLATE/header comments before parsing automatic C warnings. Authored annotations remain in dossier comments and annotation readback. A real production-MCP regression writes a fake removed-block warning through The Ghidra interpretation is v3. 150 focused tests, six independent producer cases, static checks, docs checks and packaged-install/lifecycle verification passed. Real Ghidra 12.1.4/macOS arm64 CLI and MCP verification passed with unchanged fixture hashes and no target execution. Child stderr is inherited for visible startup/cleanup failures. Linux/Windows native runs remain unverified; full upstream CI has the documented unrelated #2899 failures. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8584638f2e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@greptileai please review the new head cf2e000 after the latest Codex findings. The batch workflow previously used a helper that discarded Shared completeness semantics no longer require a Ghidra provenance literal or invent Ghidra labels. The adapter owns Ghidra-specific wire validation. A shared-consumer regression accepts an independent producer, while an adapter regression rejects foreign provenance. No other provider's completeness support is claimed merely by accepting the shared contract. The Ghidra interpretation is v4 and API/value/batch workflow revisions are 3. 172 focused tests, static/module/architecture checks and docs checks passed. Real Ghidra 12.1.4/macOS arm64 CLI/MCP verification passed with unchanged input hash, authored-warning exclusion, and API/value/batch warning retention. Six Java parser cases and package install/lifecycle checks previously passed; the shipped parser is unchanged. Linux/Windows native runs remain unverified. Full upstream CI retains the separately documented captured-base failures. No target code was executed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cf2e0005a9
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
cf2e000 to
04834b7
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04834b741e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
04834b7 to
d2ba06b
Compare
|
@greptileai please re-review head eac4d7f after the latest three findings. Annotation Evidence now extracts the refreshed dossier's already validated limitation projection. API/value workflow Evidence validates only the limitation projection, avoiding a second full native-graph traversal. Completeness is a scalar summary; warnings/dropped blocks and diagnostics have separate pages. Warned shared metadata points to the full parent and paged limitations instead of repeating every warning. Non-warning native views preserve existing inline limitations. The view producer is revision 2 and Ghidra interpretation v5. 189 tests, static/module/architecture/docs checks, the warning-heavy baseline regression and production CLI/MCP with real Ghidra 12.1.4/macOS arm64 passed. The shipped Java parser is unchanged. The 3 MB trace benchmark produced identical Evidence before/after; timing/peak RSS varied and no speedup claim is made. Linux/Windows native coverage remains unrun. No target was executed. The maintainer's latest rebase was preserved. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eac4d7f1d1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…erage BREAKING CHANGE: missing warning observations leave pseudocode comparisons unknown. Re-analyze with a warning-aware producer or compare independent assembly. Recreate function comparison Evidence at revision 2 for reconstruction verification.
|
@greptileai please review latest head 7f24331. Raw dropped-block offsets now survive normalization and failed resolution; legacy pseudocode without explicit warning metadata remains unknown without parsing authored text. Comparison provider revision 2 and the reconstruction consumer are updated together. The description documents the breaking behavior and migration. 287 focused tests, six Java cases, current static/docs checks, fresh package install/lifecycle checks and real production CLI/MCP passed. Verifier children are isolated from ambient REA settings and require verified empty descendants; poisoned-setting checks passed. Linux/Windows native coverage remains unrun; no targets were executed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f24331720
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Hey @Bobtoshi, I've been following this work and wanted to see if I could help with testing and verification. I contributed the generic MIPS and PSP/Allegrex Ghidra integrations in #1362 and #1599. I'm particularly interested in making REA's decompiler output reliable enough for longer PSP reverse-engineering investigations. I noticed the existing review threads concerning the revision-2 function comparison Evidence and its downstream consumers. Rather than duplicate that work, I'd be happy to contribute a focused regression for I'm also interested in validating your warning and completeness reporting against a source-owned PSP/Allegrex fixture on Linux. My current lab audit couldn't execute the provider tests, so I don't have PSP-specific results to report yet. Would either of those contributions be useful for this PR, or would you prefer the PSP verification as a separate follow-up? I'm happy to work within your existing approach and offer a small patch for incorporation. |
|
Hey @Bobtoshi, following up on my earlier offer. I reproduced the revision-2 consumer mismatch against PR head The patch centralizes the function-comparison Evidence identity and updates the producer, both downstream consumers, examples, reconstruction verification, and regression coverage. The recorded pre-fix run had 12 failures and 10 passes; after the fix, 155 domain tests and 8 focused MCP tests passed. Fresh No Ghidra or PSP execution was performed for this downstream compatibility fix. If this approach fits your PR, you’re welcome to cherry-pick or incorporate it; I’m happy to adapt the regression to your preferred implementation. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Thanks @jaelliot — I incorporated your correction with authorship preserved and independently verified the old consumers fail the v2 acceptance cases. Current-head tests use pinned Node 24.18.0/npm 11.16.0; 360 focused tests, six Java cases, static/docs/discovery, fresh package verification and real Ghidra production CLI/MCP pass. @greptileai please review latest head 1d921ba. Latest upstream is merged, including its cancellation-aware batches, source-observation limitation collection and Ghidra call coverage. The function-comparison identity now has one owner across producer, both downstream consumers, reconstruction and examples. Authored-warning exclusion, raw offsets and paged warnings still pass real Ghidra checks. Maintainers: current-head fork-origin PR Actions show action_required. Please approve those workflows so required CI can execute. Local results do not establish an upstream CI pass. |
# Conflicts: # bridge/ghidra/ReaGhidraBridge.java # src/application/WorkflowEvidence.ts # src/application/native/NativeValueTrace.ts # src/ghidra/GhidraAnalysisProfile.ts
|
Merged latest
Validation on the merged tree:
Not verified: the Java bridge was not compiled or run against Ghidra here. |
|
TL;DR: The PR's 13 changed test files pass on Linux with the PR applied to current main. On plain main, with the same test files, 13 of 13 files fail. I did not run the Java warnings test or the real Ghidra script. Thanks, Bobtoshi, for the work. I tested head a73ec12 on top of main 5b16f24 (#3049). The PR's merge base is 3e88e21 (#3605). The PR's patch applied to main with no conflicts. Results
Not run
Commandsgit -C ~/code/rea-mirror/rea.git fetch origin
git -C ~/code/rea-mirror/rea.git archive 5b16f2431062eea6ffd245a9e05512790007cb13 | tar -x -C /tmp/job/t
git -C /tmp/job/t apply 2904.patch # patch is merge base to head; exit 0
npm ci && npm run build && npm run test:prepare
npm run test:focused -- <the 9 source test files> # 9 passed, exit 0
npm run test:focused -- <the 4 MCP boundary files> # 4 passed, exit 0
# main run: main's changed source files restored, PR test files kept
npm run test:focused -- <the 9 source test files> # exit 1, 109 failed
npm run test:focused -- <the 4 MCP boundary files> # exit 1, 15 failedTest setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Hi @Bobtoshi, morluto asked #4237 and this PR to coordinate, since both address #2735 with a In short, I'd keep your observed shape exactly as it is (status, warnings, diagnostic, and Are you still working on this branch? If you'd like to keep #2735 here, I'm happy to send the range part as a patch on top of yours once it's rebased, and close #4237 instead. |
|
Thanks @RishTheFish21 and @morluto. Yes, let’s use #4237 for the combined warning and instruction-fallback work. I agree with the proposed split: retain #2904’s observed envelope, raw offsets, warning association and Preserving analysts’ comments and reusing the typed-token attribution from #2977 is a better direction than carrying over #2904’s comment-rendering toggle. Keep the comparison-coverage change out of the combined PR; it is a separate breaking decision. Please preserve Bobtoshi’s co-author credit for the incorporated work. The source shape is pinned at a73ec1251. I’ll keep #2904 open as the reference until the combined implementation and attribution are present, so there is no need for competing integrations. |
|
@Bobtoshi thanks for the PR — this branch has merge conflicts with |
|
Thanks. #2904 is being kept at #2977 has now landed in |
|
Hi @Bobtoshi, the combined version is now on #4237: #4237 (comment) It keeps your observed envelope as agreed (raw offsets, warning association, |
Warning observations and instruction fallback for #2735 are being consolidated into #4237, following the maintainer’s coordination request. The agreed scope preserves this PR’s observed envelope, raw offsets, warning associations and unknown dropped-block ends. Listing ranges/instructions will be separately derived; typed comment-token attribution should preserve authored pseudocode comments.
The breaking function-comparison coverage change remains a separate proposal. This branch is retained as a source/reference while the combined change is prepared. It is not being presented as an up-to-date replacement for #4237.
Pinned reference head:
a73ec1251655ec8de332079557a4b082493763f0. The branch has conflicts with current main. Its successful CI and the earlier macOS/Ghidra checks apply to their executed revisions, not a current-main revalidation. See the earlier comments for those receipts and independent Linux checks.Attribution: preserve Bobtoshi’s co-author credit for incorporated observations. jaelliot’s centralized comparison-consumer correction remains credited in branch history for any separate comparison work. The branch and local evidence remain available until the combined implementation and credit can be checked.
Author readiness
Human owner: @Bobtoshi