8000 test(minimal): prove an exited task box reads back through min box list, show and events (T11 CLI half) · Issue #3089 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

test(minimal): prove an exited task box reads back through min box list, show and events (T11 CLI half) #3089

Open

Description

@agent-137

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.rs task_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.

Refs #2407, #3085.


This is a residual of epic #2236 (BOX).

Activity

  1. minimal-foundry commented on Nov 6, 2026

    @minimal-foundry
    Contributor

    Refused: body is not a rendered task or spike (no <!-- plan:v1 ... --> marker and ## Task/## Spike on line 3).

    epic #2236

    Updated 2026-11-06T05:25:24.085Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:nice-to-haveNice to have. Applied by the inbox-route classifier or a human.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0