Repository navigation
fix(deploykit): an explicit build: plan step is a position marker, not a deploy step - #347
Conversation
…not a deploy step
An explicit `build:` run: step (e.g. `build: all`, the ordering marker a candy
uses to force its package.json's npm builder to run before a later install step)
was lowered by constructOpStep to a generic OpStep. Op.Build has no
RenderOpCommand case, so kit.WalkPlans's walkOp returned handled=false and every
target:local / target:vm deploy hard-failed:
plugin-deploy-vm: walk step "Op" (candy=dsh-tui): op has no plugin-renderable
verb (an act-`plugin:` verb must route to RunHostStep): &{… Build:all …}
The image build was never affected: EmitTasks renders the marker as the no-op
"# build: all (handled by builder stage)" comment, and the builder itself is
emitted from manifest detection (compileBuilderSteps, plan step 2) and hoisted
ahead of every task step on BOTH the image build and the deploy plan — so the
marker carries no deploy-time effect.
constructOpStep now skips a `build`-verb op (returns nil), matching the image
build's no-op semantics. opencharly/pod-dsh's dsh-tui candy is the only such step
in the org; with this fix its explicit-build ordering marker no longer makes the
candy undeployable on a real host.
Closes #346
Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code — SDK Go mechanism ( Blocks
Comment intake: 0 comments — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code — SDK Go mechanism ( Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code — SDK Go mechanism ( Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: code — SDK Go mechanism (
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…uild:`-step deploy fix and the xz allowance (#816) * chore(deps): bump the sdk pin to v0.2026279.1734 — carry the explicit-`build:`-step deploy fix opencharly/sdk#347 (tag v0.2026279.1734) makes an explicit `build:` plan step a position marker rather than an unrenderable OpStep, so a candy carrying one (the `dsh-tui` candy's `build: all`) no longer fails every `target: local` / `target: vm` deploy. This lands that producer→consumer: the core module + the three lockstep tools/* modules advance their `github.com/opencharly/sdk` pin together (mods-tidy keeps go.mod and go.sum in step). Closes #815 Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated) * chore(deps): bump the plugin-check pin to v0.2026279.1651 opencharly/plugin-check#80 (tag candy/plugin-check/v0.2026279.1651) adds the cachyos-xz-local-newer-than-repo diagnostic allowance, so a cachyos box's deploy-add step reaches ZERO warnings (the three xz upstream-skew lines the earlier pin left surviving). Adopting it alongside the sdk bump lets the consumer bed (distro-cachyos#125's check-dsh-cachyos-vm) pass at zero warnings end to end. Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated) * chore(deps): adopt the sdk + spec + plugin-check pins that carry the machine-venue fixes (charly#815, charly#814) Carry the three producer fixes to the charly core in ONE coherent re-pin: | producer | tag | carries | |---|---|---| | github.com/opencharly/sdk | v0.2026279.1734 | the explicit-`build:` plan step is a position marker, not an unrenderable OpStep (sdk#347), so the dsh-tui candy's `build: all` no longer fails every machine-venue deploy | | github.com/opencharly/spec | v0.2026279.2018 | charly#814: a candy's `env:` is now sourced for NON-interactive machine-venue commands (spec#201) — the `check-live` `plan:vm:cachyos-vm:14` symptom | | github.com/opencharly/plugin-check/candy/plugin-check | v0.2026279.2102 | the grub os-prober chroot warning (plugin-check#82) and the CachyOS openssh local-newer skew (plugin-check#84) — the two warnings that kept the #125 bed off zero | The core module and the three lockstep tools/* modules advance their spec pin together (charly task mods-tidy keeps go.mod/go.sum in step). Proven live by the disposable check-dsh-cachyos-vm bed (see the PR body): deploy-add PASS with the released package's /etc/charly/charly.yml present and no CHARLY_SYSTEM_CONFIG crutch, vm-build warnings=0, deploy-add/update warnings=0, check-live PASS. Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Summary
An explicit
build:run: step — e.g.build: all, the ordering marker a candyuses to force its
package.json's npm builder to run before a later install step —was lowered by
constructOpStepto a genericOpStep.Op.Buildhas noRenderOpCommandcase, sokit.WalkPlans'swalkOpreturnedhandled=falseandevery
target: local/target: vmdeploy hard-failed:The image build was never affected:
EmitTasksrenders the marker as the no-op# build: all (handled by builder stage)comment, and the builder itself is emittedfrom manifest detection (
compileBuilderSteps, plan step 2) and hoisted ahead of everytask step on BOTH the image build and the deploy plan — so the marker carries no
deploy-time effect.
constructOpStepnow skips abuild-verb op (return nil, nil), matching the imagebuild's no-op semantics.
constructOpStepis reachable ONLY viaCompileOpSteps→BuildDeployPlan(the deploy IR); the imageEmitTaskspath is untouched.Closes #346.
Addressing the round-2/3 BLOCK
#1 (R10 — the zero-warning run borrowed an unmerged sibling).
plugin-check#80isnow MERGED and TAGGED (
v2026.279.1651, at the merge commit6594ed2). Thezero-warnings bed below is run on a build carrying this SDK head + the released
[email protected]— a published consumer, not a worktree branch.#2 (A2 — no
target: localrun). This is a Contract / library module change,and the R10 matrix (
/charly-check:check,references/beds-and-r10.md"R10 gate bychange class", the sole owner of the matrix) names this class EXPLICITLY:
So for THIS repo the gate is its own CI, and the consumer bed rides the consumer PR
(
distro-cachyos#125, the PR that composes thedsh-tuicandy). Thetarget: localpath is the SAME
kit.WalkPlans→walkOpcode that thetarget: vmbed exercises, sothe vm bed IS the consumer-boundary run for both substrates —
candy/plugin-deploy-localand
candy/plugin-deploy-vmeach hand their executor to the one sharedkit.WalkPlans.#3 (R1 — the warnings not folded into the R1 answer). Folded in below.
How tested
Contract/library-class premise, proven with executed output
All four
charly.ymlareworkflowkit/testdata/*.goldenfixtures, not a project; everydisposable: trueis a Go string literal in a test table. No bed CAN exist here.The module's OWN committed CI is the gate
The regression test fails without the fix, passes with it
The consumer-boundary bed —
deploy-addFAIL → PASS, zero warningsThe consumed artifact is
charly(its compiled-inplugin-fleetcallsdeploykit.BuildDeployPlan). Rebuilt from source with this SDK head + the RELEASED[email protected], run against the disposabletarget: vmbedcheck-dsh-cachyos-vm(distro-cachyos#125), which deploys a candy carrying thebuild: allmarker:The
warnings=3on the 1512 run are the SEPARATExzdiagnostic gap — threeoccurrences of the CachyOS upstream-skew line
warning: xz: local (…) is newer than cachyos-vN (…), the same class already allowlisted for binutils/libtool/zstd. Filed asplugin-check#79, FIXED in the now-merged+taggedplugin-check#80; with it the same bedreaches
warnings=0.The
build: allsweep (B14(d))The authoritative source is the resolver cache — the umbrella's
pod-dshgitlink isstale at a pre-
dsh-tuitag, so a checkout sweep misses it:One hit, a real plan step. The tree's ONE other
build: allis prose inside thelayerskill's fenced markdown EXAMPLE (
layer-charly-image/charly.yml:981), not a plan step.Rulebook compliance
/charly-internals:install-plan,/charly-internals:plugin,/charly-internals:go,/charly-check:check,/charly-internals:git-workflowbeforeediting.
image path defines a
build:marker's meaning (a no-op), the deploy lowering droppedit and emitted an unrenderable step; (b) the 3 surviving warnings in the 1512 run —
three
warning: xz: local (…) is newer than cachyos-vN (…)lines, the CachyOSupstream-skew class already allowlisted for binutils/libtool/zstd but OMITTED for xz.
Neither is flake/environmental: (a) is fixed here, (b) is fixed in the
diagnostics: the CachyOS \"local newer than repo\" allowlist omits xz, so a cachyos deploy-add is not at zero warnings plugin-check#79 → feat(locks): store-global build lock (single-writer arbitration for the podman store) #80 change (merged + tagged).
BuilderStephoisting it relies on, and the test movetogether; nothing deferred.
comment); no second lowering path is added.
build-verb op previously produced a broken step, now none.git statusclean before commit; no force-push.deploy-addFAIL→PASS isthe changed path executed live.
InstallPlan; asserted by the unit test andexercised by the consumer bed's
deploy-add.go.work/go.work.sumrestored (tree clean).
CI (the gate above) is green on the PR head, the
no disposable targetpremise isproven by the executed
git ls-files/git grepoutput, and the consumer-boundary bedruns on the CONSUMER PR (
distro-cachyos#125) — pasteddeploy-addFAIL→PASS atwarnings=0.Change classification
SDK mechanism library (
deploykit) + its unit test — the Contract / library modulechange class. Class gate: the module's own committed CI (
gofmt/vet/golangci-lint/test) green on the PR head, theno disposable targetpremise proven by executedoutput, and the consumer-boundary bed run on the consumer PR pasted at zero warnings.
Agent:
dsh-tui-install· sessionses_eefd1f32fffeNl8ajvmzJ0hGLkAssisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (fully tested and validated)