diff --git a/docs/reverse-engineering-tools.md b/docs/reverse-engineering-tools.md index 1c68091910..345166cda6 100644 --- a/docs/reverse-engineering-tools.md +++ b/docs/reverse-engineering-tools.md @@ -126,7 +126,8 @@ that answers. Each call therefore launches the executable twice, the probe and then the command. If the command then fails to start, for example with `E2BIG` because its arguments exceed the host's launch limit, the call returns no Evidence; the error's `details.diagnostics` keep `provider`, the tool and -version, and the `provider_*` parameters above. A probe that is cancelled, or +version, the selected `provider_executable`, and the `provider_*` parameters +above. A probe that is cancelled, or whose cleanup is incomplete, keeps the executable path and SHA-256 there; a hash that is cancelled or reaches the deadline keeps the executable path; and a lookup that is cancelled or reaches the deadline keeps the path it was checking, as diff --git a/src/application/reverse/ReverseEngineeringService.ts b/src/application/reverse/ReverseEngineeringService.ts index 06769bc7d0..49f97725bc 100644 --- a/src/application/reverse/ReverseEngineeringService.ts +++ b/src/application/reverse/ReverseEngineeringService.ts @@ -694,10 +694,12 @@ export class ReverseEngineeringService { } if (earlyFailure !== undefined) { // Without command output there is no Evidence to carry what the lookup, - // hash and probe observed, so the failure keeps it. + // hash and probe observed, so the failure keeps it beside the + // executable the caller selected. if (identification.observed) earlyFailure.retainDiagnostics({ provider: identification.identity, + provider_executable: command, ...identification.parameters, }); return err(this.#registerCleanupFailure(earlyFailure, cleanupOwner)); diff --git a/tests/boundary/mcp/reverseEngineeringProviderEnvironmentMcp.test.ts b/tests/boundary/mcp/reverseEngineeringProviderEnvironmentMcp.test.ts index 17ec2fdb5c..155105520e 100644 --- a/tests/boundary/mcp/reverseEngineeringProviderEnvironmentMcp.test.ts +++ b/tests/boundary/mcp/reverseEngineeringProviderEnvironmentMcp.test.ts @@ -203,6 +203,7 @@ it("keeps the probe's identification when the command then fails to start", asyn details: { diagnostics: { ...scenario.diagnostics, + provider_executable: "rizin", provider_executable_path: executable, provider_executable_sha256: digest, provider_version_banner: scenario.banner,