Repository navigation
Closed
Labels
kind:taskA task the plan skill rendered; the body carries ## TaskA task the plan skill rendered; the body carries ## Taskmodel:strongestThe strongest model available: unknown ground, or large work that needs careThe strongest model available: unknown ground, or large work that needs caresize:L500 to 900 net lines; one PR, and the ceiling500 to 900 net lines; one PR, and the ceiling
Description
Task
| slice | size | difficulty | model | who | estimated lines |
|---|---|---|---|---|---|
| Run tasks and wait on them | L | needs care | strongest | an agent | 660 (300 code, 360 tests) |
min task runandmin box runpass stdin and stdout through, print nothing else, and exit with the entrypoint's code.
Covers:
- BCLI-010
- BCLI-011
- BCLI-035
- BCLI-070
Layers:
- client:
- crates/minimal/src/cli.rs: the verb's arguments and help in the one command model
- crates/minimal/src/cmd/mod.rs: dispatches the verb
- crates/minimal/src/task.rs:
min task runandmin box runshare one run path that wires stdio and returns the entrypoint's code - crates/minimal/src/cmd/boxes/create.rs: requests a fresh instance for every run
- crates/minimal/src/main.rs: removes the hidden
min runthat only errored - crates/minimal/src/tests.rs: the in-process minimald test harness gains this layer's tests
cargo nextest run -p minimal run_entry_wires_stdio_and_exit_codecargo nextest run -p minimal run_detach_prints_id_closes_stdincargo nextest run -p minimal run_pty_entry_exit2_hints_start_newcargo nextest run -p minimal task_run_provided_hidden_run_removedcargo nextest run -p minimal run_style_propagates_entrypoint_exitcargo nextest run -p minimal run_and_start_new_request_fresh_instance
Waits on:
- T43 — Run a task as a task box that returns its exit code #2405
- T125 — Register each fresh host-address grant box under a name of its own creation #3048
Plan block
### T7 — Run an entry with its stdio and its exit code
slice: S2
kind: task
covers: BCLI-010, BCLI-011, BCLI-035, BCLI-070
size: L
est: 300 code, 360 tests
executor: agent
difficulty: needs care
model: strongest
diagnostics: when the entry has a terminal, `min box run` prints "<entry> runs with a terminal. Start it with min box start --new <entry>." on stderr and exits 2 before it creates anything, pinned by run_pty_entry_exit2_hints_start_new
observability: the command's existing tracing span records the verb, the box id it resolved and the outcome
layers:
- client:
- crates/minimal/src/cli.rs: the verb's arguments and help in the one command model
- crates/minimal/src/cmd/mod.rs: dispatches the verb
- crates/minimal/src/task.rs: `min task run` and `min box run` share one run path that wires stdio and returns the entrypoint's code
- crates/minimal/src/cmd/boxes/create.rs: requests a fresh instance for every run
- crates/minimal/src/main.rs: removes the hidden `min run` that only errored
- crates/minimal/src/tests.rs: the in-process minimald test harness gains this layer's tests
test: cargo nextest run -p minimal run_entry_wires_stdio_and_exit_code
test: cargo nextest run -p minimal run_detach_prints_id_closes_stdin
test: cargo nextest run -p minimal run_pty_entry_exit2_hints_start_new
test: cargo nextest run -p minimal task_run_provided_hidden_run_removed
test: cargo nextest run -p minimal run_style_propagates_entrypoint_exit
test: cargo nextest run -p minimal run_and_start_new_request_fresh_instance
produces: none
consumes: none
proof: `min task run` and `min box run` pass stdin and stdout through, print nothing else, and exit with the entrypoint's code.
depends on:
- blocked by #2405
- blocked by #3048
Reacted by minimal-foundry
Metadata
Metadata
Assignees
Labels
kind:taskA task the plan skill rendered; the body carries ## TaskA task the plan skill rendered; the body carries ## Taskmodel:strongestThe strongest model available: unknown ground, or large work that needs careThe strongest model available: unknown ground, or large work that needs caresize:L500 to 900 net lines; one PR, and the ceiling500 to 900 net lines; one PR, and the ceiling
Activity
norrietaylor commentedon Nov 5, 2026
Now blocked by #3048 (T125 in epic #1501). #3048 registers each fresh-instance host_ip grant box under its own creation key, so
min box runlands on a path where concurrent instances each get an id and the mint finds its registration after the<base>-<n>rename.minimal-foundry commentedon Nov 6, 2026
Done. #3087 merged.
branch
agent/2892-run-an-entry-with-its-stdio-and-its-exit-code· epic #2879 · PR #308793a923f06d6e7edde63439b66ae1bbd0166cb67b6c34291e9f0959ddUpdated 2026-11-09T16:39:08.592Z.