Skip to content

fix(deps): pin the plugin-vm that can actually build an iso VM - #489

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/pin-iso-engine
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/pin-iso-engine

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

main ships the omarchy installer: block with a plugin-vm that cannot build an iso VM.
The answer format landed in #485 and is currently unusable:

$ 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

#485 carried this bump as a second commit, and the squash-merge landed only the manifest:

$ git show --stat 5caaf438 | tail -2
 charly/charly.yml | 236 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 236 insertions(+)

So this is not a new dependency decision — it is the half of #485 that did not land,
restored, and re-verified against what is published now rather than what was published
then.

module from to
plugin-vm v0.2026240.2034 v0.2026242.1323
plugin-distro v0.2026242.804 v0.2026242.1131
sdk v0.2026241.2111 v0.2026242.1250
spec v0.2026242.753 v0.2026242.1251

Each is load-bearing for the block already in charly.yml:

How tested

task build:binary — passes its own go.work.sum drift guard (the guard that catches a
bump whose checksums were not committed):

task: [build:binary] mv bin/.charly.next bin/charly
exit=0

The resulting binary actually builds an iso VM. Against check-omarchy-iso-vm in
distro-omarchy, where the pre-bump binary failed in 761 ms with unsupported source.kind "iso":

[vm-build]  PASS after 1.317s [warnings=1 allowlisted=1]
[vm-create] PASS after 2.259s [warnings=1 allowlisted=1]

and the guest then installed itself unattended — the per-domain overlay went from a
blank qcow2 to 6,138,494,976 bytes with nothing typed.

Full charly suite, -count=1:

$ go test -count=1 ./charly/...
ok  	github.com/opencharly/charly/charly	84.511s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	26.623s

Rulebook compliance

  • R1 — RCA every anomaly. The failure was traced to the squash-merge dropping a commit,
    confirmed with git show --stat on the merged SHA, rather than assumed to be a bad pin.
  • R2 — Finish the whole cutover. All four modules move together. Bumping only plugin-vm
    would leave installer: arriving nil (plugin-distro) and the geometry template unable to
    render (sdk/spec) — three ways to look fixed and not be.
  • R3 — No duplication. Version pins only; no code.
  • R4 — No workarounds. No replace, no vendored copy, no hand-edited go.sum.
  • R5 — Delete legacy completely. N/A — nothing is replaced.
  • R6 — Git safety. git status inspected before the commit; only go.mod/go.sum
    staged. No force-push, no direct push to main.
  • R7 — Prove behavior, not compilation. The proof is an iso VM building and a guest
    installing itself, not a green build — the pre-bump binary compiled fine and still could
    not do it.
  • R8 — Preserve emitted artifacts. task build:binary's go.work.sum guard is exactly
    the emitted-artifact check for a pin bump, and it passes.
  • R9 — Binary equals source. Built with task build:binary from this worktree and
    invoked through its own bin/; no replace in the committed go.mod.
  • R10 — Fresh disposable proof. Exercised on the disposable: true
    check-omarchy-iso-vm with a freshly created domain and overlay. That bed does not yet
    complete for reasons of its own (tracked on feat(vm): omarchy-vm — the official ISO, installed unattended distro-omarchy#5), so the full R10
    gate is not claimed here — what is claimed is the specific behaviour this PR restores,
    which went from a 761 ms hard failure to a completed install.

Change classification

Change class dependency pin restoration; no source change
Verification gate task build:binary (incl. its go.work.sum guard), go test -count=1 ./charly/..., and a live vm build + vm create + unattended install that the pre-bump binary could not do
Attribution tier fully tested and validated — the restored capability was executed live end to end on a freshly created guest, and the before/after is a hard error versus a 6.1 GB installed disk

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

main ships the omarchy `installer:` block (#485) with a plugin-vm that
does not implement `source.kind: iso`. So the answer format is there and
unusable:

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

#485 carried this bump as a second commit; the squash-merge landed only
charly/charly.yml. Confirmed:

  $ git show --stat 5caaf43 | tail -2
   charly/charly.yml | 236 +++++++++++++++++++++++++++++++++++++++++++
   1 file changed, 236 insertions(+)

So this is not a new dependency decision — it is the half of #485 that
did not land, restored, and re-verified against what is published now
rather than what was published then.

  plugin-vm      v0.2026240.2034 -> v0.2026242.1323
  plugin-distro  v0.2026242.804  -> v0.2026242.1131
  sdk            v0.2026241.2111 -> v0.2026242.1250
  spec           v0.2026242.753  -> v0.2026242.1251

plugin-vm brings the iso engine (#8), the virtio answers volume (#9) and
the per-domain seed (#10). plugin-distro brings the resolver that stops
`installer:` arriving nil at every consumer (#6) — without it the block
in charly.yml is silently dropped even once the engine exists. sdk and
spec bring the seed context's disk_size_bytes and the template
arithmetic the partition geometry needs.

Verified: `task build:binary` passes its own go.work.sum drift guard, and
the resulting binary builds an iso VM — vm-build and vm-create both PASS
on check-omarchy-iso-vm, where the previous binary failed in 761 ms with
the error above.

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

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 578ab78497c9 (branch: fix/deps/pin-plugin-vm-iso)

Security screen: PASS — diff is only go.mod/go.sum version pins; no scope mismatch, no secrets, no guardrail weakening, no unexpected supply-chain change beyond the stated pins.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body complete; accounts for all 2 changed files; gate matches change class (dependency pin → fresh rebuild + live execution); *Assisted-by: Claude Code claude-opus-4-6-20260401 (fully tested and validated)* in correct form; tier justified by live end-to-end iso-VM build/install that the pre-bump binary could not do.
  • R1 — RCA given (squash-merge dropped the second commit of feat(distro): the omarchy unattended-install answer format #485), confirmed via git show --stat; no forbidden framing.
  • R2 — distro-omarchy#5 named and routed; not a vague follow-up.
  • R3/R4/R5 — pins only, no duplication, no replace/workaround, nothing replaced.
  • R6/R8/R9 — git status checked; build:binary go.work.sum guard passes; binary built from worktree, no replace.
  • R10 — disposable: true bed named; fresh rebuild; live proof of restored capability; full R10 honestly disclaimed (bed incomplete for named external reason).
  • B16 placement — placement: CORRECT (core go.mod pin; no alias/import changes).
  • B18 — no Go source changes; N/A.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 14:22
@github-actions
github-actions Bot merged commit 575b673 into main Aug 30, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/pin-iso-engine branch September 25, 2026 19:06
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