8000 T7 — Run an entry with its stdio and its exit code · Issue #2892 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

T7 — Run an entry with its stdio and its exit code #2892

Closed

Description

@mitodrummer

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 run and min box run pass 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 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
    • cargo nextest run -p minimal run_entry_wires_stdio_and_exit_code
    • cargo nextest run -p minimal run_detach_prints_id_closes_stdin
    • cargo nextest run -p minimal run_pty_entry_exit2_hints_start_new
    • cargo nextest run -p minimal task_run_provided_hidden_run_removed
    • cargo nextest run -p minimal run_style_propagates_entrypoint_exit
    • cargo nextest run -p minimal run_and_start_new_request_fresh_instance

Waits on:

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

Activity

  1. added
    kind:taskA task the plan skill rendered; the body carries ## Task
    size:L500 to 900 net lines; one PR, and the ceiling
    model:strongestThe strongest model available: unknown ground, or large work that needs care
    on Nov 3, 2026
  2. norrietaylor commented on Nov 5, 2026

    @norrietaylor
    Member

    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 run lands on a path where concurrent instances each get an id and the mint finds its registration after the <base>-<n> rename.

  3. minimal-foundry commented on Nov 6, 2026

    @minimal-foundry
    Contributor

    Done. #3087 merged.

    branch agent/2892-run-an-entry-with-its-stdio-and-its-exit-code · epic #2879 · PR #3087

    round outcome job
    1 pushed 93a923f0
    2 pushed 6d6e7edd
    3 pushed e63439b6
    4 changed nothing: RESIDUAL (arch C1). 'min box start --new' and 'min session start --new' (BCLI-026 and the 'start --new' half of BCLI-070) are not in this PR. #2898 (T10) lands them. Until #2898 merges, the 'RunNeedsT 6ae1bbd0
    5 pushed 166cb67b
    5 pushed 6c34291e
    6 changed nothing: Revise round 6: no code change. The one thread is invalid. A daemon-level test for the case already exists. minimald's EntrypointProcess::start_kill (crates/minimald/src/exec/process.rs) releases the 9f0959dd

    Updated 2026-11-09T16:39:08.592Z.

  4. deleted a comment from agent-137 on Nov 9, 2026
  5. deleted a comment from agent-137 on Nov 9, 2026
  6. deleted a comment from agent-137 on Nov 9, 2026
  7. deleted a comment from agent-137 on Nov 9, 2026
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

    kind:taskA task the plan skill rendered; the body carries ## Taskmodel:strongestThe strongest model available: unknown ground, or large work that needs caresize:L500 to 900 net lines; one PR, and the ceiling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0