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:M200 to 500 net lines; one PR200 to 500 net lines; one PR
Description
Task
| slice | size | difficulty | model | who | estimated lines |
|---|---|---|---|---|---|
| Tasks leave exited boxes | M | needs care | strongest | an agent | 420 (220 code, 200 tests) |
A piped or redirected stdin reaches the task:
printf 'x\n' | min task run tgives the taskx, andcat q.sql | min task run query > out.csvworks (architecture.md line 493).
Covers:
- BOX-038
Layers:
- helper:
- crates/minimald/src/env_min_helper.sh: the in-box
min task runforwards its stdin over the minenvrunrequest and closes it at EOF - crates/minimald/src/env.rs: the minenv
runprotocol carries stdin from the helper to the task, then its EOF cargo nextest run -p minimald minenv_run_forwards_stdin_to_the_task
- crates/minimald/src/env_min_helper.sh: the in-box
- daemon:
- crates/minimald/src/exec/process.rs: the in-box task run feeds the forwarded stdin to the task's stdin pipe
cargo nextest run -p minimald task_run_pipes_stdin_through_the_in_box_helper
- e2e:
- scripts/session-e2e.sh: a task-run step pipes stdin and checks the task read it, and that stdout is the task's alone
- crates/minimal/src/cli.rs:
min task run --helpsays a piped or redirected stdin goes to the task
Waits on:
Plan block
### T123 — A piped stdin reaches a task box's task
slice: S2
kind: task
covers: BOX-038
size: M
est: 220 code, 200 tests
executor: agent
difficulty: needs care
model: strongest
diagnostics: a stdin that cannot be forwarded fails the run naming why, never a task that silently reads nothing
observability: the task_run span records whether stdin was forwarded
layers:
- helper:
- crates/minimald/src/env_min_helper.sh: the in-box min task run forwards its stdin over the minenv run request and closes it at EOF
- crates/minimald/src/env.rs: the minenv run protocol carries stdin from the helper to the task, then its EOF
test: cargo nextest run -p minimald minenv_run_forwards_stdin_to_the_task
- daemon:
- crates/minimald/src/exec/process.rs: the in-box task run feeds the forwarded stdin to the task's stdin pipe
test: cargo nextest run -p minimald task_run_pipes_stdin_through_the_in_box_helper
- e2e:
- scripts/session-e2e.sh: a task-run step pipes stdin and checks the task read it, and stdout is the task's alone
- crates/minimal/src/cli.rs: min task run --help says a piped or redirected stdin goes to the task
produces: none
consumes: none
proof: A piped or redirected stdin reaches the task, so cat q.sql | min task run query > out.csv works.
depends on:
- blocked by #2405
Split from T43 (#2405, PR #2999) by the maintainer (2026-11-05). T43 gives the task box's entrypoint three pipes, but the entrypoint is the in-box helper min task run <task>, and it sends a run request over /run/minenv_sock without forwarding its own stdin. So the task reads nothing. Repro: printf 'piped-in\n' | min task run t with t = "read line; echo got:$line" prints got:.
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:M200 to 500 net lines; one PR200 to 500 net lines; one PR
Activity
minimal-foundry commentedon Nov 6, 2026
Done. #3086 merged.
branch
agent/3055-a-piped-stdin-reaches-a-task-box-s-task· epic #2236 · PR #30861d135aaef834c1a7Updated 2026-11-07T00:12:19.630Z.