Repository navigation
fix(test): honor Ghidra startup budgets in Windows verification - #3417
Merged
Merged
Conversation
N0zoM1z0
marked this pull request as ready for review
October 14, 2026 14:21
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Contributor
[Medium impact] The PR appears safe to merge; no blocking issue was identified. SummaryThe PR gives the Windows Ghidra verifier one timeout policy:
The earlier request for focused regression tests is addressed. No new actionable issue or security issue was identified. Supersession could not be checked because GitHub access was unavailable. Tests were inspected, not run. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Environment] --> B[Production configuration parser]
B --> C[Check combined timer limit]
C -->|Too large| D[Reject before target access]
C -->|Within limit| E[Selected startup budget]
C -->|Within limit| F[Startup plus 240 seconds]
E --> G[Direct GhidraClient startup]
F --> H[MCP initialization and tool calls]
F --> I[Both file-offset CLI calls]
Reviews (6) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · 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
Fixes the remaining Windows Ghidra verifier deadline mismatch from #2903. Main already restored the missing
search_bytescoverage; this PR makes the real verifier honor the caller-selected Ghidra startup budget across direct startup, MCP initialization, every MCP tool call, and the existing file-offset CLI operations.Cold file-offset workflows previously had three independent deadline representations. Ghidra startup could legitimately outlast the helper's fixed 240-second request deadline, and the MCP SDK initialization handshake still used its 60-second default even after later tool requests received the extended budget.
Change and scope
The verifier now resolves one policy through the production configuration parser before target I/O or allocation:
GhidraClientstartup receives the selected startup timeout;startup + 240srequest options;The MCP operation binding also removes direct-call branches that had bypassed the shared request budget. Default production deadlines, analysis settings, queries, assertions, CLI/MCP schemas, Evidence, provider capabilities, package metadata, and installer behavior are unchanged. This is verifier-only code and adds no authority.
Validation
npm run check:fastand the focused 4/4 tests pass after the latest normal merge from main (efbc486b9).1991f20fcf19a9e745503dc294707cda11350351: all 37 checks pass, including source tests, 5/5 shards, Portable, Windows capability/package, three native package baselines, Apple E2E, Greptile, andCI required. The first browser lane attempt hit a transient CDP target-navigation error; the same base passed its concurrent scheduled browser lane and the failed-only rerun passed without a code change.4bb211c8pass all 26 read-only operations, bounded wildcard/mask byte-search coverage, file-offset MCP and two CLI paths, invalid/unmapped/header cases, source immutability, and cleanup:The merge through main
75104040ddid not change the Ghidra provider, verifier scripts, bridge, configuration, package version, or dependency lock; their hashes match the complete runs. It did change the shared MCP catalog/server implementation, so the affected public file-offset MCP/CLI subworkflow was rerun at37d0b9112for both architectures, with all semantic/cleanup assertions passing. The later main commits throughefbc486b9only changed analysis-view, contracts, and Apple keyed-archive code, leaving these inputs unchanged:The first exact-head x64 run reached the final mapped-header CLI assertion but returned a transient
provider_unavailableinstead of the expected semantic error. A separately bounded reproduction of that exact public CLI request returned the expectedinvalid_requestwith complete mapping diagnostics in 312.74 s and Job0; one evidence-based full rerun then passed. The failed full attempt also ended with Job0. No assertion or resource bound was weakened.Earlier actual npm-tarball installation and explicit installed-root x64/x86 package workflows passed on a preceding candidate whose runtime behavior is unchanged outside this verifier helper. Whole EXE completion remains independently blocked by #3204; direct byte-search CLI parity, real Hopper, and non-Windows engines are not claimed here. Complete-run receipts and transient diagnostics are under
/tmp/rea-windows-e2e-20261013/results/issue2903-final4bb211c8; exact-head helper receipts are under/tmp/rea-windows-e2e-20261013/results/issue2903-final37d0b9112.Author readiness
Human owner: @N0zoM1z0