Skip to content

feat: the rootfs producer (charly firecracker image build <box>) and the guest-boot proof it enables (ledger WI-7) #1

Open

Description

@aitrawog

What

The rootfs producer — charly firecracker image build <box>: build a box, extract the OCI image as root (ownership fidelity), mke2fs -d it into a root drive, and emit the artefact through the SDK's microVM emitter — plus the launch proof that needs it.

Why it is the next slice

The API client, the lease record and launch/status/stop all exist, and the bed proves the client against the REAL VMM binary by writing a whole lease into it and reading the documents back. What no bed can prove yet is a booted guest, because that needs a root drive that is a real filesystem: the probe deliberately configures a drive without starting the instance, and a scratch mke2fs volume with no init panics the kernel and takes the VMM with it — a failure the liveness gate correctly reports, not a proof.

Scope

  1. charly firecracker image build <box> — the producer, as the umbrella ledger's WI-7 defines it: build the box, extract the image as root so ownership survives, produce the root drive with mke2fs -t ext4 -d <tree> (no loop device, no device mapper), and emit it through the SDK's EmitVmBoxMicroVM path with its labelled metadata.
  2. The launch proof: a bed that boots that produced image, waits for a probe rather than a socket file, and asserts an observable from inside the guest (its console output, or a marker its init writes).
  3. Ownership is the point of extracting as root: a wrong-ownership drive boots into a broken guest — systemd, sshd and login all depend on it — so the bed asserts ownership of named paths, not merely that files exist.

Depends on

The artefact emitter (opencharly/sdk, WI-3, landed) and the host layer (opencharly/layer-firecracker, landed) for the kernel and the VMM. The guest-side proof is opencharly/layer-firecracker#4, which is the same boot seen from the layer's bed.

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

Activity

  1. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — PR open for the artefact producer (WI-7).

    Head: 6c41c03 on feat/rootfs-producer → #4

    Done: charly firecracker image build <box> builds the box, extracts its image tree with ownership
    fidelity, formats a raw ext4 root drive, and emits one microVM box image (root drive at /rootfs.img,
    kernel at /vmlinux, label contract filled). Measured end to end on the pushed commit:

    root drive at …/rootfs.ext4 (342 MiB, raw ext4)
    emitted localhost/fc-guest-rootfs:1 (not pushed)
    artifacts = {rootfs_path: /rootfs.img, kernel_path: /vmlinux}
    

    Gate: charly check run check-firecracker-host — PASS (steps=15), a disposable: true VM bed, zero
    warnings, on the committed tree.

    Next: the reviewer/validator verdict on #4; then the bed that proves the producer in a disposable
    target (subject to a measured ordering — its image needs bake_plugin at a ref whose published repo
    contains the bed's own project candies, which is the tag this merge creates); then WI-13's boot proof in a
    VM (a pod has no /dev/kvm for a nested VMM).

    Filed while landing: opencharly/charly#907 (no verb materialises an image tree), #908 (a schema-pin
    dead end between build, validate and migrate), #909 (vm build --type raw advertises a format it
    does not produce).

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

  2. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the producer is open for landing as #6 (a successor to #4, which
    policy auto-closed after five counting verdicts).

    Head 89d3ef1 on feat/producer-successor. What it delivers and what proves it is unchanged from #4:
    charly firecracker image build <box> builds a box, extracts its image tree with ownership fidelity,
    formats a raw ext4 root drive and emits one microVM box image carrying the drive and the kernel; the gate
    is charly check run check-firecracker-host — PASS (steps=15), zero warnings, on that commit — and the
    producer itself was run live on the same tree (a 426 MiB raw ext4, its label read back from the built
    image, its contents and ownership read out of the drive, and the drive BOOTED: systemd as PID 1).

    The successor additionally fixes the one finding on the closed thread: three comments that named two
    elevated steps where the code elevates four.

    Still open under this issue's scope: the bed that proves the producer inside a disposable target
    (#5, whose ordering is the tag this merge mints).

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

  3. added
    category:delivery
    type:feat
    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:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions