Add offline ELF dependency, search-path, symbol-version and import inspection with retained Evidence summaries and pages. Bound GNU-hash work and preserve cancellation, stable identity and caller-selected parameters across CLI/MCP.
Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(adb): run adb commands under owned supervision and start the adb server explicitly
The adb version probe and device commands now run through runOwnedCommand
in their own process group, keeping adb's SIGTERM-first stop through the
termination policy. A device command's escaped descendants are swept with
its cleanup, and cleanup that fails stays owned by the provider, which
retries it before its next operation.
Device operations start the adb server with an explicit `adb start-server`
first. The server is an external shared service: REA may start it but never
stops it, so a device command never forks it into its own cleanup.
runOwnedCommand gains a byte-limited stdout collector: output beyond
maxStdoutBytes is an output-limit failure, like an exceeded diagnostic
budget, and the collected bytes are kept exactly for binary protocols such
as screencap. Ownership preparation that cannot start its own helper for
lack of host capacity is reported as the command's host-capacity launch
failure.
* fix(adb): preserve completed refusals, server startup facts, and lazy server start
* fix(adb): scope runtime-root command cleanup and preserve incomplete command cleanup
* fix(adb): preserve completed bugreports and staging directories across command cleanup failures
* fix(adb): preserve bugreport command cleanup across readback failures and project live cleanup resources
* test(lifecycle): cover browser-transport handshakes and cleanup retry
Close six provider lifecycle gaps: Electron CDP handshake, cleanup and retry; V8 inspector handshake; web-module-trace handshake and retry.
* test(lifecycle): assert retained cleanup finishes before the next acquisition
Hold the retried browser and Electron transport close and check that no replacement launch or connect starts until it completes. Track gated upgrade sockets in the fake CDP browser so close() destroys them.
* test(lifecycle): release held retry gates and join gated work on failure
Teardown for the resolver and Electron retry tests releases the held close and awaits the gated request even when an assertion fails while it is held.
* test(lifecycle): cover worker and tool launch, worker handshake, and decoder completion (#11512)
* test(lifecycle): cover worker and tool launch, worker handshake, and decoder completion
Close six provider lifecycle gaps: SQLite and JavaScript worker launch, JavaScript worker handshake, assetutil launch, and qlog and mitmproxy decoding through the owned decoder child.
* test(lifecycle): run the worker relaunch in a built project and check exits before close
The relaunch starts the built worker entry, so it moves to tests/boundary/javascript. The handshake tests now check that the stand-in child has exited when analyze() returns, before close() runs.
* test(lifecycle): cover in-process cancellation and PE certificate completion (#11524)
* test(lifecycle): cover in-process cancellation and PE certificate completion
Close six provider lifecycle gaps: caller cancellation for the managed, Harmony, JavaScript workflow, runtime reconciliation and V8 code cache providers, and PE certificate completion (an existing CLI/MCP regression). Two Apple application gaps remain (#11509).
* test(lifecycle): compare the whole retained V8 code cache observation
* test(javascript): hold the startup deadline clock until the stand-in worker is running
* test(javascript): restore real timers in a void teardown
* test(lifecycle): join the held Electron request on failure, refuse unmodeled Inspector commands, drop a wording assertion
* fix(apple): run assetutil under owned process supervision and retain unproven cleanup (#11586)
* fix(process): report a cancellation or deadline during refused final cleanup as that interruption
* fix(apple): prepare ownership before the assetutil deadline, keep per-stream allowances, join interrupted-cleanup tests
* fix(artifacts): classify assetutil launch failures through the shared launch owner
After #11615, owned-command launch failures are one launch-failed outcome
classified by the shared owner. The assetutil dialect keeps only its
unavailable report (launchUnavailable) and names its provider; host
capacity and E2BIG become resource constraints.
* fix(artifacts): keep a completed assetutil run's output on its cleanup-only report
When assetutil exits 0 but its process cleanup is unproven, the cleanup
error is the primary report. retainOwnedCommandCleanup now accepts the
completed run's captured output for such a caller, so CLI and MCP keep the
retained output beside the cleanup owner.
* fix(process): classify every launcher failure once by errno in the shared launch owner
* fix(process): keep the launch owner's syscall, cause and facts in RE and pwntools unavailable reports
Eleven tests were named "beyond the former ..." and pinned a value just above
a limit that no longer exists. Each now states and checks the current
contract:
- jsonShape: the caller's byte allowance is the only bound; a shape that fits
exactly is complete and one byte less is a capacity refusal.
- Hopper download: chunks arriving just inside the stall bound complete (the
trickle case already covers the total bound).
- Firmware: a selected analysis_timeout_ms above the default governs the owned
command, expressed from the default constant.
- Provider process output, CDP resources/timeline/WebMCP frames, Playwright
steps/artifacts/Electron waits, scenario diff and Bun ELF names: renamed to
the unbounded-count or exact-selection contract they check, with a note on
what bound (if any) still applies and where it is covered.
The six JavaScript analyzer tests with the same naming are left to their
workstream.
Refs #10515
* test(lifecycle): map every registered provider to its lifecycle regressions or explicit gaps
* test(lifecycle): track the web module and source-map processes and resolve test files against the repository URL
* test(lifecycle): record gaps where named tests did not exercise the claimed stage
* test(lifecycle): cover objdump cleanup and command-provider cleanup retry (#11487)
Close five provider lifecycle gaps: objdump cleanup and retry, sigrok and tshark process cleanup retry, and WABT retry (an existing literal-titled regression).