mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[PR #6188] fix(adb): separate unresolvable paths and host capacity in adb spawn failures #7194
Open
opened 2026-11-01 21:46:02 +00:00 by bsakaguchi
·
0 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#7194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/morluto/rea/pull/6188
Author: @chordpli
Created: 10/21/2026
Status: 🔄 Open
Base:
main← Head:fix/adb-client-unusable-path📝 Commits (10+)
0d29c0bfix(adb): name unexecutable adb paths in readiness refusalsdbfe4f7Merge remote-tracking branch 'origin/main' into fix/adb-client-unusable-pathf148871fix(process): admit synchronous spawn errors as captured failuresb3838bafix(process): expose spawn failures from the capture owner6f863f6fix(process): classify spawn failures consistently across consumers3226decfix(process): report host spawn capacity as a retryable constraint62d04eddocs(adb): describe host capacity failures from device operations750aef7Merge remote-tracking branch 'origin/main' into HEAD454f017fix(adb): report exhausted host spawn capacity as runtime unavailability3a964f0fix(adb): report probe-time host capacity as a retryable constraint📊 Changes
12 files changed (+765 additions, -73 deletions)
View changed files
📝
docs/adb-device-analysis.md(+20 -4)📝
src/adb/AdbCommand.test.ts(+58 -0)📝
src/adb/AdbCommand.ts(+34 -4)📝
src/adb/AdbConfiguration.ts(+58 -24)📝
src/adb/AdbProvider.test.ts(+98 -0)📝
src/adb/AdbProvider.ts(+24 -3)📝
src/adb/AdbVersionProbe.test.ts(+86 -1)📝
src/filesystem/RegularFile.ts(+10 -1)📝
src/process/ExecFileOutput.test.ts(+79 -0)📝
src/process/ExecFileOutput.ts(+91 -35)📝
tests/boundary/cli/adbCli.test.ts(+108 -1)➕
tests/boundary/process/adbDescriptorPressure.test.ts(+99 -0)📄 Description
Summary
Follows up #5689, which
mainclosed with57e3e0b04(anEACCES/EPERMadb now names its path). No open issue tracks the two cases that remain:ENOTDIR) still reports only "The selected adb binary did not report a usable version." Node throws that spawn error synchronously, so it never reaches the adb classifier. It now reports the path as missing, likeENOENT.EAGAIN,EMFILE,ENFILE,ENOMEM) is not separated from a bad path. It now says the host could not start adb and keepsREA_ADB_PATHout of the blame.inspect_adb_clientand the device operations (at the version probe or a later adb command) report it as a retryablecapacityconstraint; thebinary_sessioninventory reportsruntime_unavailable.The remediation for
EACCESalso now distinguishesREA_ADB_PATHfrom anadbonPATH.Fixing that needed the process capture owner to say when a command never started.
execFileBytesnow marks every spawn failure, including the ones Node throws synchronously (ENOTDIR,EPERM), asspawnFailed. Only the adb readiness probe and adb commands read that fact; the DMG reader, the Darwin compiler probe and assetutil are unchanged frommain, as requested in the review.Problem and expected behavior
REA_ADB_PATH=/some/file/adb rea inspect-adb-client --json, where/some/fileis a regular file (ENOTDIR). Same result forlist-adb-devices.ENOTDIR,EPERM) were rejected fromexecFileByteswithout capture fields, soexecFileOutputFailurereturnedundefinedand no consumer could see their code.inspectAdbClientthen fell through to the genericversion_unresolvedrefusal. Host-capacity errnos had no classification and were treated as a refusal of the selected path.Change and scope
src/process/ExecFileOutput.ts(owner): admits synchronous and asynchronous spawn errno failures with the same empty capture andspawnFailed: true. Argument validation errors stay unadmitted.spawnCapacityExhaustedclassifiesEAGAIN,EMFILE,ENFILEandENOMEMnext to the fact it reads. After anEMFILEorENFILEspawn failure Node creates no stdio, so the owned stop-signal route (the one adb uses) attaches its error listener first and captures absent streams as empty; before, reading the streams threw aTypeErrorand the later spawn error went unhandled.inspectAdbClient:ENOENT,ENOTDIR,ELOOP,ENAMETOOLONG, from the filesystem owner's predicate) staybinary_missing.EACCES/EPERMand other spawn errnos staybinary_not_executable(not_configured, as onmain). The remediation now depends on whether adb came fromREA_ADB_PATHorPATH.ADB_NOT_EXECUTABLE_REMEDIATIONnow holds theREA_ADB_PATHEACCEStext, so capability discovery reports the same repair as the failure.host_capacityfailure, mapped toruntime_unavailablefor the inventory availability and to the retryablecapacityconstraint forinspect_adb_clientand the device operations. One remediation text, owned byAdbConfiguration(adbHostCapacityRemediation), says the host could not start adb and thatREA_ADB_PATHdoes not need to change; it travels as the failure'sremediation(the shapemainadopted in #8532), and the constraint'sremediation.actionuses the same function, with no copy indiagnostics.PROVIDER_REJECTION_CODESis unchanged.filesystem_error, never asexit_code. The generic fallback also names the path andpath_source.runAdbCapture: a never-started adb says so instead of claiming an exit code; host capacity is a retryablecapacityresource constraint (adbSpawnCapacityError, shared with the version probe). The exception ispush_adb_fileafteradb pushhas completed: a capacity failure startingsha256sumreturns the receipt withdevice_digest_source: "unavailable"and names the failure in its limitations, because repeating the request withoverwrite: falsewould be refused.execFileBytesconsumers. An earlier revision moved the DMG reader, the Darwin compiler probe and assetutil ontospawnFailedand gave assetutil a capacity constraint; those changes are reverted so the diff stays on the adb start-failure and capacity cases. They can follow separately if wanted.PATH, the message namesadb, not the resolved file. Resolving the firstPATHmatch would add a lookup the spawn does not use; the remediation points atPATH.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
execFileBytes/execFileOutputFailureinsrc/process/ExecFileOutput.ts; adb classification ininspectAdbClientandrunAdbCapture;adbSpawnCapacityErroris the one capacity constraint for both the version probe and later adb commands.capability_unavailable; message and remediation text change. Host capacity frominspect_adb_clientand the adb device operations becomes a retryablecapacityresource constraint; the inventory availability isruntime_unavailable. No schema change.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
The checked box covers how an existing adb launch reports a failed start. No new process is launched.
execFileBytesis shared: on a synchronous spawn throw its other callers now receive the same emptystdout/stderrcapture andspawnFailedmarker an asynchronous spawn failure carries;codeandsyscallare unchanged, and those callers read onlycode/syscalldirectly (searched, not individually tested). No other consumer readsspawnFailed.Evidence and regression coverage
tests/boundary/cli/adbCli.test.ts: directory and0644REA_ADB_PATHthroughinspect-adb-clientandlist-adb-devices, achmod 755success control, and a0644adbas the onlyPATHentry.src/process/ExecFileOutput.test.ts: synchronousENOTDIRspawn admitted with an empty capture andspawnFailedon both routes, Node'sexecFile(nostopSignal) and the ownedspawnroute (stopSignal, the one adb uses); argument validation errors stay unadmitted.src/adb/AdbVersionProbe.test.ts,src/adb/AdbCommand.test.ts:EPERM,ENOTDIRand host-capacity classification, and noexit_codefor a never-started adb. The assertions checkcode,filesystem_error,selected_binary,path_sourceand the owner'sspawnFailedmarker, not refusal wording.tests/boundary/process/adbDescriptorPressure.test.ts: realEMFILEunderulimit -n 64against the built modules. The version probe reportshost_capacitywithfilesystem_error: EMFILE, a device command reports a retryablecapacityconstraint, no unhandled error reaches stderr, and both succeed after the descriptors are released. Without the stop-signal stdio fix it fails with an unhandledspawn ... EMFILE.src/adb/AdbProvider.test.ts: host capacity at the version probe oflist_adb_devicesis a retryableresource_constraintthat keepsselected_binary,path_sourceandfilesystem_error, notcapability_unavailable(fails with theAdbProvider.tschange reverted).src/adb/AdbConfiguration.tsreverted tomain(1173c0a9d), the two new CLI tests fail (2 failed, 34 passed). Reverting thehost_capacitymapping fails the capacity readiness test. Reverting therunAdbCapturecapacity branch fails its capacity test.main1173c0a9dand head454f0177f.EPERM,EAGAINandENOMEMwere not produced; those branches are covered by tests that fake the spawn error. RealEMFILEis produced by the descriptor-pressure test. No device was attached for either run'slist-adb-devicescontrol. Windows and Linux not run.Boundary regressions covered:
filesystem_error, never asexit_code, and the empty capture is admitted only for spawn failures; argument validation errors stay unadmitted (ExecFileOutput.test.ts,AdbVersionProbe.test.ts).adbCli.test.tsand the E2E below runinspect-adb-clientandlist-adb-devicesthrough the built CLI. Gap: MCP was not exercised separately (same refusal projection), and host capacity is covered at the provider and module level, plus realEMFILEagainst the built modules (adbDescriptorPressure.test.ts), not through the CLI.Lifecycle regressions: not applicable. A failed spawn acquires no process or resource, and existing cleanup paths are unchanged.
For evidence-bearing changes:
E2E: built CLI, real adb 37.0.1
$WORKis a fresh temp directory. The0644files are copies of the real platform-tools adb. Output is reduced withjqto{code, message}for errors and a summary for successes.Only
ENOTDIRchanges the outcome. TheEACCESrows differ only in remediation wording. Controls are identical.Base (origin/main
1173c0a9d)This branch (
454f0177f,mainmerged)Validation performed
At
16b272d00(main71f680d7cmerged; macOS 26.5.2, Node 24.22.1):src/adb/AdbCommand.tsandsrc/adb/AdbCommand.test.tswithmain's adb startup-notice handling. Both sides' imports and tests are kept; the test file has no lines removed relative tomain.npm run test:focused --AdbCommand,AdbProvider,AdbVersionProbe,ExecFileOutput,tests/boundary/cli/adbCli.test.ts,adbDescriptorPressure— 6 files, 237 passed.npm run check:fast,npm run format:checkandnpm run docs:check— passed. TheStatic checksfailure ata3f2d6cafwasformat:checkonwebsite/wrangler.toml, which this PR doesn't touch;mainhas since fixed it. CI on this head is still pending.REA_ADB_PATH=/etc/passwd/adb rea inspect-adb-client --jsonreportscapability_unavailable, "The selected adb binary was not found: ..."; with the real adb (37.0.1),inspect-adb-clientsucceeds.npm run check:pr, a real device, Linux, Windows.At
8151d0a7d(main8250bf232merged; macOS 26.5.2, Node 24.22.1):c68f0dab5had reformatted 23 unrelated files. This merge restores them tomain's content, so the diff againstmainis again the 12 adb and spawn-failure files. That merge commit used--no-verifyso the hook would not reapply those changes; the pre-pushcheck:fastran.npm run test:focused --the same 8 files as below — 240 passednpm run check:fastandnpm run docs:check— passedNative package baseline (darwin arm64)failed atc68f0dab5and3b927674cwithmalformed_procargs_path_paddingduring verifier cleanup, at different stages (package install,package update).feat/owned-debugger-process-lifecyclefailed the same job with the same diagnostic atb21c2a19aand passed at its next commit. The same job passed at8151d0a7d, whose only change from3b927674cis the merge above. The cause of the two failures is unconfirmed: the ownership reader's helper path usesExecFileOutput, which this PR changes, so one pass does not exclude this PR.npm run verify:packageat3b927674candmain8250bf232: 3 of 3 rounds passed on both (macOS arm64, a different host from the CI runner). This did not reproduce the failure, and does not establish that it is unrelated.At
3b927674c(no new merge; macOS 26.5.2, Node 24.22.1):npm run test:focused --the same 8 files as below — 240 passedAdbProvider.test.tscase for a capacity failure at the digest check, with a fakedEMFILEspawn error — fails withsrc/adb/AdbProvider.tsreverted (resource_constraint,retryable: true), passes with the changenpm run check:fastandnpm run docs:check— passedoverwrite: falserequest (source-derived), a real device, a realEMFILEat this step, Linux, Windows.At
c68f0dab5(maind3ab0faf5merged; conflict inAdbConfiguration.tswith #8532 resolved by passing each repair as the failure'sremediationinstead ofdiagnostics.remediation; macOS 26.5.2, Node 24.22.1):npm run test:focused --AdbConfiguration,AdbVersionProbe,AdbCommand,AdbProvider,ExecFileOutput,adbDescriptorPressure,tests/boundary/cli/adbCli.test.ts,tests/boundary/mcp/capabilityRemediationMcp.test.ts— 8 files, 239 passednpm run check:fastandnpm run docs:check— passedREA_ADB_PATH=<regular file>/adb rea inspect-adb-client --jsonreportscapability_unavailable, "The selected adb binary was not found: ..." and theREA_ADB_PATHrepairnpm run check:pr, Linux, Windows.mainhas since moved to8250bf232; that merge is textually clean and its two commits do not touchsrc/adborsrc/process.At
02bc03d9f(main317bf3fe2merged cleanly; stop-signal stdio fix inb08e27e77; macOS 26.5.2, Node 24.22.1):npm run test:focused --adbDescriptorPressure,ExecFileOutput,AdbCommand,AdbProvider,AdbVersionProbe,tests/boundary/cli/adbCli.test.ts— 6 files, 228 passedadbDescriptorPressure.test.tswithsrc/process/ExecFileOutput.tsreverted to the previous head — fails with an unhandledspawn ... EMFILEnpm run check:fast— passednpm run format:check— passed7495a3440failed inbundleComparisonCli/bundleComparisonMcpandflutterMcp, which also failed onmaind3ecf6800;bundleComparisonCliandbundleComparisonMcppass locally after this merge (2 files, 12 passed)At
d90f12364(main18a8e71c9merged;main2b8fb387bmaderesolveAdbBinaryasynchronous and added Windows PATH resolution inAdbConfiguration.ts, no conflict with the spawn-failure classification; macOS 26.5.2, Node 24.22.1):npm run test:focused --AdbCommand,AdbProvider,AdbVersionProbe,AdbConfiguration,ExecFileOutput,tests/boundary/cli/adbCli.test.ts— 6 files, 225 passednpm run check:fast— passednpm run docs:check— passedAt
0da410cd4(merge basemaina95b83c2bunchanged; macOS 26.5.2, Node 24.22.1):npm run test:focused --AdbCommand,AdbProvider,AdbVersionProbe,ExecFileOutput,tests/boundary/cli/adbCli.test.ts— 5 files, 218 passed (the synchronous spawn-throw case now runs on both routes;inspect_adb_clientadded to the host-capacity provider test)npm run check:fast— passednpm run docs:check— passedAt
180caed03(maina95b83c2bmerged cleanly; macOS 26.5.2, Node 24.22.1):npm run test:local --AdbCommand,AdbProvider,AdbVersionProbe,ExecFileOutput— 181 passednpm run test:focused -- tests/boundary/cli/adbCli.test.ts— 36 passednpm run check:fast— passednpm run docs:check— passedAt
d1c9203fe(main365fb03e7merged;execFileByteskeepsmain'schild.stdin?.end()inside the synchronous-spawn guard; macOS 26.5.2, Node 24.22.1):npm run test:local --allsrc/adb/*.test.tsandExecFileOutput— 287 passednpm run test:focused -- tests/boundary/cli/adbCli.test.ts— 36 passednpm run check:fast— passednpm run docs:check— passedAt
06af91993(main8706068b5merged; test assertions moved to facts in9737b49e2; macOS 26.5.2, Node 24.22.1):npm run check:fast— passednpm run docs:check— passednpm run test:local --allsrc/adb/*.test.tsandExecFileOutput— 6 files, 278 passednpm run test:focused -- tests/boundary/cli/adbCli.test.ts— 36 passedmain'sExecFileOutputrefactor (startStoppableCommand) is merged; the synchronous spawn admission now wraps both theexecFileand the stoppablespawnstart and completes through the sharedcompletecallback.tests/composition/analysis-sessions/providerBinding.test.ts(1 failed) andtests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts(2 failed) fail identically on an unmodifiedmaincheckout at29ebd6740on this machine, and they were the failures in this PR's CI run at6f92e8c22(Source tests, Portable tests). This PR touches neither.At
6f92e8c22(mainfc7f042c8merged, macOS 26.5.2, Node 24.22.1):npm run check:fast— passednpm run docs:check— passednpm run test:local --allsrc/adb/*.test.ts,ExecFileOutput, assetutil (nowmain's) — 9 files, 309 passed, 1 skipped (Windows-only skip)npm run test:focused --adbCli, Darwin token reader and DMG reader boundary files (the latter two nowmain's) — 3 files, 121 passed8752d6e79:src/adb/AdbProvider.tsreverted — the probe-capacity test fails; at454f0177f:src/adb/AdbConfiguration.tsreverted tomain— the two new CLI tests fail;host_capacitymapping reverted — the capacity readiness test fails454f0177fwith adb 37.0.1; the adb classification is unchanged since, so it was not rerun. Not run: fullnpm run check:pr, Linux, Windows.Compatibility, safety, and release
Author readiness
Human owner: @chordpli
Before merge
type(scope): outcome.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.