Skip to content

fix(deps): charly ships omarchy-vm but pins a plugin-vm that cannot build it - #497

Merged
atrawog merged 1 commit into
mainfrom
fix/plugin-vm-iso-pin
Aug 30, 2026
Merged

atrawog merged 1 commit into
mainfrom
fix/plugin-vm-iso-pin

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

charly vm build omarchy-vm fails on main:

charly: error: command "vm": vm "omarchy-vm": unsupported source.kind "iso"
        (want one of cloud_image, bootc, bootstrap)

so charly check run check-omarchy-iso-vm dies at its first step, [vm-build], after
637ms. The bed asserts nothing, and the entity charly ships is unreachable.

Root cause

source.kind: iso is implemented in plugin-vm and landed in opencharly/plugin-vm#8,
first tagged v0.2026242.1242:

plugin-vm tag knownVmSourceKinds
v0.2026242.812 {"cloud_image", "bootc", "bootstrap"}
v0.2026242.1242 {"cloud_image", "bootc", "bootstrap", "iso"}

charly/go.mod required v0.2026242.812 — the version immediately before it.

charly#495 and #496 advanced the box/omarchy gitlink to a distro-omarchy that ships
omarchy-vm (source.kind: iso) and check-omarchy-iso-vm, but neither bumped the
plugin-vm require. charly gained the entities that need the capability without gaining
the capability.

