Repository navigation
fix(firmware): recommend the operation-specific engine - #8513
Closed
ShuaixinHuang wants to merge 1 commit into
Closed
ShuaixinHuang wants to merge 1 commit into
ShuaixinHuang wants to merge 1 commit into
Conversation
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. |
Contributor
[Medium impact] The changes appear safe to merge; recovery now names the correct engine without changing execution. SummaryFirmware discovery now recommends Binwalk for inspection and Unblob for extraction.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Map["Operation-to-engine map"] --> Recovery["Capability recovery"]
Map --> Execution["Firmware execution"]
Map --> CLI["CLI evidence attribution"]
Map --> Descriptions["Tool descriptions"]
Reviews (1) · Last reviewed commit: "fix(firmware): recommend the operation-s..." · Reviewed by Greptile |
15 of 22 tasks
11 tasks done
This was referenced Nov 2, 2026
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.
Superseded by #8636 at the author's request: #8636 . The replacement reuses the same published branch and HEAD. This closed PR preserves the original discussion and historical validation.
Summary
Fixes #8507. Firmware capability discovery previously suggested either Binwalk or Unblob for either missing operation, although inspection requires Binwalk and extraction requires Unblob. Recovery now names only the engine that can enable the requested operation, its audited release line, util-linux prlimit and procps ps. Extraction alone additionally names the format-specific external extractor.
Change and scope
A typed
FIRMWARE_OPERATION_ENGINESmap owns the existing operation-to-engine contract. Capability recovery, firmware execution, CLI evidence attribution and the named tool descriptions consume it instead of repeating independent engine selection. The existing availability flags and unsupported-host precedence are retained. Product documentation explains that the other engine cannot enable an unavailable operation.This is a correction to discovery guidance for existing capabilities. No new provider, target execution, installation, extraction behavior, process authority, cleanup policy, schema or resource-limit change. A new maintainer scope decision is not applicable.
Evidence and regression coverage
Baseline:
aa48d494e9726d469a1b9ed917f021d8a1a4c7ea. Windows x64, Node 24.22.1; npm available in this session was 10.9.3 rather than the repository's pinned 11.16.0. No dependencies were installed or changed.npm run check:fast: 2/2 tasks passed, 47.419 seconds.git diff --checkpassed.d239337e437e2c1000616fa39a8b743efaf0f90eexactly matches the locally validated commit tree.Representative capability recovery now says:
REA_BINWALK_COMMAND (Binwalk 3.1.x (verified with 3.1.0)), prlimit and procps ps.REA_UNBLOB_COMMAND (Unblob 26.6.x (verified with 26.6.4)), prlimit, procps ps and the selected format's external extractor.These are executed shared capability-projection tests with controlled configuration facts. No real Binwalk/Unblob installation, Linux firmware execution, extraction, or new compiled CLI/MCP run is claimed. Hosted CI for this new PR remains pending.
Author readiness
Human owner: @ShuaixinHuang
Before merge
type(scope): outcome.