Repository navigation
Description
Task
| slice | size | difficulty | model | who | estimated lines |
|---|---|---|---|---|---|
| Inspect specs and types | S | routine | light | an agent | 80 (30 code, 50 tests) |
Bare
min initwrites an entry-shapedminimal.toml:[defaults.session],[defaults.task]and a[boxes.dev]entry withtype = "session".
Covers:
- BCLI-017
Why now: T20 (#2962) shipped the entry-shape scaffold switched off (INIT_ENTRY_SHAPE = false), because it read box creation as not yet reading [defaults.<type>]. That residual is stale. On main, mfile's legacy::settle (crates/mfile/src/legacy.rs) reads [defaults.session] into the session and [defaults.task] into the defaults, and has since T17 (#3105). A manual test on 0.8.0-dev.429.g620a1ce5 confirmed it: a file with [defaults.session] packages = ["base","vim"] and [boxes.dev] type = "session" activated with exit 0, with vim in the box. The owner decided on 2026-11-09 to switch the scaffold on now. It waits on #3188, so that a new file does not print the false "unknown fields: boxes" warning.
Layers:
- client:
- crates/minimal/src/cmd/project.rs:
cmd_initandoffer_mfile_scaffoldalways write the entry shape. RemoveINIT_ENTRY_SHAPEand theentry_shapeparameter ofrun_init_flow, and remove the interim comments that name T16 — Fold the layers into one expanded spec, the same bytes every run #2410 and T21 — One minimal.toml for every box, end to end #2418. - crates/minimal/src/tests.rs: the in-process minimald test harness gains this layer's tests
cargo nextest run -p minimal init_scaffolds_entry_shape
- crates/minimal/src/cmd/project.rs:
Waits on:
Plan block
### T37 — Bare min init writes the entry shape
slice: S5
kind: task
covers: BCLI-017
size: S
est: 30 code, 50 tests
executor: agent
difficulty: routine
model: light
diagnostics: bare `min init` writes a `minimal.toml` with `[defaults.session]`, `[defaults.task]` and `[boxes.dev]` (`type = "session"`), and mfile reads it without an unknown-field warning, pinned by init_scaffolds_entry_shape
observability: the command's existing tracing span records the verb, `shape = "entry"`, the entry `dev`, and the outcome
layers:
- client:
- crates/minimal/src/cmd/project.rs: `cmd_init` and `offer_mfile_scaffold` always write the entry shape; remove `INIT_ENTRY_SHAPE`, the `entry_shape` parameter of `run_init_flow`, and the interim comments
- crates/minimal/src/tests.rs: the in-process minimald test harness gains this layer's tests
test: cargo nextest run -p minimal init_scaffolds_entry_shape
produces: none
consumes: none
proof: bare `min init` writes an entry-shaped `minimal.toml` (it replaces `init_no_flags_writes_legacy_shape`, which pinned the legacy shape), the file loads through mfile with no unknown-field warning, and `min session start` on it gets the `[defaults.session]` packages.
depends on:
- blocked by #3188
Activity
minimal-foundry commentedon Nov 9, 2026
Done. #3202 merged.
branch
agent/3193-bare-min-init-writes-the-entry-shape· epic #2879 · PR #320248d3e6323c34368c742838d13d93b1c4d9846421816bde2169a706ffbbb70bce9783988dUpdated 2026-11-11T23:22:10.654Z.