8000 T37 — Bare min init writes the entry shape · Issue #3193 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

T37 — Bare min init writes the entry shape #3193

Closed

Description

@agent-137

Task

slice size difficulty model who estimated lines
Inspect specs and types S routine light an agent 80 (30 code, 50 tests)

Bare min init writes an entry-shaped minimal.toml: [defaults.session], [defaults.task] and a [boxes.dev] entry with type = "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:

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

  1. minimal-foundry commented on Nov 9, 2026

    @minimal-foundry
    Contributor

    Done. #3202 merged.

    branch agent/3193-bare-min-init-writes-the-entry-shape · epic #2879 · PR #3202

    round outcome job
    1 pushed 48d3e632
    2 pushed 3c34368c
    3 pushed 742838d1
    3 pushed 3d93b1c4
    4 pushed d9846421
    4 failed: agent: the implement task exited 125 816bde21
    4 pushed 69a706ff
    5 changed nothing: Revise round 5: no code change. Every failed check in the directive failed in CI setup, before any build. clippy, native-daemon-e2e and minimald-root-integration exit 100 on apt-get: "Temporary failur bbb70bce
    6 changed nothing: Round 6 changed nothing on purpose. The failed checks are CI infrastructure faults, not faults in this change. In 'artifacts' and 'native-daemon-e2e', apt-get exited with code 100 on 'Temporary failur 9783988d

    Updated 2026-11-11T23:22:10.654Z.

  2. added
    needs-humanAn agent handed off; a human must act, then clear this label. Set by defer and handoffs.
    on Nov 10, 2026
  3. removed
    needs-humanAn agent handed off; a human must act, then clear this label. Set by defer and handoffs.
    on Nov 11, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0