8000 D3842 — A newer box-state format is refused before any write, with a message that names the next step, and min shows it on the host · Issue #3843 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

D3842 — A newer box-state format is refused before any write, with a message that names the next step, and min shows it on the host #3843

Done

Description

@agent-137

Task

Source: #3842

Plan block
### D3842 — A newer box-state format is refused before any write, with a message that names the next step, and min shows it on the host
  kind: task
  size: M
  est: 180 code, 160 tests
  executor: agent
  origin: bug
  layers:
    - boxes:
      - crates/boxes/src/store.rs: DiskLoader::new reads and checks index.json before create_dir_all, tighten_store_modes, self_heal and flush. read_index returns the pinned refusal text with the state dir, through a public constant or typed error
      test: cargo test -p boxes store_refuses_a_newer_format_and_changes_nothing
      test: cargo test -p boxes refusal
    - guest:
      - crates/minimald/src/guest.rs: adds state_refused_beacon and emit_state_refused_marker, with the same 512-byte cap and one-line flattening as mount_failed_beacon
      - crates/minimald/src/main.rs: in the vsock microVM, a store refusal at startup emits STATE_REFUSED and parks, and never sends READY. A native daemon exits non-zero with the refusal text
      test: cargo test -p minimald state_refused_beacon_is_two_lines_flattened_and_capped
    - host:
      - crates/minvmd/src/cmd/mod.rs: adds BootBeacon::StateRefused, parses STATE_REFUSED in read_ready_beacon, and adds an error builder that appends the data volume path
      - crates/minvmd/src/cmd/run.rs: fails the boot with the StateRefused reason and does not touch the volume. detach_failure_message carries the refusal in place of the generic supervisor text
      - crates/minvmd/src/cmd/boot.rs: handles BootBeacon::StateRefused: kills the child, keeps the volume, and returns the refusal error
      - crates/minimal/src/autospawn.rs: boot_failure_error prints the state refusal text as the error, with no retry advice, for the VM and the native minimald
      - docs/specs/08-spec-vm-ext4-volume/08-spec-vm-ext4-volume.md: records the STATE_REFUSED beacon beside MOUNT_FAILED
      test: cargo test -p minvmd read_ready_beacon_parses_state_refused
      test: cargo test -p minimal boot_failure_error_for_a_state_refusal
  proof: A 0.8 min that meets sessions/index.json with format_version 2 prints the pinned refusal text with the state dir, exits non-zero, and the state tree stays byte-identical with the same modes.

Activity

  1. agent-137 commented on Nov 27, 2026

    @agent-137
    MemberAuthor

    /implement

  2. minimal-foundry commented on Nov 27, 2026

    @minimal-foundry
    Contributor

    Pull request #3850 is open for D3842.

    branch agent/3843-a-newer-box-state-format-is-refused-before-any-w

    test exit tail
    cargo test -p boxes store_refuses_a_newer_format_and_changes_nothing 0 running 1 test test store::tests::store_refuses_a_newer_format_and_changes_nothing ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 630 filtered out; finished in 0.00s running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 15 filtered out; finished in 0.00
    cargo test -p boxes refusal 0 running 7 tests test core::bep::tests::bep_refusals_name_the_minimal_toml_table_or_the_source ... ok test core::bep::tests::bep_refusals_name_the_minimal_toml_table ... ok test core::bep::tests::dns_steering_is_admitted_with_the_resolver_and_no_interim_refusal ... ok test core::bep::tests::bep_refu
    cargo test -p minimald state_refused_beacon_is_two_lines_flattened_and_capped 0 t; finished in 0.00s running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out; finished in 0.00s running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s warning: unknown fields in task runtime-implement-te
    cargo test -p minvmd read_ready_beacon_parses_state_refused 0
    cargo test -p minimal boot_failure_error_for_a_state_refusal 101 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt

    Verify min task run agent-verify: exit 101 — the sandbox ran rustc (1.100.0), the repository pins 1.99.1 in rust-toolchain.toml; a failure here may be the newer toolchain's, not this change's Checking check v0.0.1 (/workbench/crates/check) Checking orchestrator v0.0.1 (/workbench/crates/orchestrator) Checking mctx v0.0.1 (/workben

    Updated 2026-11-27T18:51:25.370Z.

  3. agent-137 commented on Nov 27, 2026

    @agent-137
    MemberAuthor

    Note for the gate: the triaged layers include docs/specs/08-spec-vm-ext4-volume/08-spec-vm-ext4-volume.md, which records the new STATE_REFUSED boot beacon beside MOUNT_FAILE 519E D. The PR should name that spec line in its body so the reviewer reads it.

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