Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

docs(e2e): describe Bash job default selector coverage

Aulia Aisyah46569f99e22a
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 3344c904c..be770cefe 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -20388,14 +20388,17 @@ Scenario: E2E-REVIEW-ROUNDS (local desktop, implemented)
loop, deterministic localhost HTTP provider. No external model account.
- Sequence: start a background test, list it, wait for failure and Unicode
output tails; start a service, time out waiting, call default stop, then
- explicitly stop and wait for the same job.
+ explicitly stop and wait for the same job. The first waits include empty
+ `delegationIds`, `mode: all/any`, and `minCompleted: 1`; explicit stop includes
+ empty `delegationIds`, matching model-generated redundant defaults.
- Expected: correct exit code and both final tails, per-stream UTF-8 limits,
cross-session list/read/stop isolation, timeout and default stop preserve Bash,
explicit stop reaches terminal state, repeated reads and desktop output agree.
Plan-mode access is rejected.
- Runtime tests cover new input/parent abort during a pending Host wait, late
Host rejection, old Host/remote capability behavior, conflicting/malformed
- delegation selectors and mixed Bash selector rejection, existing delegation
+ delegation selectors, harmless Bash defaults and conflicting/malformed Bash
+ selector rejection, existing delegation
controls and registration without a subagent catalog.
- Host tests cover pre-settled observation, repeatable output, Unicode clipping,
ownership lookup, idempotent stop and stop acknowledgement before termination.
@@ -20483,7 +20486,8 @@ isolated Host, the production runtime loop and Electron main's run coordinator.
and confirm its stopped state through TaskWait.
- Expected: reports remain readable, redundant selectors do not cause errors,
single-job mode/minCompleted are ignored, and cancellation settles the target.
- Unit tests also reject conflicting/malformed IDs and mixed Bash selectors.
+ Unit tests also reject conflicting/malformed IDs and nonempty or malformed
+ Bash selectors; harmless empty/default Bash options remain accepted.
- Specs: `03-runtime/02-agent-runtime.md`, Session job controls.
- Acceptance: wait, report re-read and running-delegate cancellation complete
through the real tool loop. Milestone: maintenance. Status: automated.