Repository navigation
fix: re-pin sdk so the in-plugin project load honors the config-stack overlay fix - #21
Conversation
… overlay fix Bump github.com/opencharly/sdk v0.2026253.1947 -> v0.2026265.2104 (and the spec require it carries) so this plugin's OWN project self-load stops raw-merging the per-host deploy overlay as a config-stack PROJECT layer. WHY. This plugin is an out-of-process deploy:vm substrate: it self-loads the project (loaderkit.LoadUnifiedViaExecutor, lifecycle.go) to resolve the VM entity for PrepareVenue. Under the pin above, that load used the pre-fix config stack: it raw-merged ~/.config/charly/charly.yml (a DeployConfig — per-host RUNTIME state) as a project document layer. For a member-bearing bed that injects a deploy-level member's TOP-LEVEL persisted copy next to the member its owner still declares nested, and FoldMembers rejects it: peer name "preempt-vm-taker" (declared under deploy "check-preempt-vm-live") collides with an existing deploy/bed/peer entry Observed live on check-preempt-vm-live (distro-fedora AND the relocated plugin-preempt copy), failing at bring-up-members (steps=9). charly core and the compiled-in plugins got this fix via opencharly/sdk#270 + the charly re-pin (opencharly/charly#631); an OUT-OF-PROCESS plugin vendors its OWN loaderkit, so each must re-pin in its own repo. This is that re-pin for plugin-deploy-vm. R10 (live): check-preempt-vm-live re-run against a charly binary whose CHARLY_REPO_OVERRIDE points this repo at the bumped tree: - bring-up-members: FAIL (steps=9) before -> PASS after - bed verdict: PASS (steps=20), 0 FAIL; the VM-venue arbiter assertions preemptor-vm-lease-recorded + preemptor-vm-stopped-the-holder both PASS, proving the pluginHolderStop/pluginHolderStart addr.Vm!="" dispatch live. - go build ./... exit 0; go vet ./... exit 0; go test ./... ok Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: charly-or-sdk Go — out-of-process plugin Go module dependency re-pin (2 files: Security screen: PASS (T1–T4 — no scope mismatch, no secrets/egress, no guardrail weakening, no supply-chain redirect; the two version pins resolve to the named opencharly/sdk and opencharly/spec modules). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: charly-or-sdk Go — out-of-process plugin Go-module dependency re-pin ( Security screen: PASS — T1–T4: diff does exactly what the body claims (no scope mismatch); no secrets/egress/obfuscation; no guardrail or rulebook change; the new pins resolve to the named Comment intake:
Non-blocking note (B15): the commit list shows two non-changelog commits ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary of changes
Bump
github.com/opencharly/sdkv0.2026253.1947→v0.2026265.2104(and thegithub.com/opencharly/specrequire it carries) so this plugin's OWN project self-load stops raw-merging the per-host deploy overlay as a config-stack PROJECT layer.WHY. This plugin is an out-of-process
deploy:vmsubstrate: it self-loads the project (loaderkit.LoadUnifiedViaExecutor,lifecycle.go) to resolve the VM entity forPrepareVenue. Under the old pin, that load used the pre-fix config stack, which raw-merged~/.config/charly/charly.yml(aDeployConfig— per-host RUNTIME state) as a project document layer. For a member-bearing bed this injects a deploy-level member's TOP-LEVEL persisted copy next to the member its owner still declares nested, andFoldMembersrejects it:Observed live on
check-preempt-vm-live(in itsdistro-fedoraorigin AND its relocatedplugin-preemptcopy), failing atbring-up-members(steps=9).Why a separate re-pin here.
opencharly/sdk#270fixed the sdk;opencharly/charly#631re-pinned charly core + the compiled-in plugins. An out-of-process plugin vendors its OWNloaderkit(its owngo.modsdk require + its own compiled binary), so it does not inherit the core pin — each self-loading plugin must re-pin in its own repo. This is that re-pin forplugin-deploy-vm.Concrete edits:
candy/plugin-deploy-vm/go.mod— sdkv0.2026253.1947→v0.2026265.2104; spec →v0.2026262.957(the sdk's own require).candy/plugin-deploy-vm/go.sum— the corresponding checksums (plus the transitivegolang.org/x/*bumps the newer sdk/spec require).Change class
charly-or-sdk Go (a plugin Go module dependency re-pin).
Closes / relates to: relates to opencharly/sdk#270 (the fix being adopted) and opencharly/charly#631 (the charly re-pin). This is the companion out-of-process leg of the same cutover. No ordering dependency on any open PR — it only needs sdk#270's tag, which is merged.
Breaking change + rollback: none — a dependency version bump. Rollback is a revert (the pre-#270 load behavior returns, along with the collision).
How R10-tested — exact gate, commands, and pasted output
check-preempt-vm-live, whosebring-up-memberscalls this plugin'sPrepareVenueself-load.check-preempt-vm-live | vm+pod | ok | 20 steps | ~470s(opencharly/plugin-preempt, run from the BED's project withCHARLY_REPO_OVERRIDEpointing this repo at the bumped tree).charly version= 2026.249.2125, built fromopencharly/charlyorigin/main777d9a6c; calver.check/check-preempt-vm-live/2026.266.0521/.GOWORK=off go build ./..., exit 0;go vet ./..., exit 0;go test ./...ok). The bed ran against it via the repo override (the supported pre-push local-verify mechanism), so the changed module IS the code under test.bring-up-membersFAILED (steps=9) with the old pin and PASSES with the new one; the VM-venue arbiter assertions then PASS live. See block 1.Evidence — put each item in the block whose label names it.
1. Fresh-rebuild gate output (
charly version+ the gate run, at zero warnings):2. Each changed code path executing (the lines proving the changed branch ran, not that it built):
3. Docs-only evidence: N/A — Go module dependency change.
Raw pin-sweep evidence (B14(d), R5):
Attribution tier
fully tested and validated. The changed module was rebuilt from this branch and the bed that exercises its self-load path (
check-preempt-vm-live) executed live:bring-up-memberswent FAIL→PASS and the bed reachedPASS (steps=20)with 0 failures, including the VM-venue arbiter assertions.go build/go vet/go testare green.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)go(Go module gates + the sdk pin recipe),plugin(out-of-process placement),git-workflow,root-cause-analyzer.loaderkit(verified in the module's owngo.mod/config_stack.go), not assumed; the bed ran at zero un-allowlisted warnings.CHARLY_REPO_OVERRIDEis the documented pre-push local-verify mechanism, not an ad-hoc shim.v0.2026253.1947and old spec pinv0.2026253.825appear ONLY inCHANGELOG/(historical) and one test COMMENT (a historical version THRESHOLD, not a pin). No live file — Makefile / CI / tools — references a stale pin.git statusinspected before staging; commit onfix/branch, PR-only, no force-push.go test.disposable: truebed (check-preempt-vm-live, 20 steps) on a fresh rebuild at zero un-allowlisted warnings; the bed's assertions would FAIL without the fix (they did:steps=9).a97e5b9); no Phase-2/TODO in scope.deploy:vmout-of-process; the change is a dependency bump.disposable: truebed.gofmt -l .empty;go vet ./...clean;go test ./...green.CHANGELOG/is written from the PR body by the merge workflow. No file staged.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)