Skip to content

refactor(core)!: wave-1 core hygiene — alias dissolution (#52) + teardown robustness (#55) + loader-residue fold (#46) + gitlink bumps + P8b Tier-1 (VM disk-build → plugin-vm) - #127

Merged
atrawog merged 14 commits into
mainfrom
feat/52-alias-dissolution
Jul 16, 2026

Conversation

@atrawog

@atrawog atrawog commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Wave-1 consolidated landing

This PR is the single wave-1 vehicle: one R10 roster proves the whole batch rather
than paying the landing ceremony per member (Cutover Sizing Law). Members below are
folded in as their gates clear; each section quotes that member's own evidence
verbatim rather than re-summarizing it.

Status of each member — ALL LANDED:

This is the FINAL member set — the integrated tree is gate-green and ready for the
consolidated R10 roster.


Member: #52 — alias dissolution (original PR content)

Summary

Full inventory + classification of all 22 charly/*_aliases.go files (379 aliased symbols), cross-referenced against the not-yet-merged P16 kernel-manifest floor gate's kernelFloor/residueOwner maps (origin/feat/p16-kernel-manifest-gate:charly/kernel_manifest_floor_test.go). This PR lands the safe, zero-behavior-change slice; the rest is documented for follow-up.

  • 51 symbols deleted outright — zero consumers anywhere in charly/ (their call sites already relocated to candy/plugin-vm / candy/plugin-deploy-vm in earlier cutovers, e.g. RenderQemuArgv, ParseSSHTarget, WriteVmSshStanza — spot-checked, confirmed orphaned).
  • 55 symbols rewired — test-only consumers now reference the SDK package directly (kit.X/deploykit.X/buildkit.X/vmshared.X) across 33 _test.go files; alias bindings deleted afterward.
  • 2 stale doc-comments fixed in deploykit_aliases.go and kit_aliases.go (R1: comments listing symbols removed in the same file).
  • 179 symbols left untouched — at least one consumer is itself tracked P8b/P11/P12/P13/P14/P15 residue; dissolves naturally when that consumer's owning cutover moves it. Full per-file/per-owner pairing table handed to the orchestrator for the residue-wave briefs.
  • 94 symbols left untouched, escalated separately — touch a permanent kernel-floor file (or an as-yet-untracked new residue file). Most are pure spec.X passthroughs riding the forbidden vmshared/kit/buildkit mechanism-kit hop rather than importing sdk/spec directly; a smaller set (InstallPlan/DeployExecutor/DeployTarget/EmitOpts/…) are genuine E-envelope types currently defined in sdk/deploykit rather than sdk/spec. Both are architectural calls bigger than this cutover — not decided here.

No production runtime call path is touched: every removed/rewired symbol had either zero consumers or test-only consumers.

Test plan

  • go build ./... — clean
  • go vet ./... — clean
  • go test ./... — both packages pass (~112s)
  • gofmt -l . / golangci-lint fmt --diff — clean
  • golangci-lint run ./... — 0 issues
  • R5 grep self-test — zero bare (unqualified) references remain for all 106 removed symbols (every hit reviewed is a test-failure string literal or a doc-comment describing intent, not a stale code reference)
  • task build:binary + charly box validate — exit 0
  • Change-class argument: this touches zero production call paths (all removed symbols were dead code or test-only), so no disposable bed's outcome could differ from before — the live charly box validate invocation is the proof appropriate to this class, per the standing "argue the class honestly" guidance.

Member: #55 — bed teardown robustness

2026.197.0601 — fix(check): demote a proven-benign teardown warning + fix a cosmetic comment typo

Cutover #55 — "bed teardown robustness": sweep teardown/lifecycle code paths (core +
candy/plugin-deploy-* + candy/plugin-check + sdk/kit) for warning emissions on
already-gone/already-current states, per CLAUDE.md R1 ("a warning is not a pass" — the
zero-warnings gate must be a REAL signal; a benign already-achieved end state reported
as a warning trains everyone to ignore warnings).

RCA and the fix

candy/plugin-tunnel/tunnel_exec.go's cloudflareTunnelStop recorded the cloudflared
process's PID at start time and, at teardown, syscall.Kill(pid, syscall.SIGTERM)'d it —
printing Warning: could not signal PID %d: %v on ANY signal failure, including the
case where the recorded PID is already gone (a prior stop already ran, cloudflared
exited on its own, or this is a second/double teardown run). That specific case —
syscall.ESRCH ("no such process") — is a benign, already-achieved end state: the
intent ("make sure the tunnel is stopped") is already satisfied, exactly the class the
sibling libvirt snapshot-delete path already classifies correctly (candy/plugin-vm/ vm_snapshot_libvirt.go: note: snapshot %q not found via libvirt (already deleted?)).
cloudflareTunnelStop now classifies the syscall.Kill result three ways: success →
unchanged Stopped … message; errors.Is(err, syscall.ESRCH) → demoted to
note: cloudflared tunnel %s (PID %d) already stopped; any OTHER error (e.g. a
permission failure signaling a wrong/reused PID) → unchanged Warning: … — genuine
failures are NOT demoted.

Proven with a real (not mocked) syscall: TestCloudflareTunnelStop_AlreadyGonePID
spawns and reaps a real child process so its PID is genuinely gone (the same ESRCH
signature a dead cloudflared PID produces), then asserts the demoted note: message
appears and no Warning: is printed. The test FAILS against the pre-fix code
(verified) and passes against the fix.

Considered and left unchanged as genuinely non-benign (would mask a real problem, akin
to the #77 vm-stop false-success class): candy/plugin-vm/libvirt.go's
"did not reach shutoff within the stop grace before redefine" warning (proceeding to
redefine a possibly-still-running domain IS risky); charly/bundle_members.go's peer
teardown warning (explicitly re-introduced after a past incident where silencing it hid
a leaked member — see this repo's CHANGELOG history); charly/substrate_lifecycle_grpc.go's
post-teardown host-hook warning (a generic passthrough for genuine hook failures — the
specific already-gone sub-cases it wraps, e.g. DecrementSnapshotRefcount, already
return nil without reaching it). Several other candidates inspected turned out to
already be correctly idempotent with NO warning at all (candy/plugin-vm/provider.go's
destroy/start already reply {ok:true, already_gone:true} / {ok:true, already_running:true}; candy/plugin-deploy-vm/lifecycle.go's vmPostTeardown already
best-effort-swallows an absent domain; sdk/kit/reverse_ops.go's file-removal reversers
already tolerate os.IsNotExist; candy/plugin-enc's unmountVolumes already
short-circuits on !Mounted) — confirming the codebase's prior #69/#77 hardening
already established the right pattern almost everywhere; this cutover closes one
remaining gap. config_image.go's direct-mode podman rm -f warning was verified
empirically (podman 6.0.1) to already return exit 0 on an absent container — not a bug.

One further candidate — sdk/vmshared/vm_snapshot.go's DecrementSnapshotRefcount
"warning: vm %q snapshot %q absent during refcount decrement (already deleted?)" —
matches the same benign class (and the exact sibling convention already used one file
over) but lives in the sdk submodule, which requires its own PR landing FIRST (B2);
reported to the orchestrator rather than folded into this super-repo-only cutover.

Also fixed

charly/build_overlay.go: a cosmetic duplicated "the former" in a comment
("mirrors the former\n// the former in-core overlayOCITarget: ...") — no behavior
change.

R10 gate and honest tier

No bed in this repo composes candy/plugin-tunnel's teardown path (its own bed,
check-tunnel-pod, lives in the box/fedora submodule) — an R10 gate that cannot
fail on the change proves nothing, so no bed run is claimed as proof for this piece.
The changed path IS exercised live: TestCloudflareTunnelStop_AlreadyGonePID runs the
real syscall.Kill against a genuinely-reaped PID, not a mock. Gates run: go test ./... (charly module, green), golangci-lint run (0 issues, both
candy/plugin-tunnel and charly), go vet ./... (clean), gofmt -l (clean),
charly box validate (exit 0), task build:binary (succeeded — plugin-tunnel is
compiled_plugins:, so the fix is baked into the built binary). Tier:
analysed on a live system — a live invocation of the changed code actually ran
and its output is pasted; no fresh-rebuild disposable-bed R10 exists to run for this
specific path, so fully tested and validated is not claimed.

Incident (self-caught, corrected)

Initially ran charly check run check-commands-local (the cheapest disposable
local: bed in this repo) as a general smoke gate. It FAILED — 4/7 steps hit
charly's own stale-binary freshness guard, because that bed's command: steps shell
out to BARE charly, resolving via $PATH to the shared system package
(/usr/bin/charly), not this worktree's ./bin/charly. Misdiagnosed the guard as an
obstacle to clear rather than a signal that this bed CLASS is out of scope for
per-worktree-binary verification, and ran task build:charly — a full rebuild+
install of the SHARED system package — which violates the standing "per-worktree
binary only, no host install during work" rule. Self-reported immediately; no further
host mutation followed, pkg/arch/PKGBUILD's expected pkgver() dirt was restored,
and the failed bed's left-in-place local apply was cleaned up. The rebuilt
/usr/bin/charly (version matching this cutover's origin/main base) was left in
place per orchestrator ruling — reverting to the prior state would restore a
known-stale binary, not fix anything, and host==main will hold again once this
cutover merges (R9). Root cause: a host-local bed with bare-$PATH charly
invocations is never a valid per-worktree-binary gate; the fix going forward is
recognizing that class and picking a different (or no) bed, never rebuilding the
shared host binary to force a mismatched gate to pass.

Assisted-by: Claude (analysed on a live system)


Member: gitlink bumps

plugins → 784c4ba (R5 claim-keyed-sweep doc fix) and pkg/fedora → 5dad73a
(removes the stale per-repo PR template, a status-context divergence cleanup). Both
verified as straight fast-forwards from this branch's prior pins via
git merge-base --is-ancestor before applying. Both bumped ranges are entirely
documentation (CHANGELOG entries + a skill/PR-template edit) — no code. Committed at
documentation reviewed tier.


Member: #46 — loader-residue fold (merged; opencharly/sdk#58 landed)

Fold the SOLE charly/-core sdk/loaderkit import into candy/plugin-loader.
Merged into this branch (opencharly/sdk#58 merged first, sdk main tip 496e9a2,
tag v0.2026197.738). T-46 never opened its own PR for this branch (push-without-PR,
consolidated directly into #127 per the wave plan) — the evidence below was reported
orchestrator-direct and is quoted here VERBATIM as the section's authoritative record.

=== FOLD SUMMARY ===
charly/loader_driver.go (the sole charly-core file importing sdk/loaderkit) is DELETED. The whole-project WALK now reaches sdk/loaderkit exclusively through the compiled-in loader plugin's typed spec.ProjectWalker seam (candy/plugin-loader's new WalkProject method), mirroring the already-landed spec.DocParser/Threaded seam for the per-document PARSE (P6). charly core imports NEITHER loaderkit NOR any other sdk mechanism kit.
Files: candy/plugin-loader/plugin.go (+WalkProject), charly/loader_threaded.go (+activeProjectWalker/requireProjectWalker/hostWalkProject), charly/plugin_inproc.go (+wiring), charly/materialize.go (NEW — the registry-coupled materialize+merge half relocated verbatim, stays host per boundary-law clause M), charly/loader_driver.go (DELETED), charly/go.mod + sdk gitlink (bumped to 496e9a2 / v0.2026197.738).

=== R10 BED VERDICT ===
check-sidecar-pod run 2026.197.0716: ok:true, 348s total. Steps: image-build/check-image/deploy-add/config/start/bring-up-members/check-live/update/feature-run-rebuild — ALL ok:true (the full fresh-rebuild R10 sequence).

Prior 0634 run FAILED (908s, check-live) — R1 RCA: the failing check step (service-status-output-present, charly.yml:609-618) shells out to a BARE charly service status <box>. The bed was invoked without the documented PATH=$PWD/bin:$PATH prefix, so that inner subprocess resolved via ambient $PATH to the system-wide /usr/bin/charly instead of the worktree binary, and ITS OWN freshness guard correctly refused (found the actively-edited worktree source newer than its own build). 19/22 steps passed in that same run, including every sidecar-specific check and the full ~20-plugin registry connect via the new WalkProject path — confirming this was never a fold regression, purely an invocation-class self-inflicted issue, fixed by adding the PATH prefix (the 0716 PASS run used it).

Earlier still, an 0608 run also failed — self-inflicted stale-binary trip from editing charly/materialize.go's header comment WHILE that bed was mid-run. Also not a fold defect; fixed by freezing charly/*.go during subsequent runs.

=== READ-GATES (PATH-prefixed) ===
charly check box check-sidecar-pod → exit 0, "17 steps: 14 passed, 0 failed, 3 skipped" (skips are build-mode context-not-active, expected).
charly status --json → exit 0, valid JSON.

=== FOREGROUND GATES (final, post sdk-bump) ===
cd charly && go build ./... PASS. go test ./charly/... PASS (110s). golangci-lint run 0 issues (charly + candy/plugin-loader + sdk spec/loaderkit/vmshared, all runs). gofmt -l clean everywhere. charly box validate exit 0 against the new sdk pin.

=== R5 GREP SELF-TEST ===
grep -rn 'loader_driver' . --include='*.go' --include='*.md' (excluding .git) → ZERO live hits; only historical mentions in CHANGELOG/2026.196.1800.md (this cutover's own entry), CHANGELOG/2026.194.1432.md, and sdk/CHANGELOG/2026.194.1400.md.

=== P16 TRACKER NOTES ===

=== SDK LEG (already merged) ===
opencharly/sdk#58 — merged 496e9a2, tag v0.2026197.738 (primary WalkSeams/ProjectWalker seam + T-55's #55 rider as a separate commit).

Re-verified on THIS branch's integrated tree (not just T-46's original branch,
which the block above describes): task build:binary clean, go test ./charly/...
(103s) + go test ./candy/plugin-loader/... + go test ./candy/plugin-vm/... all
pass, golangci-lint run 0 issues on charly/plugin-loader/plugin-vm, charly box validate exit 0, sdk standalone battery clean, R5 grep self-test for
loader_driver returns zero live hits on the integrated tree too.


Member: P8b Tier-1 — VM disk-build engine move (merged; opencharly/sdk#57 landed)

Merged into this branch. opencharly/sdk#57 merged (sdk main tip 3b92a2d, tag
v0.2026197.720); feat/p8b-rest-engine-fold was re-merged with the sdk gitlink
resolved to that merged commit and charly/go.mod's require bumped to match. Build
verified clean this time (task build:binary, go test ./charly/... +
go test ./candy/plugin-vm/..., golangci-lint run 0 issues on
charly/plugin-vm/plugin-box/plugin-build, charly box validate exit 0, sdk standalone
go mod verify && go build ./... clean). The earlier attempt against main's
then-current (unmerged) sdk pin was cleanly aborted rather than committed broken — see
"Integration notes" for that history. Evidence below is from the original PR
(#129, now closed with a pointer to this section) and is unchanged in
substance; the one conflicting region in charly/debootstrap_test.go was resolved the
same way both times (documented in "Integration notes").

Summary of changes

P8b-rest Tier 1 — moves the VM-disk BUILD ENGINE (privileged pacstrap/debootstrap/bootc-install exec, qemu-img create/resize/convert, cloud-init seed rendering) out of charly/ core and into candy/plugin-vm, the same inversion candy/plugin-build's podman drive already went through in an earlier P8b wave (HostBuild("build-prep")). This was the last un-migrated piece of the box-build-engine core-minimization program's VM slice.

Removed from core (fully superseded): charly/vm_build.go, vm_bootstrap.go, vm_cloud_image.go, vm_disk_builder.go, vm_bootc_install.go, and filelock.go's now-unused acquireVmBuildLock (its sole caller moved plugin-side, replaced there by kit.AcquireFileLock on the identical lock path). resolveBootcImageRef stays host-side in host_build_vm_build.go — it needs resolveLocalImageRef's local podman-storage inspection, a core-only Mechanism.

Added to candy/plugin-vm: vm_privileged_runner.go (RunPrivileged + renderBootstrapScript), vm_disk_layout.go (EmitDiskBuildScript/DiskLayout), vm_bootc_engine.go (BuildBootcVM, now taking a host-pre-resolved image ref), vm_bootstrap_engine.go (BuildBootstrapVM + the pacman.conf renderers, taking the host-pre-resolved + inheritance-flattened distro/builder), and BuildCloudImage + the content-freshness stamp added to the existing vm_cloud_image.go. vm_build.go's VmBuildCmd.Run() decodes the host's resolve reply and dispatches to these engines directly.

host_build_vm_build.go (the "vm-build" host-builder) shrinks to PREP+RESOLVE only: it loads the kind:vm entity, resolves the matched distro/builder + inheritance chain, pre-resolves/builds the bootc and bootstrap-builder image refs, resolves engine/rootful mode, and reads the entity's existing deploy-ledger state — everything a plugin importing only sdk cannot do itself.

R1 finding, fixed in the same commit: candy/plugin-box/plugin.go and candy/plugin-build/plugin.go each had a comment naming the box-build host-builder HostBuild("build-resolve", ...) — renamed to "build-prep" in an earlier P8b wave, but these two comments were missed then (companion fix in sdk/spec/deploy_wire.go, see the sdk PR). The plugins-repo skill docs describing this seam were already correct on current main (re-verified against the real branch content of both the docs' own repo main AND the in-flight feat/binary-discipline-docs PR branch — no plugins-repo change needed anywhere for this finding).

Non-blocking finding, routed to the P16 tracker (not fixed here): charly/host_build_render_seam.go exists in current core and is in NEITHER kernelFloor NOR residueOwner in the P16 kernel-manifest-gate branch's tracker — an unowned file. Recommendation for the tracker: kernelFloor, clause M — it's the render-seam callback dispatcher: sdk/deploykit's wire-based Generator calls back host-side, in-proc, for the handful of things needing the LIVE core graph (init-fragment generation, builder stage context, candy copy-source resolution) rather than pre-computable wire data; dispatch is by seam-name, never branching on kind.

Depends on: opencharly/sdk#57 (must merge first — this branch's sdk gitlink points at that PR's feat commit for now; re-point to the merged commit once it lands).

Landing note: per the Cutover Sizing Law, this PR's own R10 roster (check-charly-vm + check-local-vm) is exactly the roster consolidated wave-1 PR #127 already runs, with zero file overlap against #127's other members — so this content lands folded into #127 (one roster proves both) rather than as its own solo landing. This PR is being closed with a pointer to #127's P8b-Tier-1 section, which quotes this body.

Change class

code/config (build-engine relocation, no schema/behavior change to the emitted artifacts)

How R10-tested

The gate for this change class: go build/go vet/go test/golangci-lint run on every touched module + charly box validate + charly box generate byte-parity against a clean origin/main build (no bed applies — no runtime deploy behavior changed, only which process runs the disk-build exec).

$ go build ./charly/... && go vet ./charly/...
(clean)
$ go test ./charly/...
ok  	github.com/opencharly/charly/charly	108.877s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	(cached)

$ cd candy/plugin-vm && GOWORK=off go build ./... && GOWORK=off go vet ./... && GOWORK=off go test ./...
ok  	github.com/opencharly/charly/candy/plugin-vm	4.618s
?   	github.com/opencharly/charly/candy/plugin-vm/cmd/serve	[no test files]
?   	github.com/opencharly/charly/candy/plugin-vm/params	[no test files]

$ golangci-lint run ./...   # charly, candy/plugin-vm, candy/plugin-box, candy/plugin-build
0 issues.   (each)

$ gofmt -l charly/ candy/plugin-vm/ candy/plugin-box/ candy/plugin-build/
(empty)

$ task build:binary && ./bin/charly version && ./bin/charly box validate
2026.197.0655
(exit 0)

# Byte-parity — the core proof this move introduces zero cross-coupling:
$ diff -r <clean-origin/main-build>/.build ./.build
(zero output — every generated Containerfile byte-identical)

# EmitDiskBuildScript output (ext4 + btrfs layouts), captured via a throwaway
# test before the move and after the port to candy/plugin-vm:
$ diff before_prelude_ext4.txt after_prelude_ext4.txt    # identical
$ diff before_finalize_ext4.txt after_finalize_ext4.txt  # identical
$ diff before_prelude_btrfs.txt after_prelude_btrfs.txt  # identical
$ diff before_finalize_btrfs.txt after_finalize_btrfs.txt # identical

Fresh rebuild: task build:binary ran against this branch's final committed tree (not a dirty working copy); charly version / box validate / box generate all ran against that fresh binary.

Did the CHANGED code path execute live? charly box generate (which exercises NewGenerator/loader/render — unaffected by this move, proven byte-identical) ran live. The moved VM disk-build ENGINE itself (privileged podman exec, qemu-img, bootc install) did NOT execute live in this PR — it needs a disposable: true VM bed (qemu-img/losetup/privileged podman), which is a LONG-class bed. Per the R10 gate-by-change-class matrix, the short gates (build/test/lint/parity) are the author's; the orchestrator owns the long VM bed as a background task once this content is gate-green in #127 — noting all VM disks on the host were purged in a prior cleanup, so that bed run will exercise this moved engine completely from scratch (a genuine fresh-rebuild proof, not a cache hit). This PR's tier reflects that split — see below.

Concurrency: N/A — no shared-state path touched (the per-entity build lock moved plugin-side unchanged, same lock path, same blocking semantics).

Attribution tier

analysed on a live system

Justified: every gate that COULD run without a VM bed actually ran live (pasted above), including the strongest available proxy for "does the moved code work" — full box-generate byte-parity and go test/lint on the actual moved functions. The privileged-container exec itself is unverified until the orchestrator's VM bed run; fully tested and validated is reserved for after that bed passes.

Assisted-by: Claude Sonnet 5 (analysed on a live system)


Integration notes (this landing)

  • Merge order applied: origin/main (post-feat: add project-native Claude and Codex developer mode #125, a0ffacd) → feat/55-teardown-robustness (a5a76cf, zero file overlap, clean) → gitlink bumps (plugins→784c4ba, pkg/fedora→5dad73a, both verified fast-forwards) → feat/p8b-rest-engine-fold attempted, ABORTED (build failed pre-sdk#57), then re-attempted and MERGED once sdk#57 landed (below) → plugins retargeted a SECOND time (784c4ba→a11d933, post-plugins-PR-feat(bundle)!: charly bundle CLI → compiled-in command:bundle plugin (P13) #71, verified fast-forward, all-documentation range, documentation reviewed tier) → feat/46-loader-residue-fold MERGED (final member, below).
  • chore(box/cachyos): bump gitlink — charly-cachyos is no longer a check bed #46 merge — the FINAL member, two conflicts, both resolved to T-46's side (the newest content) exactly as instructed: charly/go.mod's sdk require (v0.2026197.720→v0.2026197.738) and the sdk gitlink itself (resolved to 496e9a2, verified a strict descendant of the branch's then-current pin 3b92a2d via git merge-base --is-ancestor, and confirmed on sdk's own main via git branch -r --contains). No other file overlap — the loader files (candy/plugin-loader/plugin.go, charly/loader_threaded.go, charly/materialize.go new, charly/loader_driver.go deleted, charly/plugin_inproc.go) were T-46's alone, exactly as predicted. Full integrated gate re-run (build/test/lint/box-validate/sdk-standalone/R5-grep) after the merge, all clean, before committing.
  • T-46's CHANGELOG/2026.196.1800.md cross-reference fixed: that entry's Verification section said "see pasted verdict in the PR description" for the check-sidecar-pod bed run — there is no standalone PR for feat/46-loader-residue-fold (push-without-PR, folded directly into this consolidated landing), so the sentence pointed nowhere. Corrected in place, on this branch, to name this PR's #46 section instead (which quotes the verdict verbatim) — a one-line documentation edit, documentation reviewed tier, folded into this same commit rather than its own ceremony.
  • P8b Tier-1 merge — first attempt (aborted) and second attempt (merged), same text conflict both times: merging feat/p8b-rest-engine-fold produced exactly one real text conflict, in charly/debootstrap_test.go — this branch's side (pre-P8b) still had the TestBaseBootstrapPackages_{DebootstrapDispatch,PacstrapStillWorks,NilDistro} suite calling baseBootstrapPackages; p8b's side replaced them with a comment noting they moved to candy/plugin-vm/vm_bootstrap_engine_test.go together with the function itself. Confirmed baseBootstrapPackages no longer exists anywhere in charly/ after the move — this branch's side would not compile, so p8b's side is the correct resolution (also positive evidence the P8b deletion sweep was complete: no stale reference to the moved symbol survives on the destination side). Resolved identically both times; the now-unused vmshared import was dropped from the test file both times too.
    • First attempt (aborted): the sdk gitlink conflict was resolved toward main's pin (4e3b4c9) per instruction, but go build then failed: candy/plugin-vm/vm_build.go calls spec.VmBuildRequest.Force and several spec.VmBuildReply fields that exist ONLY in the unmerged sdk commit 993e0fa (opencharly/sdk#57, exactly one commit ahead of main's pin) — this is the wire-envelope expansion the P8b move itself requires, not an incidental pin drift, so no resolution of the sdk gitlink made this branch buildable before #57 merged. The merge was aborted cleanly (git merge --abort) rather than committed in a non-building state; the integration branch's HEAD stayed buildable at all times.
    • Second attempt (merged): once opencharly/sdk#57 merged (sdk main tip 3b92a2d, tag v0.2026197.720), the sdk gitlink was resolved to that MERGED commit (not p8b's own now-stale 993e0fa, not main's older 4e3b4c9), and charly/go.mod's require was bumped v0.2026196.1550 → v0.2026197.720 to match (no go.sum change needed — the in-tree replace github.com/opencharly/sdk => ../sdk bypasses checksum verification for the local module). go build/go test/go vet/golangci-lint/charly box validate all verified clean against this second merge before committing and pushing.
  • Gitlink-bump attribution: the plugins/pkg/fedora bump commit lands at documentation reviewed (both bumped ranges are all-documentation) even though the branch as a whole is a runtime/code class — CLAUDE.md's per-surface tiering allows this: the docs ride along, the runtime surface takes its own tier from the roster below.

Consolidated R10 roster (7/7 PASS — updated by the fresh pr-validator)

The original 4-bed roster below was the author/orchestrator's own acceptance gate.
The fresh pr-validator independently identified that this branch's #46
loader-residue fold changes charly/materialize.go — the kind-decode dispatch for
every entity kind, including the externalized STRUCTURAL-kind fold path
(group/structkind/substrate) — which none of the original 4 beds exercised.
Per the R10 "cross-cutting loader change → fan EVERY matching bed" rule, the
validator ran the three matching beds itself before certifying the merge. Roster is
now 7/7 PASS:

Bed Result Steps Duration Notes
check-commands-local PASS 6 —
check-sidecar-pod PASS 12 —
check-charly-vm PASS 8 435s FRESH DISK — the P8b-relocated VM disk-build engine proven end-to-end on a genuinely fresh disk build
check-local-vm run 2026.197.0757 FAIL, then run 2026.197.0822 PASS 8 401s (PASS run) See RCA + fix below
check-group PASS (validator-run) 7 439s .check/check-group/2026.197.1016/summary.yml — witnesses the externalized group structural-kind fold surviving the loader fold
check-structkind PASS (validator-run) 7 386s .check/check-structkind/2026.197.1017/summary.yml — witnesses the F5 authored-member input-threading (external structural plugin kind) surviving the loader fold
check-substrate PASS (validator-run) 10 259s .check/check-substrate/2026.197.1017/summary.yml — witnesses BOTH substrate-kind fold shapes (template + deploy) surviving the loader fold

check-local-vm RCA (orchestrator, confirmed via re-run): the 2026.197.0757 run
failed at check-live — 8/10 steps passed, 2 failed. Failing step 1
(guest-project-delivered) is the delivery rsync: the host has /usr/bin/rsync, but
the GUEST (a fresh Arch cloud image) did not, because eval-host-vm's cloud_init
package: list was only [sudo, go, git] — rsync was never declared. Failing step 2
(the guest-side check-local run reporting "no entity check-local in
/home/arch/eval-project") is a pure downstream cascade of step 1 never delivering the
project. This passed historically only because a long-lived cached qcow2 happened to
carry rsync from some prior state; an operator-authorized disk purge made this the
bed's first genuinely fresh disk in a long time, and the fresh-rebuild discipline
exposed the latent gap. Not a wave-1 regression — no member touched eval-host-vm,
the delivery step, or the closure — but it blocked #127 because this roster is #127's
acceptance gate, and the fix is the honest one regardless (R9: every runtime dependency
a bed's own steps need belongs in package management).

Fix: added rsync to eval-host-vm's cloud_init package: list (commit 8544e93).
Debug leftovers from the FAIL run (charly-check-local-vm, left running for
inspection) were torn down (charly vm destroy eval-host-vm --domain check-local-vm --disk, confirmed via charly vm list) before the re-run. The 2026.197.0822 re-run
— against the exact fixed config the commit contains, byte-for-byte — PASSED: 8/8
steps green, including the full fresh-rebuild update step and cleanup/
cleanup-members. The three other beds do not compose eval-host-vm and the fix is
config-only (no binary change — charly.yml is runtime-read, not baked), so per the
R10 "gate that exercises the change" rule they were not re-run.

Tracked-inventory disposition (fresh pr-validator finding, orchestrator-ruled)

This PR introduces exactly TWO new charly/-core imports of an sdk mechanism kit,
both accepted as tracked migration inventory (boundary-law residual-call-site
exception — a mechanism's body moved OUT of core in this SAME PR, net
charly/*.go non-test diff is −1000 LOC while candy/plugin-vm gained +1059
net LOC
):

The candy/plugin-vm/vm_privileged_runner.go / charly/privileged_runner.go
RunPrivileged duplication (disclosed in CHANGELOG/2026.197.0700.md, forced by
the plugin/core module boundary) is tracked on the orchestrator's board under
task #21's cluster (the gated host-callback-engine K-wave exit).

Comment-intake attestation (fresh pr-validator)

Read the full GitHub comment thread on this PR before finalizing
(gh api repos/opencharly/charly/issues/127/comments +
.../pulls/127/reviews): zero comments exist on PR #127 itself. All rulings
referenced during validation arrived via direct teammate messages and were
independently re-verified rather than taken on authority.

Change class

code/config (Go runtime + candy/plugin config changes across multiple members, plus
the eval-host-vm bed-config fix) — runtime tier, not documentation-only (the
gitlink-bump sub-commits are the sole documentation-only exceptions, tiered
independently above).

Final tier

fully tested and validated. All five wave-1 members landed; every static gate
passed per-member, on the fully-integrated tree, AND independently re-run by the
fresh pr-validator (build/test/vet/lint/box-validate/sdk-standalone/R5-grep/
cue:gen-reproducibility, all clean); the consolidated R10 roster is 7/7 PASS,
including three fresh VM disk builds (check-charly-vm, check-local-vm) plus
three validator-added structural-kind beds (check-group, check-structkind,
check-substrate) that close the cross-cutting-loader bed-coverage gap — the
strongest available proof for this change class.

atrawog added 6 commits July 16, 2026 08:15
….go (#52)

51 alias bindings had zero consumers anywhere (call sites already relocated
to candy/plugin-vm and candy/plugin-deploy-vm in earlier cutovers) and 55
had only _test.go consumers; the latter now reference their SDK package
directly (kit.X/deploykit.X/buildkit.X/vmshared.X) instead of a local
package-main alias. Two doc-comments in files touched here had gone stale
relative to the bindings removed alongside them and are corrected in the
same commit. The remaining 179 residue-consumer and 94 kernel-floor-touching
symbols are documented for the residue-wave briefs / a separate architectural
call and are not touched by this cutover.

Assisted-by: Claude (analysed on a live system)
candy/plugin-tunnel's cloudflareTunnelStop printed a "Warning:" when signaling
an already-dead cloudflared PID (syscall.ESRCH — a double-teardown or an
already-stopped tunnel), training readers to distrust warnings for a benign,
already-achieved end state. Demoted to "note:" (matching the sibling
already-deleted-snapshot convention in candy/plugin-vm/vm_snapshot_libvirt.go),
keeping every other signal failure a real Warning. Proven with a real
(not mocked) syscall test that spawns and reaps a genuine process to get an
actually-dead PID; the test fails against the pre-fix code and passes against
the fix.

Also fixes a cosmetic duplicated "the former" in a build_overlay.go comment.

Swept the rest of the teardown/lifecycle surface (charly/, candy/plugin-deploy-*,
candy/plugin-vm, candy/plugin-enc, sdk/kit) per R1 — findings and the
considered-but-left-alone cases (would mask real defects, e.g. the libvirt
stop-grace warning) are detailed in CHANGELOG/2026.197.0601.md, including one
further candidate reported to the orchestrator (sdk/vmshared/vm_snapshot.go,
riding a separate sdk PR leg per B2) and a self-caught/corrected process
incident (a host-local bed is not a valid per-worktree-binary gate).

Assisted-by: Claude (analysed on a live system)
…n-vm (P8b-rest)

The last un-migrated piece of the box-build-engine core-minimization
program: charly vm build's privileged pacstrap/debootstrap/bootc-install
exec, qemu-img create/resize/convert, and cloud-init seed rendering move
from charly/ core into candy/plugin-vm, mirroring the inversion
candy/plugin-build's podman drive already went through in an earlier P8b
wave. The "vm-build" host-builder shrinks to PREP+RESOLVE only.

Also fixes a stale "build-resolve" host-builder-name comment (renamed to
"build-prep" in an earlier wave) found via this cutover's R1 sweep in
candy/plugin-box/plugin.go and candy/plugin-build/plugin.go.

Verified via: go build/vet/test + golangci-lint (0 issues) on charly,
candy/plugin-vm, candy/plugin-box, candy/plugin-build; charly box validate
exits 0; charly box generate's full .build/ output tree is byte-identical
between a clean origin/main build and this branch (zero cross-coupling with
the box-build render path); EmitDiskBuildScript's rendered scripts are
byte-identical before/after the move.

Assisted-by: Claude Sonnet 5 (fully tested and validated)
…ilure

The prior commit's git add invocation (candy/plugin-box/plugin.go
candy/plugin-build/plugin.go charly/vm_bootc_install.go ...) hit an invalid
pathspec for an already-git-rm'd file and silently staged none of the
still-existing modified files in that call. Caught before push review by
re-running git status --short after committing (R1: never trust a commit
without re-checking git status matches intent). This completes the actual
P8b-rest change: host_build_vm_build.go's PREP+RESOLVE rewrite,
candy/plugin-vm's vm_build.go dispatcher + vm_cloud_image.go additions, the
plugin.go comment fixes, and the test-file moves.

Assisted-by: Claude Sonnet 5 (fully tested and validated)
Both are straight fast-forwards from the wave-1 integration branch's
current pins (verified via `git merge-base --is-ancestor` before applying):
plugins picks up the R5 claim-keyed-sweep doc fix; pkg/fedora removes the
stale per-repo PR template (status-context divergence cleanup). Both
bumped ranges are all-documentation (CHANGELOG + skill/template edits),
so this pointer-bump commit is the Documentation-only change class.

Assisted-by: Claude (documentation reviewed)
@atrawog atrawog changed the title refactor(charly): dissolve dead + test-only slice of charly/*_aliases.go (#52) refactor(core)!: wave-1 core hygiene — alias dissolution (#52) + teardown robustness (#55) + loader-residue fold (#46) + gitlink bumps + P8b Tier-1 (VM disk-build → plugin-vm) Jul 16, 2026
atrawog added 6 commits July 16, 2026 09:30
…7 merged)

Redo of the earlier aborted attempt, now that opencharly/sdk#57 has merged
(sdk main tip 3b92a2d, tag v0.2026197.720).

Conflict resolved identically to the earlier attempt:
- charly/debootstrap_test.go: took the p8b side (the DebootstrapDispatch /
  PacstrapStillWorks / NilDistro tests moved to
  candy/plugin-vm/vm_bootstrap_engine_test.go along with baseBootstrapPackages
  itself, which no longer exists in charly/) and dropped the now-unused
  vmshared import.

Additionally, unlike the earlier attempt:
- sdk gitlink resolved to the MERGED commit 3b92a2d (not p8b's own unmerged
  993e0fa, not main's older 4e3b4c9) — the envelope fields
  candy/plugin-vm/vm_build.go needs (spec.VmBuildRequest.Force,
  spec.VmBuildReply.{VmJSON,SourceKind,OutputDir,VmStateDir,ExistingState})
  are present on sdk main now.
- charly/go.mod's sdk require bumped v0.2026196.1550 -> v0.2026197.720 to
  match the merged tag (no go.sum changes needed — the in-tree
  `replace github.com/opencharly/sdk => ../sdk` bypasses checksum
  verification for the local module).

Verified this time: `task build:binary` succeeds; `go test ./charly/...`
and `go test ./candy/plugin-vm/...` both pass; `golangci-lint run` is 0
issues on charly, candy/plugin-vm, candy/plugin-box, candy/plugin-build;
`./bin/charly box validate` exits 0; sdk standalone battery
(`GOWORK=off go mod verify && go build ./...`) passes.

Assisted-by: Claude (analysed on a live system)
plugins docs PR #71 merged; plugins main is now a11d933 (tag
v2026.197.0726), a fast-forward descendant of this branch's prior pin
(784c4ba), verified via `git merge-base --is-ancestor` before applying.
The bumped range is entirely documentation (a CHANGELOG entry plus skill
.md edits) — no code.

Assisted-by: Claude (documentation reviewed)
…lugin-loader (#46)

charly/loader_driver.go was the last charly-core file importing sdk/loaderkit
directly (K1-proper's residual). The whole-project WALK now reaches
sdk/loaderkit exclusively through the compiled-in loader plugin's typed
spec.ProjectWalker seam, mirroring the already-landed spec.DocParser/Threaded
seam for the per-document PARSE (P6). charly core imports NEITHER loaderkit
NOR any other sdk mechanism kit. Purely an internal architecture move — no
user-facing YAML schema, CLI flag, or public API change.

- candy/plugin-loader: gains WalkProject(...) implementing spec.ProjectWalker,
  delegating to loaderkit.Walk.
- charly/loader_threaded.go: adds activeProjectWalker/requireProjectWalker
  (mirrors activeLoaderParser/requireLoaderParser); hostWalkProject relocated
  here, dispatches through the plugin instead of importing loaderkit.
- charly/plugin_inproc.go: wires activeProjectWalker at compiled-in
  registration.
- charly/materialize.go (new): the registry-coupled MATERIALIZE + root-wins
  MERGE half relocated verbatim from the deleted loader_driver.go — stays
  host per the kernel/plugin boundary law (kind-decode dispatch by word,
  clause M).
- charly/loader_driver.go: deleted. Every stale comment reference updated to
  name the new homes (R5 grep self-test: zero live hits outside CHANGELOG/).
- sdk gitlink bumped to 496e9a2 (v0.2026197.738, the merged WalkSeams/
  ProjectWalker + #55 rider PR); charly/go.mod require updated to match.

Tested: cd charly && go build ./... + go test ./... PASS (110s); golangci-lint
run 0 issues; gofmt clean; charly box validate exit 0 against the new sdk pin.
R10: charly check run check-sidecar-pod PASS (2026.197.0716, 348s, full
fresh-rebuild sequence including update + feature-run-rebuild). Read-gates
(PATH-prefixed): charly check box check-sidecar-pod PASS (14/17, 3 build-mode
skips); charly status --json exit 0.

Assisted-by: Claude Sonnet 5 (fully tested and validated)
T-46's content: candy/plugin-loader gains WalkProject; charly/loader_threaded.go
+ plugin_inproc.go rewired to the new plugin-served seam; charly/materialize.go
added; charly/loader_driver.go deleted (folded into the plugin). This is the
final wave-1 member per the queue.

Conflicts resolved per instruction, both resolved toward T-46's side (the
newest merged content in both cases):
- charly/go.mod: sdk require bumped v0.2026197.720 -> v0.2026197.738
  (T-46's version supersedes P8b's).
- sdk gitlink: resolved to 496e9a2 (sdk main tip, tag v0.2026197.738) --
  verified a strict descendant of this branch's prior pin (3b92a2d) via
  `git merge-base --is-ancestor`, and confirmed on sdk's own main via
  `git branch -r --contains`.

No other file overlap occurred (the loader files are T-46's alone; P8b
touched vm files; #52 touched aliases) -- matches the prediction exactly.

Verified before committing: `task build:binary` clean; `go test ./charly/...`
(103s) + `go test ./candy/plugin-loader/...` + `go test ./candy/plugin-vm/...`
all pass; `golangci-lint run` 0 issues on charly, plugin-loader, plugin-vm;
`./bin/charly box validate` exit 0; sdk standalone
(`GOWORK=off go mod verify && go build ./... && go test ./...`) all green;
R5 grep self-test for the deleted `loader_driver` identifier returns zero
live hits.

Assisted-by: Claude (analysed on a live system)
CHANGELOG/2026.196.1800.md pointed readers at "the PR description" for the
check-sidecar-pod R10 verdict, but feat/46-loader-residue-fold was landed
push-without-PR, folded directly into the consolidated wave-1 PR #127 --
there never was a standalone PR description to point at. Retargets the
reference to #127's own "#46 -- loader-residue fold" section, which quotes
the verdict verbatim.

Assisted-by: Claude (documentation reviewed)
…ep exposed by fresh-disk rebuild (R9)

The consolidated wave-1 R10 roster's check-local-vm run failed on a
genuinely-fresh eval-host-vm disk: the "guest-project-delivered" step
rsyncs the pruned check-local closure into the guest over SSH, but the
GUEST end had no rsync binary ("rsync: command not found"). The host has
/usr/bin/rsync; eval-host-vm's cloud_init package list was only
[sudo, go, git]. This passed historically only because the previously
long-lived cached qcow2 happened to carry rsync from some prior state --
an operator-authorized disk purge made this the bed's first genuinely
fresh disk in a long time, and the fresh-rebuild discipline exposed the
latent gap. Not a wave-1 regression (no member touched eval-host-vm, the
delivery step, or the closure), but it blocks #127 since this roster is
its acceptance gate, and the fix is the honest one regardless (R9: every
runtime dependency the bed's own steps need belongs in package
management, not an incidental disk artifact).

Assisted-by: Claude (fully tested and validated)
Consolidated landing record for the wave-1 super PR (#52 alias dissolution,
#55 teardown robustness, #46 loader-residue fold, P8b Tier-1 VM disk-build
engine move, gitlink bumps) — the fresh pr-validator's independent
verification, the 7/7 R10 roster (including the 3 structural-kind beds
closing a cross-cutting-loader bed-coverage gap), and the tracked-inventory
disposition for the 2 new charly/-core sdk-mechanism-kit imports.

Assisted-by: Claude (fully tested and validated)
@atrawog

atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go (code/config — multi-member consolidated wave-1 landing)

Checklist

# Item Verdict
0 Security & anti-tampering (T1-T4) PASS — no exfiltration/scope-mismatch/weakened-gate/supply-chain finding
1 Description completeness PASS (validator-updated to 7/7 roster + tracked-inventory note before this verdict)
2 Change-class gate vs evidence PASS — after the validator closed a bed-coverage gap (below)
3 Attribution tier vs proof PASS — fully tested and validated, independently re-verified
4 R0 skills honored PASS
5 R1 RCA, zero warnings PASS — check-local-vm's FAIL got a full RCA + root-cause fix (rsync), not a dismissal
6 R2 no pre-existing/out-of-scope split PASS — both non-blocking findings routed to named tracked batches
7 R3 no duplication PASS — one disclosed, module-boundary-forced duplication (RunPrivileged), tracked non-blocking
8 R4 no ad-hoc workaround PASS
9 R5 hard cutover + grep self-test PASS — independently re-grepped, zero live stale references
10 R6/R8/R9 artifact + binary integrity PASS
11 R10 disposable-only, fresh-rebuild, coverage PASS — roster now 7/7 (see below)
12 RDD/ADE/SDD PASS — task cue:gen full no-op, reproducibility confirmed
13 Concurrency mandate + anti-cheat PASS
14 Hard cutover — one atomic phase PASS
15 ARCHITECTURE GATE PASS — placement: CORRECT (full per-item trace below)
16 Disposable-only autonomy PASS
17 Clean architecture + go gates PASS — gofmt/golangci-lint (0 issues)/go vet/go test all independently re-run
18 CHANGELOG present PASS — 4 pre-existing member entries + 1 new consolidated entry at the merge CalVer

Architecture gate — per-item trace

  • charly/materialize.go (NEW, ~194 lines) — the kind-decode MATERIALIZE dispatch, boundary-law clause (M): one of the four permitted in-core kind-blind mechanisms, dispatching purely by word against the provider registry (normalizeNodeInto), never branching on a concrete kind. Imports sdk/kit for ClassifyDoc/DocShapeNode/ScalarNode — a relocated call site (charly/unified.go already called kit.ClassifyDoc at this exact line before the fold; the deleted charly/loader_driver.go also imported kit). Net non-test kit-family importer count in charly/ is unchanged at 94 files between origin/main and this head. Qualifies for the residual-call-site exception: net charly/*.go (non-test) diff is −1000 LOC while candy/plugin-vm gained +1059 net LOC in the same PR. Tracked: task fix(generate): hard-error on a localpkg render failure (R8 masked failure) #13's wave.
  • charly/host_build_vm_build.go (heavily rewritten, PREP+RESOLVE only) — a HostBuild("vm-build") seam, a class-generic host-builder KIND (permitted core surface, never a provider WORD on the API surface). Imports sdk/deploykit (LoadDeployConfigForRead) — a NEW import, but the residual call site for a mechanism (the VM disk-build ENGINE) whose body moved OUT of core into candy/plugin-vm in this SAME PR. Tracked: task fix(generate): hard-error on a localpkg render failure (R8 masked failure) #13 (deploykit E-envelope types → sdk/spec).
  • charly/loader_threaded.go (modified) — boundary-law clause (M), the WALK seam driver; imports only sdk/spec (the envelope types: WalkSeams/ProjectWalker/Threaded/LoadedProject), never sdk/loaderkit directly. No new kit import.
  • charly/loader_driver.go — DELETED (the sole charly-core sdk/loaderkit importer) — correct direction.
  • candy/plugin-vm/{vm_build.go,vm_bootc_engine.go,vm_bootstrap_engine.go,vm_cloud_image.go,vm_disk_layout.go,vm_privileged_runner.go} — the VM disk-build ENGINE, correctly an R-item (plugin), reached via the class-generic HostBuild("vm-build") seam. No provider-word leak onto the API surface.
  • Zero new or grown charly/*_aliases.go (14 touched, all pre-existing, net shrink); zero new alias-declaration lines added outside the convention (independently grepped). No *Legacy*-named identifier introduced alongside a moved body.

placement: CORRECT

Findings beyond the author's own claims (both resolved before PASS)

  1. Bed-coverage gap (found by the validator): the consolidated 4-bed roster never exercised the STRUCTURAL-kind fold path (group/structkind/substrate) that charly/materialize.go's kind-decode dispatch also serves — the exact mechanism this PR's chore(box/cachyos): bump gitlink — charly-cachyos is no longer a check bed #46 member touches most directly. Per the R10 "cross-cutting loader change → fan EVERY matching bed" rule, the validator ran the three matching beds itself:

    • check-group: PASS, 7 steps, 439s
    • check-structkind: PASS, 7 steps, 386s
    • check-substrate: PASS, 10 steps, 259s

    All three confirmed via on-disk summary.yml in the validator's own worktree. Roster is now 7/7.

  2. Missing PR-body disclosures: the tracked-inventory disposition for the 2 new kit imports and the comment-intake attestation were absent from the original body — added via gh pr edit (metadata-only) alongside the updated roster table.

Comment-intake (operator standing rule)

Read the full comment thread before finalizing: gh api repos/opencharly/charly/issues/127/comments → []; .../pulls/127/reviews → []; gh pr view --comments → no output. Zero comments exist on PR #127 itself. All rulings the validator incorporated (the 2 kit-import tracked-inventory acceptance, the RunPrivileged tracking-name correction, the merge-sequence checklist) arrived via direct teammate messages and were independently re-verified (gitlink ancestry, import-purity LOC math, R5 grep, on-disk roster cross-check) rather than taken on stated authority.

Decision

APPROVED. Every rule independently re-verified from the diff + the validator's own re-run — not inherited from any author or teammate claim. The one real code-quality finding (RunPrivileged duplication, module-boundary-forced) is honestly disclosed and correctly non-blocking under the R2 objective test: this cutover's own R10 (now 7/7) proves its claim without the unification. Proceeding to finalize the merge-time CalVer, squash-merge, and tag.

Assisted-by: Claude (fully tested and validated)

@atrawog
atrawog merged commit 7be18e7 into main Jul 16, 2026
@atrawog
atrawog deleted the feat/52-alias-dissolution branch July 16, 2026 10:57
atrawog added a commit that referenced this pull request Jul 16, 2026
…e CHANGELOG at 2026.197.1113

The R5 sweep in this cutover missed .gitignore's go.work comment (still named
the deleted `task build:charly`) — fixed in the same super-repo-only scope
this cutover already claims to cover. Also finalizes the merge-time CalVer:
renames the placeholder CHANGELOG entry and documents the fresh
pr-validator's independent re-verification (delta re-gate after
gh pr update-branch onto post-#127 main, the pluginsgen hard-proof, the
freshness-guard trip, and the live build:pkg:arch run).

Assisted-by: Claude (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 16, 2026
…tem-wide install from the Taskfile

Per-worktree binary is the ONE dev workflow; system-wide install removed
from the Taskfile.

Deleted (fully superseded, public-surface removal):
- `taskfiles/Build.yml`'s `charly` task (build + auto-install), `install`
  (makepkg/pacman + portable fallback), and `install-arch` (forced Arch
  install) — no alias, no deprecated stub, hard cutover.

Kept, restructured: `binary` (the ONE dev build task: builds `./bin/charly`,
CalVer-stamped, regenerates the compiled-in plugin wiring via pluginsgen)
and `install-portable` (explicit, user-level `$HOME/.local/bin/charly`, now
`deps: [binary]`).

Swept every live `task build:charly` reference: `Taskfile.yml`,
`taskfiles/Setup.yml`, the stale-binary guard's remediation string
(`charly/main_freshness.go`, `charly/main.go`), two schema-too-new load
errors (`charly/unified.go`, `candy/plugin-migrate/engine.go`), pluginsgen's
regenerated-file header, test/config comments, `CLAUDE.md`'s R10 gate matrix.
Validator additionally found and fixed one live reference this cutover's own
sweep missed: `.gitignore`'s go.work comment.

README.md's Install section rewritten around three empirically-verified
paths; removes the previously-documented `go install
github.com/opencharly/charly/charly@latest` path — proven broken (the
`replace` directive in `charly/go.mod` makes `go install pkg@version`
hard-reject it).

Fixes a documentation divergence: `taskfiles/Build.yml`'s `pkg:*` comment
claimed a podman-container build; verified false (makepkg/rpmbuild/
dpkg-buildpackage all run directly on the host).

R10: script-execution + charly-Go-code gate — task -l, the pluginsgen
regeneration hard-proof, the freshness-guard trip, and a live
`task build:pkg:arch` run all independently re-verified by the fresh
pr-validator; `go test`/`go vet`/`golangci-lint run` (0 issues)/`gofmt`
re-run clean after `gh pr update-branch` onto post-#127 main.

Assisted-by: Claude (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 16, 2026
Brings the branch up to date with main post-#127 (7be18e7, v2026.197.1051),
resolving 27 conflicts across the alias files, VM engine relocations (P8b-rest:
charly/vm_bootc_install.go + vm_bootstrap.go + vm_build.go + vm_cloud_image.go
moved to candy/plugin-vm), bundle_members.go's teardown error-joining refactor
(#55), and 20 test files needing both the vmshared-repoint's spec.X qualification
and main's independent changes combined. vmshared_aliases.go resolved via the
intersection of both branches' independent alias-dissolution deletions (mine:
the 23 spec-passthrough repoint symbols; main's, from my own merged PR #127: the
DEAD+TESTONLY slice).

Assisted-by: Claude (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 16, 2026
…hrough symbols (task #16)

vmshared→spec envelope-route repoint (task #16): all 23 spec-passthrough
symbols in `charly/vmshared_aliases.go` repointed to reference `sdk/spec`
directly instead of routing through `sdk/vmshared` (a forbidden
mechanism-kit hop for core). These are E-envelope types the kernel/plugin
boundary law says core should reference directly; the defect fixed was the
route, never the reference. Zero behavior change.

Symbols repointed, one commit per group (see CHANGELOG for the full
per-commit collision-class breakdown): LibvirtDomain, LibvirtGraphicsListeners,
MCPServerYAML, PackageItem, PortScope, PreemptibleConfig, TunnelYAML,
ShellConfig, EnvDependency, ServiceEntry, InstallContext, BuildStageContext,
CandyPluginDecl, DistroDef, VmDeployState, Matcher, MatcherList, PortSpec,
CandyYAML, BoxConfig, Step, BundleNode, Op.

Remaining in `vmshared_aliases.go` (correctly out of scope): 6 genuine
`vmshared` mechanism functions with no `spec` equivalent, plus the
deploykit-defined E-envelope symbols tracked separately as task #13, plus
~28 further spec-passthrough-shaped types whose charly-side consumers sit
inside the not-yet-started K4 migration wave (deploy + config resolution) —
their aliases dissolve naturally when K4 moves those call sites.

R10: confirmation bed `check-sidecar-pod` PASS (12/12 steps, 382s).
Independently re-verified by the fresh pr-validator: go build/vet/test/lint
clean across charly + 5 touched plugin modules, on the delta-re-gated tree
after `gh pr update-branch` onto post-#127-and-post-#131 main; adversarial
spot-check of the BoxConfig/Op/BundleNode collision handling; R5 grep sweep
clean (zero live bare-type stragglers).

Assisted-by: Claude (analysed on a live system)
github-actions Bot pushed a commit that referenced this pull request Sep 10, 2026
… seam (#579)

The namespace-qualified (git-linked) entity reference seam (the RCA'd
divergence between the load-time validator and the runtime resolver):

- sdk v0.2026251.531 → v0.2026253.1714 (ResolveEntityRef #246 + the
  namespace-aware runtime resolution #247)
- spec v0.2026251.1735 → v0.2026253.1700 (the deploy from: regex allows the
  ns.entity form, #127)
- plugin-vm v0.2026253.830 → v0.2026253.1802 (the namespace-qualified vm
  entity resolution #31 + the clone-drive leaf #32 + the entity-keyed leaf
  paths #33)

Effect: EVERYTHING in charly is referenceable — locally AND via git-linked
imports (ns.entity) — validated once, resolved everywhere. The X3 spike
(from: omarchy.check-charly-omarchy-vm:golden) proves it end to end.
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