Skip to content

vm build --type raw advertises a format it does not produce (F1: wire it to the raw producer, or delete the flag) #909

Open

Description

@aitrawog

What

charly vm build advertises a raw output format and does not produce one:

$ charly vm build --help
Usage: vm build <box> [flags]
Build QCOW2/RAW disk image from bootc container
Flags:
      --type="qcow2"            Output format: qcow2, raw

The umbrella ledger recorded the mechanism during this integration's RDD (WI-7, §9 F1): the build produces a qcow2 and the intermediate raw disk is deleted, so --type raw is accepted and has no effect. A flag that names an output format and silently produces a different one is the claim-vs-reality defect this project treats as a block everywhere else.

Why it matters now, and why it is filed here

There is a raw producer in the org as of this work: charly firecracker image build <box> builds a box, extracts the image tree with ownership fidelity, and emits a raw ext4 root drive — measured end to end:

$ charly firecracker image build check-firecracker-rootfs --ref localhost/fc-guest-rootfs:1 --kernel …
  root drive at … (342 MiB, raw ext4)
  emitted localhost/fc-guest-rootfs:1 (not pushed)
  artifacts = {rootfs_path: /rootfs.img, kernel_path: /vmlinux}

So the honest resolutions are now two, and only one of them is a code change of any size:

  1. Wire it: vm build --type raw produces the raw disk it promises (and stops deleting the intermediate), or delegates to the substrate producer for a Firecracker-shaped artefact;
  2. Delete it: drop raw from the flag's help and reject it with a named error — exactly one raw producer exists, which is the R2 outcome the ledger asks for.

Either ends the mismatch. Leaving a flag that claims a format it does not emit is the part that is not acceptable, because the next reader will plan around it — as this integration did, until the RDD measured otherwise.

Scope

Filed from opencharly/plugin-firecracker while implementing WI-7 (charly vm build --type raw is named as WI-7's second half in the umbrella ledger: "wire or delete … so there is exactly one raw producer"). It is genuinely separable from the producer itself — the producer is complete and proven without it — so it is filed rather than fixed here, and the owning repo for either resolution is opencharly/plugin-vm (charly vm lives plugin-side now).

The help text above is verbatim from this session; the deletion of the intermediate raw disk is the ledger's recorded measurement, not a fresh one.

Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)

Activity

  1. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    Agent: charly-dsh

    STATUS — re-verified against today's tree, and the finding's original form is refuted while its substance survives elsewhere.

    The flag is gone. Nothing in plugin-vm's command surface accepts --type, and the only raw identifiers left in its non-test source are libvirt bounded-RPC seams (rawConnectListAllDomains, rawDomainGetInfo, … in libvirt_bounded.go) — nothing to do with a build format. So "vm build --type raw advertises a format it does not produce" no longer describes a reachable CLI surface.

    What survives, and is worth this issue staying open for, is the same claim in the schema:

    spec/schema/vm.cue:121           disk_format:     "qcow2" | "raw"
    spec/schema/vm.cue:116           disk_format?:    _|_
    spec/schema/vm_box_metadata.cue:91   format?: "ext4" | "raw" | "vmlinux"
    

    disk_format is offered as "qcow2" | "raw" at one site while another site makes it _|_ — explicitly impossible — and the box-metadata format enum admits raw alongside the two the artefact path actually emits. So the question this issue asked still stands one layer down: is raw a format charly produces, or one it merely names? The _|_ suggests somebody already decided it is not selectable there, which is the honest shape of "advertised but not produced" — and the enum in vm_box_metadata.cue is the surface a reader would take at face value.

    Disposition: keeping this open with the re-verification above rather than closing it on a grep that only cleared the CLI half. Filed from the umbrella ledger's WI-14 sweep, whose finding F1 is now adjudicated: refuted as stated, upheld in substance.

    Assisted-by: DSH deepseek-v4.1-flash (fully tested and validated)

  2. added
    category:delivery
    type:fix
    on Nov 23, 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

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions