Repository navigation
feat(rizin)!: record which tool and version answered execute_rizin_command - #7487
Conversation
Process capture owned the only spawn-equivalent PATH lookup, wrapped in scenario-specific errors. Move the lookup into src/process as a result type, so a provider command can resolve an executable once, hash it and then run that same file. Process capture maps the result to its existing errors unchanged.
…mand execute_rizin_command recorded version null and labelled any executable selected by REA_RIZIN_COMMAND as Rizin, although radare2 also accepts REA's argument list. Before the first command for each executable digest, resolve the selected executable through PATH, hash it, run it with -v and read its banner; the command then runs the same file. The Evidence provider records the tool name and version, and the parameters record the resolved executable path, its SHA-256 and the banner line. A tool other than Rizin still runs, with a limitation; a failed, timed out or unrecognized probe leaves the version unknown. Each digest's reading, including a failure, is reused for the life of the process, and concurrent first calls share one probe within the caller's command_timeout_ms budget. A caller that stops waiting cancels the probe only when no other caller needs it. A probe whose process cleanup is incomplete stays retained for retry.
[High impact] No new blocking failure was established in the reviewed changes. SummaryAdds per-call tool identification to
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Caller selects executable] --> B[Resolve executable]
B --> C{Usable path found?}
C -->|Yes| D[Hash executable]
D --> E[Run owned version probe]
E --> F{Banner identifies tool?}
F -->|Yes| G[Record observed name and version]
F -->|No| H[Record assumed identity and diagnostics]
C -->|No| H
G --> I[Run requested command]
H --> I
I --> J[Return Evidence or retained failure facts]
B -->|Cancelled or deadline| K[Return error without command]
D -->|Cancelled or deadline| K
E -->|Cancelled or cleanup incomplete| K
Reviews (65) · Last reviewed commit: "test(rizin): align tool identity asserti..." · Reviewed by Greptile |
Sharing an in-flight version probe between callers let a joining call outlive its own command_timeout_ms and inherit another caller's cancellation, and the cache was keyed by digest alone, so byte-identical launchers in different directories shared one reading. Remove the sharing: each call runs its own probe under its own deadline and cancellation. Reuse only completed probes (a banner, a non-zero exit or a timeout), keyed by the resolved launch path and its SHA-256. The executable lookup now honours the call's deadline and cancellation, so a stalled PATH entry cannot hang a call or close(). A failed probe records its exit status and bounded stdout and stderr in provider_version_probe, and a cancelled probe keeps its captured output on the error.
Concurrent first calls can each probe the same launch path and digest. When one probe printed a banner and another later timed out or exited non-zero, the failure overwrote the cached reading, so every later call reported an unknown version for the life of the server. Route the cache write through one rule: a failure never replaces a successful reading, and a success replaces an earlier failure. Each call still reports its own probe's outcome.
The guide said the command "runs the same file" as the version probe. REA runs the same resolved path; the recorded SHA-256, tool and version describe the file there when REA checked it. Say so, with the limit the guide already states for artifact digests: they cannot prove the exact bytes executed if the file changes before the launch.
Homebrew's Rizin 0.9.1 prints `rizin 0.9.1 @ darwin-arm-64, package: 0.9.1_2 (Homebrew)`, with a package suffix after the platform. The identity test now uses that banner, so a parser that expects the line to end at the platform fails; the other tests keep the plain form. The test name and the probe comment now say REA runs the path it hashed and reuses a completed probe per launch path and digest, as the guide says since c73a0be.
Tests that injected a fake runner still resolved `rizin` through the host PATH. With Rizin installed, the version probe took the fake runner's first canned result, and three tests in reverseEngineering.test.ts failed. CI has no Rizin, so they passed there. The service now takes one `processes` option: the executable lookup with either a runner or the owned-process primitive. It replaces `run` and `runOwned`, so a fake runner cannot be paired with the host lookup. Omitting it keeps the host lookup and owned execution. The lookup no longer reads the service's `stat` seam. The test service pairs a fake runner with a lookup that finds nothing unless the test passes one; the identity tests pass the real lookup explicitly. A new test puts an executable `rizin` first on PATH with a fake runner and checks that each command gets its canned result, and that the options type rejects a runner without its lookup.
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41d291bfc4
ℹ️ 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".
…line When hashing the resolved executable reached command_timeout_ms, digestFile rejected with ETIMEDOUT and the service recorded an unknown identity, then launched the caller's command with a fresh deadline. A caller-selected, possibly side-effecting command ran after its preflight deadline had passed. The hash deadline now returns AnalysisTimeoutError with phase executable_digest, as the lookup's deadline already did, and the timeout guidance names executable identification among the phases. A test stalls the executable's stat past a 50 ms deadline and checks that nothing runs.
The probe cache kept one entry per launch path and digest and never evicted one, and a kept banner could be as long as the 16 MiB capture. It now keeps the latest completed probe per launch path with the digest it read; a new digest replaces it, and a later failure still never replaces a successful reading of the same digest. The service reads the banner (the first stdout line, trimmed), keeps at most 2,048 characters of it and records provider_version_banner_truncated; the provider's parser now reads that bounded banner, so everything a probe keeps is bounded. A -v output that was not valid UTF-8 was parsed anyway, so replacement characters could become provider.version. It now leaves the version unknown, with a limitation saying the output is not valid UTF-8. An owned probe whose output was not fully collected was labelled failed when it carried a numeric exit status, and cached. A collection failure is now checked first: the probe is unfinished, is not kept, and its diagnostics report no exit status. Tests cover a digest change replacing the kept probe, a capped banner, undecodable output and a collection failure that is probed again.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dcb9d61611
ℹ️ 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".
A timed-out version probe was kept for its launch path and digest, so a later call with a longer command_timeout_ms reused it without probing: its Evidence said the probe reached the command deadline, and the version stayed unknown until the executable changed. A timeout is a fact about one call's deadline, not about the file. Each probe outcome now carries its scope in its type: a reading, a failed exit and undecodable output describe the executable and are kept; a timeout and unfinished output describe the call and are not. The cache accepts only executable-scoped outcomes, so the call site no longer filters. Both runners report a deadline as ETIMEDOUT, which the probe checks before any signal, so a stopped probe is always timed-out. A test times out a probe through the owned runner's deadline failure, then checks that a call with a longer deadline probes again and reads the version.
When -v exited nonzero or timed out with output that was not valid UTF-8, provider_version_probe kept the decoded text, replacement characters included, with no flag. Undecodable output's stderr had the same gap. The failure capture (execFileOutputFailure) now reads the runner's stdoutInvalidUtf8 and stderrInvalidUtf8, as it already reads collectionFailure. The probe diagnostics record them for every outcome that keeps output, as stdout_invalid_utf8 and stderr_invalid_utf8, following gdb Evidence's stderr_invalid_utf8. The command path takes its flags from the same capture instead of reading the owned failure directly. The guide names the two fields. Tests cover failed and timed-out probes with invalid stdout or stderr, undecodable output on both streams, and a failed command whose stdout is not valid UTF-8, which pins the command path's flags to the capture.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7053da1d9
ℹ️ 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".
When the -v banner did not match, identifyRizinTool returned Rizin's identity with no limitation, so Evidence named Rizin although nothing identified the tool; the limitation qualified only the version and formats. Failed, timed-out and undecodable probes, and an executable that could not be located or read, named Rizin the same way. The Evidence provider schema requires a name, so the tool cannot be recorded as unknown. The parser now returns no identification for a banner it does not recognise. Wherever no banner identified the tool, the service keeps the configured identity, sets provider_identity to "assumed" and adds the probe's assumed-identity limitation, which the Rizin probe owns; an identified tool gets provider_identity "banner". The guide and the tool description say so. Tests cover an empty first line and a Usage: banner; two composition tests now count the added limitation.
A cancelled or cleanup-incomplete version probe carried captured output from execFileFailureCapturedOutput, which dropped the runner's invalid-UTF-8 flags, so its replacement characters looked like provider output. The command path's own captured output had the same gap when cancellation ended a run or a failure was captured. AnalysisCapturedOutput gains stdout_invalid_utf8 and stderr_invalid_utf8, set to true only when the runner reported invalid UTF-8, as command observations mark output_invalid_utf8. The shared projection fills them through capturedInvalidUtf8, and the command path's two captured outputs use the same helper, so every consumer of a runner's failure report keeps them. The guide mentions the markers. Tests cover a cancelled and a cleanup-incomplete probe, and a command cancelled during and after its run, each with invalid UTF-8 output.
A launcher such as a version-manager shim keeps its path and SHA-256 while the tool it delegates to changes, so a reading kept for that path and digest could name a tool the command no longer runs. A shim's delegate cannot be observed, so no kept reading can be checked for freshness. Every call now probes in its own environment and under its own deadline before the command, and nothing is reused. The cache, its keep and replace rules and the outcome scopes that existed only for it are removed; without a cache, an unfinished probe is reported as failed, and its diagnostics still give no exit status when output was not fully collected. The per-call digest stays in Evidence. The guide and the tool description say each call probes. On this Mac (Homebrew rizin 0.9.1) a probe costs about 180 ms through REA's owned-process runner, of which rizin -v itself takes about 15 ms warm: the price of identifying the answering tool on every call. A test runs a launcher whose bytes stay the same while the tool it runs changes, and checks that each call reports the tool that answered. Tests that only covered the cache are removed; the rest now expect a probe per call.
dd06ad2 removed the cache-only tests with a script that also removed "runs each caller's probe under its own deadline and cancellation", which covers per-call probing: two concurrent calls each probe under their own deadline and signal, and cancelling one stops only its probe. Restore it without the reuse check that only the cache needed.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: de4cb41c33
ℹ️ 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".
…apping it to an error
…d path in launch failures
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e1c957fc9
ℹ️ 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".
…le coverage The cancellation test now covers the command and the version probe as "waits for a Rizin process cancelled during its %s to exit before returning", so the lifecycle coverage registry names that title.
…ts wording The limitation must name the setting that stopped the hash, its value and the error code; the recovery sentence belongs to nativeDeadlineRecovery, whose wording may change.
…able When the ownership helper's compiler could not start for EAGAIN, EMFILE, ENFILE or ENOMEM, the version probe mapped the failure to a non-retryable ownership-preparation error with setup remediation, while the command path classifies the same condition as a retryable resource constraint. Run the shared preparationHostCapacityFailure owner first in the probe, as the command does, and test each of the four codes.
…ectory The fixture root came from mkdtemp before the try block, so a setup failure skipped its removal. createTestTempDirectory registers the cleanup when it creates the root.
# Conflicts: # tests/boundary/mcp/reverseEngineeringProviderEnvironmentMcp.test.ts
…d clean up lookup
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
No issue is linked: this was found while reviewing the Rizin route for embedded targets.
execute_rizin_commandrecordedversion: nulland labelled whateverREA_RIZIN_COMMANDselected as Rizin. radare2 accepts REA's argument list (-N -q -e scr.color=0 -c <cmd> <path>), so radare2 output could be recorded as Rizin Evidence without saying so. The docs allow any executable there, so refusing other tools would break a supported configuration.Problem and expected behavior
Evidence should say which tool and version produced the output. A tool that is not Rizin should still run, with a limitation, and a tool that cannot be identified should leave the version unknown rather than fail.
Change and scope
PATH, hashes it and runs it with-v, within the call'scommand_timeout_msand cancellation. The command then runs the same path. The first-vline identifies the tool in the form Rizin and radare2 print, for examplerizin 0.9.1 @ darwin-arm-64, package: 0.9.1_2 (Homebrew)andradare2 6.1.8 +0 abi:110 @ darwin-arm_64; any other line identifies nothing. Evidence keeps provider idrizin, takes the name and version from the banner, and addsprovider_executable_path,provider_executable_sha256,provider_version_banner,provider_version_banner_truncatedandprovider_identity. The banner is kept to 2,048 UTF-8 bytes, cut between code points, and a cut banner identifies nothing.provider_identity: "assumed", a limitation, and the probe's bounded exit status and output inprovider_version_probe.PATHlookup that process capture owned moves tosrc/process/ExecutableLookup.ts. REA reports a version only for a file it runs, so the lookup moves past only what every native search moves past: a missing file, a non-directory, a denied directory and a file without execute permission, and, on Linux and macOS, an entry of at leastPATH_MAXbytes. At any other error, such asELOOP,ESTALEorEIO, at least one native search stops (musl's stops at each), so the lookup stops too, and the command runs by name, unidentified, for the host to decide. A found file that does not start withENOENTorEACCES, as when a script's interpreter is missing or not executable, is one a native search moves past, and atESTALEorENODEVglibc's search moves past it while musl's stops, so the command also runs as selected, unidentified, with a limitation naming that file. An explicitly selected path has no later candidate, so it runs as resolved and keeps its path and SHA-256. The working directory is read only when a relative command or entry needs it. Sincemain's refactor(process): give POSIX PATH search order one owner #10891, the candidates come frommain's onePATHsearch owner,posixPathCandidatesinsrc/process/executableSearch.ts. This PR extends it without changing what other callers get: each POSIX candidate records thePATHentry it came from, the working directory can be read only when a relative entry is reached, and anunreadableWorkingDirectory: "as-written"mode returns a relative entry unresolved, asexecvpchecks it. On Windows, the command port resolves a bare name throughwindowsPathCandidates(fix(reverse): refuse a Windows objdump or Rizin command that PATH does not find #10953), so the lookup only checks, hashes and probes the path it gets.stat,access, open, read or close cannot be cancelled. The call stops waiting for it and gives back its place among the eight concurrent operations, and the step keeps running, untracked, until the mount answers, asmain's pre-runstatalready did. A later call on that path starts its own steps.close()does not wait for this work, and the process cannot exit until it returns: a CLI command prints its result and then stays alive. Who owns that work is left to #8860; the sharedFileWorkpool that this PR carried untilf22a45b96is kept on the fork branchrizin-filework-pool. A probe whose cleanup is incomplete is retained untilretryCleanupstops its owner. Every error from the lookup through the launch keeps the selectedprovider_executable, the call'sartifact_pathandartifact_sha256, and what was observed of the executable. A lookup that the host refuses to inspect runs the resolved path and keeps it; an explicit selection that the lookup does not accept runs as the caller spelled it and keeps the resolved path.captured_outputgainsstdout_invalid_utf8andstderr_invalid_utf8, and reports a nullexit_codewhen output was not fully collected, for every tool that usesexecFileFailureCapturedOutput.processesoption,{ lookup, runOwned }, so a fake runner goes throughmain's owned supervisor and its output capture and never resolves the provider through the hostPATH. The tool description anddocs/reverse-engineering-tools.mddescribe the probe, its diagnostics and its limits, anddocs/process-capture.mdstates capture's rule. objdump is unchanged.Contribution scope: one additional
-vlaunch of the caller-selected executable per call; no new tools or inputs.Contract and boundary impact
src/rizin/RizinCommand.tsreads the banner;ReverseEngineeringServiceruns each call's probe;src/process/ExecutableLookup.tsownsPATHlookup and its interruption.provider.nameandprovider.versioncarry observed values; five parameters are added, andprovider_version_probewhen no usable banner was read.captured_outputgains two optional markers, and itsexit_codeis null instead of the runner's number when output was not fully collected. Evidence and launch failures can also carryexecutable_lookup_candidate,executable_lookup_candidate_sha256,executable_lookup_codeandexecutable_lookup_outcome. The tool description changes; no input changes. Process capture rejects some scenarios it accepted before.Expected effects:
Evidence and regression coverage
Public MCP (
tests/boundary/mcp/reverseEngineeringProviderEnvironmentMcp.test.ts): a fakerizinonPATHanswers-v; the test checks the provider name and version, the new parameters and the radare2 limitation. Launch failures after a real probe, a realE2BIGand anENOENT, keep the provider, the selected executable, the target's path and digest, and the executable's observations.The service with the real lookup and digest (
tests/boundary/filesystem/reverseEngineeringToolIdentity.test.ts): banner forms (the real Rizin 0.9.1 and radare2 6.1.8 banners, cut, padded, unrecognized and invalid UTF-8); a probe per call, including a launcher whose tool changes; failed, timed-out, cancelled and cleanup-incomplete probes; the lookup's stop rule (symbolic link loop, I/O error,ESTALE, long entries and components); stalled lookups and hashes ended by the deadline and by cancellation, and a stalled check shared by later calls; a found file that does not start, with real scripts whose interpreter is missing (ENOENT) or not executable (EACCES), and withESTALEandENODEV; an explicit selection that does not start; a relative selection that the host refuses to inspect, that lacks execute permission, or whose absolute spelling is too long.A removed working directory (
tests/process-global/reverseEngineeringToolIdentityWorkingDirectory.test.ts, in isolated forks).Composition:
digestFilewith a stream that never opens ends at its deadline and on cancellation; a hash ends at its deadline on a stalled open, read or close, and a later hash of the path starts its own read; a call gives back its place at its deadline while astatit gave up on has not returned; real-process cancellation during the probe and during the command; invalid-UTF-8 markers on failed and cancelled commands;ExecFileOutput's nullexit_code.Each regression test failed on the code before its fix.
Applicable lifecycle regressions: cancellation in each stage (lookup, hash, probe, command), a stalled lookup and hash past the deadline, mixed outcomes (the probe fails, the command runs), and cleanup failure retained and retried.
Real CLI output at 3badf82 (Rizin 0.9.1 from Homebrew, macOS arm64,
REA_RIZIN_COMMANDunset,rea execute-rizin-command <copy of /bin/ls> 'i~^arch' --json). The digest matchesshasum -a 256of the file that/opt/homebrew/bin/rizinlinks to, and no tool-identity limitation is added:Real CLI output at 3badf82 (radare2 6.1.8, macOS arm64,
REA_RIZIN_COMMAND=r2):Remaining proof gaps: real Rizin ran as Homebrew's 0.9.1 on macOS arm64 and, for the focused tests on
5e1c957fc, as the static 0.7.4 build on Linux x64; other versions and Windows were not run. A file replaced between REA's check and the launch is not detected; the docs state this, as they do for artifact digests. A stalledstat,access, open, read or close cannot be cancelled and holds a libuv worker until the mount answers. REA does not track or bound that work, so repeated calls on a stuck path can fill libuv's pool, which also serves REA's other file, DNS and compression calls; [Design] Who should own file-system work that a stuck mount holds? #8860 covers this. No stall test uses a real stuck thread or mount. A process with stuck work cannot exit, even throughprocess.exit(), because Node joins its pool threads at exit; this was reproduced on Node 24.22.1 on macOS. An earlier commit claimed otherwise, andfafe14288reverts it. A relative target path still needs the working directory, as before this PR.For evidence-bearing changes:
Validation performed
Run locally on macOS (Darwin 25.5.0, arm64) with Node 24.22.1.
8e6ce755e.c0cd6e653mergesmain39ccb1d3b(15 conflicts), and8e6ce755emergesmaindff9b479ecleanly. The merge moves this PR ontomain's owners: fakes run only through the owned supervisor (runOwned),main'sAnalysisCleanupReleaseand launch-failure classifier replace the older code, cancellations usecancelledBy, timeout guidance comes fromnativeDeadlineRecoverywith this PR's executable-identification phase added, andutf8HeadExcerptreplaces the deletedboundedUtf8Text. A launch failure'sdiagnostics.commandnow names the absolute path REA started, asmain's classifier records it;provider_executablestill records the selection. Follow-ups:2b407438cparses an ownership-preparation failure once before mapping it, asmain's classifier lint requires;412ceae05updates the tests forPATHentries on candidates and the launched path;5e1c957fctakes the host platform of a lookup from its caller, asmain's ambient-platform guard requires;87632b0bfregisters the renamed Rizin cancellation test withmain's lifecycle coverage registry (CI's one source-test failure on5e1c957fc);e2fe42a2echecks the facts a post-run digest deadline names (command_timeout_ms,1500,ETIMEDOUT) instead of its wording.5e1c957fc:npm run check:fast,build:cachedanddocs:checkpassed;npm run test:focusedover 45 files passed 706 tests, 15 skipped, 1 failed: the real-Rizinaxffjcase oftests/acceptance/rizinCommandRejection.test.ts, which this PR does not change and which reportscompleteinstead ofrejectedon Rizin 0.7.4. One2fe42a2e: the same three checks passed, and the two changed test files passed (77 tests). On8e6ce755e: the same checks andverify-advertised-schemaspassed;npm run test:focusedover 225 files passed 4,990 tests, 75 skipped, 5 failed, all Kuna cleanup-retry cases that fail only as root because root ignores thechmodthey rely on.c11d6db57containse2fe42a2e; its fullnpm run check:prpassed as a non-root user on Linux x64, including all 55,198 tests, the Kuna cases among them.e2fe42a2e: 31 checks passed, including every test shard. Only "Reverse tools quality" failed, with the summary check that reports it: its Stryker TypeScript checker rejectssrc/server/EvidenceMcpServerCore.ts(TS7022 and TS7024 onadapterandcatalog), whichmain'sfd40fd9abchanged and this PR does not touch;mainfixed it in7a2e8da49. CI passed on8e6ce755e: 33 checks passed, 21 skipped, none failed, including "Reverse tools quality".f22a45b96, which removes the sharedFileWorkpool at a maintainer's request:npm run check:fast,format:check,docs:checkandnpx knippassed, and the 12 test files this PR changes passed (277 tests). Two new tests replace the pool's: a call gives back its place at its deadline while astatit gave up on has not returned, and a hash ends at its deadline on a stalled open, read or close while a later hash of the path starts its own read.5231c117b, which mergesmain55ee36809. feat(rizin): select the decoder and map address for one-shot commands #8991 landed first, so the merge keeps both PRs' changes to theRizinCommand.jsimport and theexecute_rizin_commanddescription, and the Rizin command port carries bothlimitationsandversionProbe.npm run check:fast,format:check,docs:checkandnpx knippassed, and 16 test files, this PR's and feat(rizin): select the decoder and map address for one-shot commands #8991's, passed (310 tests).RizinDecoderInputs.test.tsran against real Rizin 0.9.1. CI passed on this head.dac4d25a3, which mergesmainabdbaa544: fix(rizin): report the output cap instead of a provider signal #9033 addedREVERSE_COMMAND_OUTPUT_LIMITATIONto the imports of two test files that this PR also changed, and the merge keeps both sides. The same four checks and 14 test files passed (296 passed, 8 skipped).630610d30, after6a4b3a66cmergedmain92f332652:npm run check:fast,format:check,docs:checkandnpx knippassed, and the 13 test files this PR changes passed (293 tests). A Darwin ownership inspection failure is now reported as a process failure that keeps captured output. The three new tests inreverseEngineeringToolIdentity.test.tsinject that failure and fail without the fix; no real macOS failure was observed. CI passed on this head.34aacb819, which moved stalled file work to theFileWorkpool thatf22a45b96removes:npm run check:fastand the three reverse-engineering composition test files passed (127 tests). Onaa208d3a2, one test-only commit earlier,docs:checkand the 21 test files that reach the service, the lookup, capture's executable resolution orFileWorkpassed (691 tests). Those composition and capture files also passed withUV_THREADPOOL_SIZEat 1, 2 and 8 on43e5552e3. Removing the budget's reservation fails three tests. A script that interrupts 100,000 waiters on one stalled path retained 206.7 MiB of heap before the removable waiters and 2.5 MiB after.d68c106b9:df9b323demerges upstreammainc3647ade1, whose one conflict was fix(objdump)!: preserve unknown executable identity #8824's new wording for an executable REA does not identify; this branch's per-call template now uses it, so objdump's text matchesmain. Nine later commits address review rounds, and each new test fails on its parent.npm run check:fast(withverify:module-boundaries),oxfmt --checkon the touched files,docs:checkandnpx knip(no findings) passed.npm run test:focusedover the 68 test files that reach the service, the lookup or process capture passed (1,155 passed, 1 skipped) except two tests this PR does not touch:processCaptureProgress.test.ts"reports startup cleanup coverage when temporary storage is unavailable", which fails the same way onmainc3647ade1on this Mac, andghidraJavaDoctor.test.ts"doctor returns its own deadline result for a SIGTERM-resistant selected Java command", which timed out in the parallel run and passed alone. Real Rizin 0.9.1 through the built CLI:rea execute-rizin-command <copy of /bin/ls> 'i~^arch' --jsonidentified it from its banner, with the path/opt/homebrew/bin/rizinand its SHA-256.b79558736, which changes only the cleanup of two stalled-open tests on9fe7ec5ac:npm run check:fastandformat:checkpassed, andtests/composition/reverseEngineering.test.tspassed (33 tests); a deliberately failed assertion in the open-gate test is reported as itself, without a hang.9fe7ec5ac:npm run check:fast(withverify:module-boundaries),format:check,docs:check,verify:test-discovery(2,943 files) andlint:typedpassed.npm run test:focusedpassed over 59 files: the 32 that reach the service, the lookup, the Rizin or objdump command or process capture, and 27 upstream tests that touch Rizin, objdump, provider identities, the capability catalog or import boundaries (1,373 passed; 82 skipped in tool-gated upstream tests, one file skipped whole). The 3 tests added in this round failed on0194b09e8, as the 5 added in the round before failed onc4abdf2b2.npx knipreports onlyDarwinHelperCache, as onmain. CI: run 41292282424.0194b09e8(run 41290606778).c4abdf2b2: the 14 test files of the shared projection's other callers passed (386 passed, 1 skipped); the projection has not changed since. Real Rizin 0.9.1 (Homebrew 0.9.1_2) through the built CLI:rea execute-rizin-command /bin/ls iIidentified it from its banner, with its path, SHA-256 and the timing limitation.8cc09b63eanda6cb0974f(merges of upstreammain6e9ee97 and 317bf3f, and a fix on one). Through one MCP server at8cc09b63e, real Rizin 0.9.1 rani~^arch, and a 2 MiB command then failed to start with a realE2BIG; the error kept the provider, path, SHA-256 and banner.npm run check:pr(it passed on the fork's integration branch, which containse2fe42a2e);verify:test-temp-hygiene.Compatibility, safety, and release
PATHsearch meets, before the match, an error other than a missing file, a non-directory or a denied directory, such asESTALE,ELOOPorEIO, is rejected with the candidates checked, because a native search can stop there;main's capture moved past every error. Migration: select the executable by path, or remove the failing entry from the scenario'sPATH.-vprobe and then the command, because a launcher's digest cannot vouch for the tool it runs. On this Mac (Homebrew Rizin 0.9.1, medians of 10 warm runs) the probe costs about 180 ms through the owned-process runner (183.2 ms; the cheapest command,i~^arch, takes 170.9 ms), of whichrizin -vitself takes about 15 ms. From the runner's code, not instrumented, the rest is process supervision: output-close polling and ownership-checked cleanup. Running the probe beside the command could hide most of it, but adds two-process lifecycle cases, so it is left for later.Squash commit message. GitHub's default squash body would join this branch's commit messages, which describe intermediate steps. Please squash with this message instead:
Author readiness
Human owner: @Entrpi
Before merge
type(scope): outcome.