Repository navigation
8000
No one assignedNo labelsNo typeNo projectsNo milestoneNone yetNo branches or pull requests
Open
Description
Task
| slice | size | difficulty | model | who | estimated lines |
|---|---|---|---|---|---|
| Start, attach and resume | M | needs care | strongest | an agent | 420 (220 code, 200 tests) |
A typed session entry other than
defaultstarts, and its box stores that entry's own expanded body and lifetime, asmin box spec <entry>shows them.
Owner decision, 2026-11-16: #3204 and #3458 are one BCLI task.
- BCLI: starting a typed session entry carries that entry's body into the stored spec (T10 residual, arch C2) #3204, residual of T10 (T10 — Start a box from its entry #2898), arch ruling 1078 C2.
stamp_session_spec_as(crates/minimal/src/cmd/boxes/create.rs, about line 3529) names the typed entry, but it builds the body from the legacy[session]table throughBoxSpec::for_session.project_bep_and_grants(about line 1263) reads[session]for secrets, env and the Box Egress Proxy. Soplan_startrefuses a named typed session entry other thandefaultwithStartEntryRefusal::NamedSessionUnsupported(about lines 613-620 and 905). T21 (T21 — One minimal.toml for every box, end to end #2418) closed without this work. T129 (T129 — The daemon stores the expanded spec with each hook's declarer, and composes from it #3409) stores the expanded spec's hooks only. - mfile: a box stores until_complete even when its entry sets lifetime = "until_stopped", so restart is unreachable #3458.
BoxSpec::build(crates/mfile/src/spec.rs:259) setslifetime: Lifetime::UntilCompletefor every box. An entry withlifetime = "until_stopped"shows that value inmin box spec, but its box storesuntil_complete. Somin box restart(BOX-176) can never reach it, which blocks test-plan N28.
The fix builds the create's spec from the typed entry's expansion (session_box_expansion, through mfile::expand), as min box spec <entry> does. It removes the [session] body path for a typed entry and the interim refusal, with no fallback.
Covers:
- BCLI-029
- BCLI-071
Layers:
- mfile:
- crates/mfile/src/spec.rs:
BoxSpec::buildtakes the lifetime from the expanded spec instead of hard-codinguntil_complete; the spec tests pin both values cargo nextest run -p mfile box_spec_takes_lifetime_from_expansion
- crates/mfile/src/spec.rs:
- client:
- crates/minimal/src/cmd/boxes/create.rs:
stamp_session_spec_asbuilds the create's spec fromsession_box_expansionfor the typed entry, not from[session];project_bep_and_grantsreads that expansion for secrets, env and the Box Egress Proxy;plan_startdropsNamedSessionUnsupportedand the BCLI: starting a typed session entry carries that entry's body into the stored spec (T10 residual, arch C2) #3204 interim comments - crates/minimal/src/tests.rs: tests
cargo nextest run -p minimal start_typed_session_entry_stores_its_own_bodycargo nextest run -p minimal session_entry_until_stopped_stores_until_stopped
- crates/minimal/src/cmd/boxes/create.rs:
Waits on:
Plan block
### T53 — A typed session entry starts from its own expanded body and lifetime
slice: S3
kind: task
covers: BCLI-029, BCLI-071
size: M
est: 220 code, 200 tests
executor: agent
difficulty: needs care
model: strongest
diagnostics: none new; the `NamedSessionUnsupported` refusal is removed, and the tests that pin it move with it
observability: none new
layers:
- mfile:
- crates/mfile/src/spec.rs: `BoxSpec::build` takes the lifetime from the expanded spec instead of hard-coding `until_complete`; the spec tests pin both values
test: cargo nextest run -p mfile box_spec_takes_lifetime_from_expansion
- client:
- crates/minimal/src/cmd/boxes/create.rs: `stamp_session_spec_as` builds the create's spec from `session_box_expansion` for the typed entry, not from `[session]`; `project_bep_and_grants` reads that expansion for secrets, env and the Box Egress Proxy; `plan_start` drops `NamedSessionUnsupported` and the #3204 interim comments
- crates/minimal/src/tests.rs: tests
test: cargo nextest run -p minimal start_typed_session_entry_stores_its_own_body
test: cargo nextest run -p minimal session_entry_until_stopped_stores_until_stopped
produces: none
consumes: T129's stored expanded spec (#3409)
proof: With `[sessions.dev]` declaring its own packages, secrets and an `on_activate` hook, and `[sessions.dev.box] lifetime = "until_stopped"`, `min session start dev` and `min box start dev` both start the box. Its stored spec names `dev` and carries dev's packages, secrets, hook and `until_stopped`, matching `min box spec dev`, and `min box restart` reaches it.
depends on:
- blocked by #3409
Reacted by minimal-foundry
Metadata
Metadata
Assignees
Labels
No labels
Activity
minimal-foundry commentedon Nov 16, 2026
Refused:
consumes:carries "T129's stored expanded spec (#3409)" on its own line; its content belongs on the lines beneath it.epic #2879
Updated 2026-11-16T23:07:31.257Z.