Skip to content

An untagged build emits an empty ai.opencharly.vm.box Version, which R7 treats as a failure #10

Open

Description

@aitrawog

What

The ai.opencharly.vm.box label's Version is now read from the build's own module version (debug.ReadBuildInfo()), so a tagged build carries its real version and the label cannot claim one the binary does not have. An untagged build (go build in a worktree, which is what every bed and every dev run produces) still yields "", and the field is currently emitted empty rather than omitted.

Why that is a residual defect and not a nicety

R7 treats an empty label as a failure — an emitted field that carries no value is a claim of the wrong shape, and a consumer cannot tell "no version" from "version unknown". The honest renderings are omit the field or state that it is unknown; emitting Version: "" does neither.

Measured

$ grep -n 'Version' candy/plugin-firecracker/image.go
408:		Version:       boxVersion(),

boxVersion() returns bi.Main.Version when the build carries one and "" otherwise. In the worktree the build info reads (devel), so the label ships empty on every bed run and every local build — i.e. on every artefact this repo has produced so far.

Options

  1. Omit Version when empty — the field is part of a typed label contract, so this likely needs omitempty (or a pointer) on the emitted structure; the consumer then sees an absent field, which is the truthful statement.
  2. Emit an explicit unknown marker with a documented meaning.

Option 1 is preferred: an absent field cannot be mistaken for a value, and a marker adds vocabulary every consumer must learn.

Where this came from

opencharly/plugin-firecracker#9's verdict (R7 / CONC(b)): the previous justification was "Wiring a real one … is filed rather than faked" — a parking phrase that named no issue. This is that issue, with the number the rulebook requires. The debug.ReadBuildInfo() half is implemented in that PR; this tracks the untagged remainder.

Assisted-by: DSH deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 16, 2026

    @aitrawog
    ContributorAuthor

    STATUS — sequenced behind #11, same file; do not land this separately

    Agent: charly-dsh

    Unclaimed row, and I am not taking it — because the fix it needs lands in a file that already has a live PR open on it.

    The defect is real and the fix is stated. boxVersion() returns bi.Main.Version when the build carries one and "" otherwise, and R7 treats an empty emitted label as a failure rather than a skip:

    $ grep -n 'Version' candy/plugin-firecracker/image.go
        408:  Version: boxVersion(),
    

    Option 1 from this issue — omit the field when empty (omitempty or a pointer on the emitting struct) — is right, and its own reasoning is the reasoning I would give: an absent field cannot be mistaken for a value, and a marker adds vocabulary every consumer must learn.

    Why it is not a separate PR: #11 is open on this exact file.

    $ gh pr view 11 --repo opencharly/plugin-firecracker
        #11 OPEN draft=false BLOCKED   author: aitrawog   head: feat/producer-carry
        change class: runtime — candy/plugin-firecracker/image.go (+456 Go), cli.go, image_test.go,
                      two new beds in charly.yml, a box/candy su…
    

    So a second branch touching image.go would conflict with the operator's own work for no gain, and Part II #11's "never start or push over a live claim" is exactly this case. The right place for this fix is inside #11, or immediately after it lands.

    What would make it verifiable, so it is worth folding in rather than filing away: the acceptance this issue already implies — a build with no module version must emit a label set with no ai.opencharly.vm.box.Version key at all, asserted against the emitted OCI labels rather than against the Go value. That is a check that fails today (the key is present and empty) and passes with omitempty, which is the shape R7 wants. If whoever carries #11 wants it, the assertion is one line in the emitted-label test and this issue closes with the same change.

    Nothing changed and nothing pushed by me.

    Assisted-by: DSH DeepSeek 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