Skip to content

fix: re-pin sdk so the in-plugin project load honors the config-stack overlay fix - #21

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/repin-sdk-config-stack
Sep 23, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/repin-sdk-config-stack

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Bump github.com/opencharly/sdk v0.2026253.1947 → v0.2026265.2104 (and the github.com/opencharly/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 old pin, that load used the pre-fix config stack, which raw-merged ~/.config/charly/charly.yml (a DeployConfig — 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, and FoldMembers rejects it:

peer name "preempt-vm-taker" (declared under deploy "check-preempt-vm-live")
collides with an existing deploy/bed/peer entry — peer names must be globally unique

Observed live on check-preempt-vm-live (in its distro-fedora origin AND its relocated plugin-preempt copy), failing at bring-up-members (steps=9).

Why a separate re-pin here. opencharly/sdk#270 fixed the sdk; opencharly/charly#631 re-pinned charly core + the compiled-in plugins. An out-of-process plugin vendors its OWN loaderkit (its own go.mod sdk 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 for plugin-deploy-vm.

Concrete edits:

  • candy/plugin-deploy-vm/go.mod — sdk v0.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 transitive golang.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

  • The gate for this change class: the plugin's own build/vet/test PLUS a live disposable bed that actually drives the changed path — check-preempt-vm-live, whose bring-up-members calls this plugin's PrepareVenue self-load.
  • Eval beds run — the EXACT bed + result:
    • check-preempt-vm-live | vm+pod | ok | 20 steps | ~470s (opencharly/plugin-preempt, run from the BED's project with CHARLY_REPO_OVERRIDE pointing this repo at the bumped tree).
    • Ran on charly version = 2026.249.2125, built from opencharly/charly origin/main 777d9a6c; calver .check/check-preempt-vm-live/2026.266.0521/.
  • Fresh rebuild: the plugin was rebuilt from this branch (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.
  • Did the CHANGED code path execute live? Yes — bring-up-members FAILED (steps=9) with the old pin and PASSES with the new one; the VM-venue arbiter assertions then PASS live. See block 1.
  • Concurrency (shared-state changes only): N/A — a dependency bump; no shared state.

Evidence — put each item in the block whose label names it.

1. Fresh-rebuild gate output (charly version + the gate run, at zero warnings):

# Plugin module gates (from candy/plugin-deploy-vm on this branch):
$ GOWORK=off go build ./...      # exit 0
$ GOWORK=off go vet ./...        # exit 0
$ GOWORK=off go test ./...       # ok  github.com/opencharly/plugin-deploy-vm/candy/plugin-deploy-vm

# Live bed, before (old pin) vs after (this branch, via CHARLY_REPO_OVERRIDE):
BEFORE: charly check run check-preempt-vm-live: [bring-up-members] FAIL after 1m10.8s
        -> peer name "preempt-vm-taker" ... collides with an existing deploy/bed/peer entry
        charly check run check-preempt-vm-live: FAIL (steps=9)
AFTER:  charly check run check-preempt-vm-live: [bring-up-members] PASS after 1m34.8s
        charly check run check-preempt-vm-live: PASS (steps=20)   # 20 PASS-after, 0 FAIL

2. Each changed code path executing (the lines proving the changed branch ran, not that it built):

# The VM-venue arbiter assertions (the coverage this plugin's self-load gates) ran live and PASSED:
  PASS  the CLAIMANT member's exclusive vm-test-lock lease was recorded  [preemptor-vm-lease-recorded]
  PASS  the RUNNING preemptible VM holder was actually preempted  [preemptor-vm-stopped-the-holder]
# => pluginHolderStop/pluginHolderStart addr.Vm!="" dispatch proven live (the whole point of the bed).
charly check run check-preempt-vm-live: PASS (steps=20)

3. Docs-only evidence: N/A — Go module dependency change.

Raw pin-sweep evidence (B14(d), R5):

$ cd plugin-deploy-vm && git grep -n "v0.2026253.1947" -- . ; echo "exit=$?"
CHANGELOG/2026.253.2106.md:1:# ... re-pin sdk to v0.2026253.1947 — the deploy-hop from: resolves namespace-qualified templates (#248)
CHANGELOG/2026.253.2106.md:11:sdk #248 (v0.2026253.1947) adds the `ResolveKindEntityBody` fallback ...
CHANGELOG/2026.253.2106.md:13:- **candy/plugin-deploy-vm/go.mod**: sdk v0.2026253.1714 → v0.2026253.1947 (+ go.sum hashes)
CHANGELOG/2026.253.2106.md:24:The regression test FAILS with the old pin ... and PASSES with the new pin (v0.2026253.1947):
candy/plugin-deploy-vm/lifecycle_hop_test.go:39:// < v0.2026253.1947 (DeployTargetEntity's hop resolved the local vm map only —
exit=0   # all hits are CHANGELOG history + ONE test-comment version THRESHOLD — no live pin

$ git grep -n "v0.2026253.825" -- . ; echo "exit=$?"
CHANGELOG/2026.253.0853.md:1:# ... bump the spec pin to v0.2026253.825 (the WaitForSSH fast-fail fix)
CHANGELOG/2026.253.0853.md:5:Bumps the spec pin to v0.2026253.825 ...
CHANGELOG/2026.253.0853.md:12:$ go get github.com/opencharly/[email protected]
exit=0   # all hits are CHANGELOG history — no live pin

# The NEW pins are the only live ones in the module:
$ git grep -n "v0.2026265.2104\|v0.2026262.957" -- candy/plugin-deploy-vm/go.mod
candy/plugin-deploy-vm/go.mod:5:require github.com/opencharly/sdk v0.2026265.2104
candy/plugin-deploy-vm/go.mod:27:	github.com/opencharly/spec v0.2026262.957

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-members went FAIL→PASS and the bed reached PASS (steps=20) with 0 failures, including the VM-venue arbiter assertions. go build/go vet/go test are green.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: loaded go (Go module gates + the sdk pin recipe), plugin (out-of-process placement), git-workflow, root-cause-analyzer.
  • R1 RCA + zero warnings: the collision was RCA'd to this plugin's vendored pre-#270 loaderkit (verified in the module's own go.mod/config_stack.go), not assumed; the bed ran at zero un-allowlisted warnings.
  • R2 no out-of-scope: this IS the R2-correct handling of the surfaced cross-repo defect — a different repo's surface cannot ride the charly commit, so it lands as its own immediate companion cutover, not a deferral.
  • R3 no duplication: no code duplicated — a dependency version bump; the fix itself is sdk#270's ONE canonical implementation, adopted here.
  • R4 no workaround: no sleep/retry/magic-number; the pin is bumped to a merged tag (not a hand-pin of a PR branch). CHARLY_REPO_OVERRIDE is the documented pre-push local-verify mechanism, not an ad-hoc shim.
  • R5 hard cutover + grep: no identifier removed/renamed; the stale pin is replaced in full. RAW sweep output pasted in block 2: the old sdk pin v0.2026253.1947 and old spec pin v0.2026253.825 appear ONLY in CHANGELOG/ (historical) and one test COMMENT (a historical version THRESHOLD, not a pin). No live file — Makefile / CI / tools — references a stale pin.
  • R6 git safety: git status inspected before staging; commit on fix/ branch, PR-only, no force-push.
  • R7 runtime gate: the end-to-end bed gate ran live (the changed self-load path executed), not just go test.
  • R8 artifact invariants: N/A — no generation/label change; the plugin binary's behavior is asserted by the live bed.
  • R9 binary == source + deps: the plugin was rebuilt from this branch; its runtime deps are Go modules (no new OS deps).
  • R10 disposable + coverage: proven on a disposable: true bed (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).
  • RDD / ADE / SDD: RDD — the defect was proven on a live bed BEFORE the fix and the fix proven on a live bed after; ADE — N/A (no candy plan changed); SDD — N/A (no schema/.cue edit).
  • Hard cutover: ONE atomic commit (a97e5b9); no Phase-2/TODO in scope.
  • Kernel/plugin boundary law: N/A — this plugin already owns deploy:vm out-of-process; the change is a dependency bump.
  • Disposable-only autonomy: N/A — no autonomous destroy/rebuild outside the disposable: true bed.
  • Clean architecture + Go gates: gofmt -l . empty; go vet ./... clean; go test ./... green.
  • CHANGELOG: N/A — this repo's 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)

… 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)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: a97e5b9f2e3ae2bf64d3bc7b325d66b9b679eb5f (branch: fix/repin-sdk-config-stack)

Change class: charly-or-sdk Go — out-of-process plugin Go module dependency re-pin (2 files: candy/plugin-deploy-vm/go.mod, candy/plugin-deploy-vm/go.sum).

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

  1. B14(d) / B10 (R5) — un-pasted grep output. The body's R5 answer states git grep 'v0.2026253.1947' "in this repo returns only history/changelog", but no actual executed command output is pasted anywhere in the body — only a prose summary. Per B14(d), a sweep/pin-replacement claim requires the real, actually-executed command and its real output in the body; a summary sentence is not evidence, and the diff only substantiates the two files shown, not the repo-wide claim. Fix: paste the literal git grep output (both the old sdk pin v0.2026253.1947 and the old spec pin v0.2026253.825) confirming no live file (Makefile / CI / tools) still references a stale pin.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: aa8c7425d014d9c5a5f653e490e6de0f01163d77 (branch: fix/repin-sdk-config-stack)

Change class: charly-or-sdk Go — out-of-process plugin Go-module dependency re-pin (candy/plugin-deploy-vm/go.mod, go.sum).

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 opencharly/sdk + opencharly/spec modules (transitive golang.org/x/* bumps only), no supply-chain redirect.
Checklist: All applicable rules PASS or NA.

Comment intake:

  • 5789658534 (github-actions[bot], BLOCK @ a97e5b9f…): stale-superseded — the raw git grep output it demanded is now pasted in the CURRENT body ("Raw pin-sweep evidence (B14(d), R5)"), and it is internally consistent with the diff (grep reports sdk at go.mod:5 and spec at go.mod:27, which match the hunk line numbers exactly; old pins survive only in CHANGELOG/ and one test-comment threshold). The head also advanced to aa8c7425 via the body re-freeze commit, so the prior head's finding no longer reproduces.

Non-blocking note (B15): the commit list shows two non-changelog commits (a97e5b9 fix + aa8c7425 body re-freeze); the body's "ONE atomic commit" refers to the code change. No partial/split work pattern — the intended squash collapses them.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 23, 2026 05:41
@github-actions
github-actions Bot merged commit 90d190b into main Sep 23, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 23, 2026
@aitrawog
aitrawog deleted the fix/repin-sdk-config-stack branch September 25, 2026 19:23
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.

2 participants