8000 minimal: no create path stores the expanded spec's file_exports, so exports are never copied (T130/T133/T134 residual) · Issue #3527 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

minimal: no create path stores the expanded spec's file_exports, so exports are never copied (T130/T133/T134 residual) #3527

Closed

Description

@agent-137

Found by pc's re-test on unstable 0.8.0-dev.607.g81832ac6 (test plan N81, N82, N85, N88). This is a residual of T130 (#3444), T134 (#3453) and T133 (#3447).

Exports are never copied. min task run build, min box run, and --detach followed by min box wait all leave nothing in the project. min box spec build shows the [[file_exports]] items. But the created box's stored spec has none, and every run warns "unknown fields in task build: file_exports". The path check works: a bad path exits 3 and creates no box.

Why. The copy reads the stored spec's file_exports (stored_export_paths in crates/minimal/src/cmd/boxes/exports.rs). No create path writes it there:

  • min task run builds the stored spec with BoxSpec::for_task (task_box_spec in crates/minimal/src/task.rs) from the legacy mfile::Task. That type has no file_exports, so the legacy task loader warns about it as an unknown field and drops it.
  • BoxSpec::build in crates/mfile/src/spec.rs, which both for_task and for_session_entry use, sets file_exports: None, even when the expanded spec has the items.

The T130 to T133 tests build the stored spec with file_exports by hand, so they pass while no real create stores it. #3502's ordered and resumed copies are therefore not reachable end to end either.

Scope:

  • BoxSpec::build copies the expanded spec's file_exports items into BoxSpec::file_exports.
  • min task run, min box run and min box start store the spec from the expansion of the entry, so file_exports reaches the record. For min task run this means the expansion, not the legacy loader. minimal: a task box gets no vars or patches from [defaults] or [defaults.task] #3266 is the same gap for vars and patches.
  • An end-to-end test creates a box through each command from a minimal.toml with one [[file_exports]] item, lets it end, and asserts the file is in the project and the record holds one file_exported event.

Related: the same legacy loader also warns "unknown fields in task ci: secrets" for [tasks.ci.secrets.GH_TOKEN] and runs the task without the secret.

Refs #2236, #2668.

Activity

  1. added
    priority:must-have
    on Nov 18, 2026
  2. agent-137 commented on Nov 18, 2026

    @agent-137
    MemberAuthor

    Triaged into task issue #3550 (D3527), from foundry's triage tool against main at ea97d74. The fix PR closes #3550; this issue closes when that lands.

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

    priority:must-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0