8000 fix(minimald): a box created with file_imports, github_imports or otel cannot resume · Issue #4078 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimald): a box created with file_imports, github_imports or otel cannot resume #4078

Backlog

Description

@agent-137

What happens

minimald accepts a create whose received spec carries [[file_imports]], [[github_imports]] or [otel]. It warns about the section once and stores the spec as received (unenforced_sections_warn_once_each_naming_section, box_manager/tests.rs ~4073). Later, a resume or restart of that box parses the stored bytes as a typed BoxSpec (box_runtime/launcher.rs stored_spec, called from box_actor.rs checked_stored_spec). SpecDoc is deny_unknown_fields and has no field for those sections, so the resume fails with InvalidInput: "The settings it was created with cannot be read: …".

So the box is created, but it can never be resumed or restarted.

Who reaches it

Only a spec that another client sends. min never writes those sections, because the typed BoxSpec has no field for them, and #4067 refuses them in minimal.toml as not supported yet.

Expected

Create and resume should agree. Either minimald refuses those sections at create with exit 3 (consistent with #4067's not-supported-yet refusal), or SpecDoc keeps them so the stored spec reads back.

Found while working on #4067.

Activity

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