You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
8000
Dismiss alert
{{ message }}
Repository navigation
test(minimal): prove an exited task box reads back through min box list, show and events (T11 CLI half) #3089
Residual of BOX T11 (#2407, PR #3085), from arch condition C1 (arch_rulings 1003).
#3085 proves T11's daemon half: task_box_exits_with_code_and_output_after_client_drop in crates/minimald/src/box_runtime/tests.rs. T11's CLI half has no test yet: min box list, min box show and min box events read back a task box that exited after its client dropped.
The CLI test cannot pass with the layers as cut. The minimal crate's tests run minimald::test_harness::TestServer, where minimald compiles without cfg(test). So the box actor uses the real SandboxLauncher, and the task's entrypoint fails at launch with "session spawn: no such package: base". MockLauncher and the test session_launcher are #[cfg(test)] only: crates/minimald/src/box_runtime.rs (mod mock) and crates/minimald/src/box_actor/launcher.rs (the two session_launcher variants).
Scope:
Expose MockLauncher and the test session_launcher under minimald's test-support feature, so TestServer can run a box with the mock launcher.
Add crates/minimal/src/tests.rstask_run_dropped_client_reads_back_exited_box: a task run whose client drops mid-run leaves a box that min box list, min box show and min box events report as exited with the task's exit code, with its events readable.
Test: cargo nextest run -p minimal task_run_dropped_client_reads_back_exited_box.
Activity
minimal-foundry commentedon Nov 6, 2026
Refused: body is not a rendered task or spike (no
<!-- plan:v1 ... -->marker and## Task/## Spikeon line 3).epic #2236
Updated 2026-11-06T05:25:24.085Z.