Nothing caught it, and that is the part worth noting: the entity is data;
charly box validate checks it against the schema, which does have the iso arm (from
spec#71); and the rejection happens only at vm build time inside the plugin — a path no
unit test and no CI job exercises. This is the "partial repin" class: a gitlink advanced
while its consumer's own dependency pin stayed put, and the two disagree only at runtime.

The fix

Bump to the newest published plugin-vm, v0.2026242.1912, which also carries the
per-domain serial log (plugin-vm#15) that makes a headless guest's console readable.

go get additionally resolved sdk off a pseudo-version onto a released tag —
v0.2026242.914-0.20260830150119-f476722d55eb → v0.2026242.1217. That is a strict
improvement: an untagged-commit pin becomes a released one.

How tested

Before, on a task build:binary of main:

$ charly vm build omarchy-vm
charly: error: command "vm": vm "omarchy-vm": unsupported source.kind "iso"
        (want one of cloud_image, bootc, bootstrap)
[exit 1]

After, same command, same tree, rebuilt:

$ charly vm build omarchy-vm
Building VM "omarchy-vm" (source.kind=iso)
xorriso 1.5.8.pl02 : RockRidge filesystem manipulator, libburnia project.
Added to ISO image: file '/authorized_keys'=...
Added to ISO image: file '/user_configuration.json'=...
Added to ISO image: file '/user_credentials.json'=...
Added to ISO image: file '/user_email_address.txt'=...
Added to ISO image: file '/user_full_name.txt'=...
ISO image produced: 189 sectors
Disk .../omarchy-vm/disk.qcow2 is content-fresh
  (installer sha256=69cbb4e10d98ad831c3c9f245b5757a9d1fedfd0c9592780e977d6f950dea8c3)
Wrote .../omarchy-vm/disk.qcow2 (blank — the installer partitions it)
Wrote .../omarchy-vm/seed.iso (answers: authorized_keys, user_configuration.json,
  user_credentials.json, user_email_address.txt, user_full_name.txt)
[exit 0]

Full unit suite, uncached, complete output (not truncated):

$ cd charly && go test -count=1 ./...
ok  	github.com/opencharly/charly/charly	91.423s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	27.047s
[exit 0]

Binary build, including the tracked-checksum guard:

$ task build:binary
[exit 0]        # go.work.sum unchanged — the guard did not trip
$ ./bin/charly version
2026.242.1928

The bed the fix unblocks now reaches its assertions instead of dying at step 1.
check-omarchy-iso-vm on the rebuilt binary:

[vm-build]           PASS after 1.434s [allowlisted=1]
[vm-create]          PASS after 2.409s [allowlisted=1]
[deploy-add]         PASS after 11.122s [allowlisted=1]
[bring-up-members]   PASS after 0s
[check-live]         27 of 28 checks PASS

The one check-live failure is unrelated to this change — it is an authoring bug in
distro-omarchy's own bed (a check probing ~/.gitconfig when git resolves --global to
~/.config/git/config on this guest), fixed in that repo, not this one. Before this PR
that check could not run at all.

Rulebook compliance

  • R1 — RCA every anomaly. The failure was root-caused to a specific version boundary
    and confirmed by reading knownVmSourceKinds at both tags, not inferred from the error
    text.
  • R3 — No duplication. A version bump; nothing reimplemented.
  • R4 — No workarounds. The alternative — pinning the bed to an older entity, or
    vendoring the iso arm — would have hidden a real dependency skew. The pin is the fix.
  • R4a — Fix the product first. This is the product fix; the bed change lives in
    distro-omarchy.
  • R5 — Delete legacy completely. N/A — no legacy path removed.
  • R6 — Git safety. git status inspected; branched from a fresh origin/main; no
    force-push, no direct push to main, no hook bypass.
  • R7 — Prove the gate, not the plan. Before/after of the failing command, the complete
    uncached unit suite, and the bed steps that now run, all pasted above.
  • R9 — Binary equals source. Every result above is from a task build:binary of this
    tree.
  • R10 — Fresh disposable proof. The bed is disposable: true; its full R10 sequence is
    gated in distro-omarchy, where the remaining bed-authoring fix lands.

Change classification

Change class dependency pin bump (charly/go.mod + go.sum), no source change
Verification gate go test -count=1 ./... complete pass, task build:binary, and the previously-failing charly vm build omarchy-vm before/after on a live host
Attribution tier fully tested and validated — the changed runtime path was executed live before and after, the complete uncached unit suite passed, and the bed this unblocks advanced from dying at step 1 to 27/28 live assertions

Assisted-by: Claude Code claude-opus-4-6-20260401 (fully tested and validated)

…uild it

`charly vm build omarchy-vm` fails on main:

    charly: error: command "vm": vm "omarchy-vm": unsupported source.kind "iso"
            (want one of cloud_image, bootc, bootstrap)

and `charly check run check-omarchy-iso-vm` therefore dies at its first step,
[vm-build], after 637ms. The bed cannot assert anything.

## Root cause

`source.kind: iso` is implemented in plugin-vm and landed in opencharly/plugin-vm#8,
first tagged `v0.2026242.1242`:

    v0.2026242.812   var knownVmSourceKinds = []string{"cloud_image", "bootc", "bootstrap"}
    v0.2026242.1242  var knownVmSourceKinds = []string{"cloud_image", "bootc", "bootstrap", "iso"}

charly/go.mod required `v0.2026242.812` — the version immediately BEFORE it.

charly#495 and #496 advanced the `box/omarchy` gitlink to a distro-omarchy that
ships `omarchy-vm` (`source.kind: iso`) and `check-omarchy-iso-vm`, but neither
bumped the plugin-vm require. So charly gained the ENTITIES that need the
capability without gaining the capability. Nothing caught it: the entity is data,
`charly box validate` checks it against the schema (which has the iso arm, from
spec#71), and the rejection only happens at `vm build` time inside the plugin —
a path no unit test and no CI job exercises.

This is the "partial repin" class: a gitlink advanced while its consumer's own
dependency pin stayed put, and the two only disagree at runtime.

## The fix

Bump to the newest published plugin-vm, `v0.2026242.1912`, which also carries the
per-domain serial log (#15) that makes a headless guest's console readable.

`go get` also resolved sdk from a pseudo-version onto a released tag —
`v0.2026242.914-0.20260830150119-f476722d55eb` → `v0.2026242.1217` — which is a
strict improvement: an untagged commit pin becomes a released one.

## How tested

Before, on a `task build:binary` of main:

    $ charly vm build omarchy-vm
    charly: error: ... unsupported source.kind "iso" ...   [exit 1]

After, same command, same tree, rebuilt:

    $ charly vm build omarchy-vm
    Building VM "omarchy-vm" (source.kind=iso)
    ...
    Disk .../omarchy-vm/disk.qcow2 is content-fresh
      (installer sha256=69cbb4e10d98ad831c3c9f245b5757a9d1fedfd0c9592780e977d6f950dea8c3)
    Wrote .../omarchy-vm/disk.qcow2 (blank — the installer partitions it)
    Wrote .../omarchy-vm/seed.iso (answers: authorized_keys, user_configuration.json,
      user_credentials.json, user_email_address.txt, user_full_name.txt)
    [exit 0]

Full unit suite from the module dir, uncached, complete output:

    $ go test -count=1 ./...
    ok  github.com/opencharly/charly/charly                     91.423s
    ok  github.com/opencharly/charly/charly/internal/pluginsgen  27.047s
    [exit 0]

    $ task build:binary
    [exit 0]   (go.work.sum unchanged — the tracked-checksum guard did not trip)

Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: f0c46fad7a9b (branch: fix/deps-plugin-vm-iso)

Security screen: PASS — dependency pin bump to published opencharly tags; no scope mismatch, no secrets, no guardrail changes, no supply-chain anomaly.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: Body fully accounts for the diff (go.mod + go.sum), names the change-class gate (dependency pin bump), supplies fresh-rebuild + live before/after charly vm build omarchy-vm output, complete uncached go test -count=1 ./..., task build:binary with charly version match, and the bed steps now running. Attribution footer present in exact form; fully tested and validated justified (changed runtime path executed live, suite passed, bed advanced from dying at step 1 to 27/28).
  • R1: Root cause pinned to the version boundary (knownVmSourceKinds at both tags); check-live failure RCA'd to a distro-omarchy bed authoring bug; no forbidden framing.
  • R2: The check-live failure is routed by name to its owning repo (distro-omarchy), a genuine cross-repo bed — not a vague follow-up.
  • R3/R4/R4a/R5: Version bump only; no duplication, no workaround, product fix first, no legacy path.
  • R6/R9/R10: git status checked; every result from a task build:binary of this tree; bed is disposable: true with its R10 sequence gated in distro-omarchy (cross-repo), evidence internally consistent.
  • B16 placement: CORRECT — the iso capability lives in the plugin-vm candy; this PR only advances the pin to the published version carrying it.
  • B18: No Go source changes; go.mod/go.sum consistent (required versions present in go.sum).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@atrawog
atrawog merged commit f0226d0 into main Aug 30, 2026
3 checks passed
@atrawog
atrawog deleted the fix/plugin-vm-iso-pin branch August 30, 2026 21:08
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant