Problem
Some test paths consume substantial time and machine resources because they repeat setup work beyond what their assertions require:
- Repeated Node subprocess startup in CLI and headless CLI tests.
- Oversized fixtures that exceed a boundary by a large margin.
- Repeated Electron launches with the same seeded state.
- Fixed multi-second waits where an observable completion signal exists.
- Repeated race rounds that amplify confidence but do not add a new contract.
The problem is not that these tests are slow. Real Git, SQLite, process, recovery, UDS, Harbor, and Electron boundaries are inherently expensive and often valuable.
The problem is paying the same cost repeatedly without gaining a distinct failure signal.
Goal
Reduce test wall time and peak resource pressure without weakening meaningful boundary coverage.
Apply two rules:
- Preserve every distinct behavior and real-system boundary.
- Remove work until removing more would lose a distinct failure signal.
Work
Non-goals
- Deleting tests solely because they are slow.
- Replacing real boundary tests with mocks.
- Removing distinct crash, recovery, Git, UDS, PTY, Harbor, or IPC semantics.
- Adding a new test scheduler before redundant work has been removed.
Acceptance criteria
Each PR must:
- Name the distinct contract that remains covered.
- Provide comparable before/after timing.
- Preserve representative real-boundary coverage.
- Pass the affected workspace tests.
Stop when the remaining expensive tests each protect a distinct boundary or failure mode.
Problem
Some test paths consume substantial time and machine resources because they repeat setup work beyond what their assertions require:
The problem is not that these tests are slow. Real Git, SQLite, process, recovery, UDS, Harbor, and Electron boundaries are inherently expensive and often valuable.
The problem is paying the same cost repeatedly without gaining a distinct failure signal.
Goal
Reduce test wall time and peak resource pressure without weakening meaningful boundary coverage.
Apply two rules:
Work
Non-goals
Acceptance criteria
Each PR must:
Stop when the remaining expensive tests each protect a distinct boundary or failure mode.