Part of #2382.
Problem
CLI, Headless CLI, and harness A/B CLI tests repeatedly start Node processes for scenarios whose semantics can be exercised through existing in-process entry points.
Real subprocess coverage remains necessary for process-level behavior, but not every scenario needs to pay that cost.
Outcome
- Test ordinary command semantics in process.
- Retain representative subprocess coverage for stdin, stdout, exit codes, signals, persistence, detached execution, and fail-closed behavior.
- Keep CLI and Headless changes in separate PRs.
- Do not change production command behavior.
Each PR must identify the retained process contracts and include comparable before/after timing.
Part of #2382.
Problem
CLI, Headless CLI, and harness A/B CLI tests repeatedly start Node processes for scenarios whose semantics can be exercised through existing in-process entry points.
Real subprocess coverage remains necessary for process-level behavior, but not every scenario needs to pay that cost.
Outcome
Each PR must identify the retained process contracts and include comparable before/after timing.