Repository navigation
fix(bed): the VM path's deploy carries the run tag, as the pod path already does - #117
Merged
Merged
Conversation
…tinuation + TODO gate)
Contributor
Review — PASSHead SHA: Change class: configuration (pi package pin bump, 1 file / 1 line). Security screen: PASS — single pin bump Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 11, 2026
Bump the docs submodule pin from 1a37f2ee (pre-#117, tag-on-merge head) to 3ec7cac61a8dfb85623ca78c5b66f70d49212987 — the current docs main HEAD after #117 and its tag-on-merge. Nothing else changed: scripts/verify-pins.sh -> verify-pins: OK — 400 submodules, policy B holds The docs repo is NOT charly-pinned (policy B); it pins to its own default branch like every non-pinned repo. Co-authored-by: atrawog <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
charly deploy addwith no--tagresolves "the newest local CalVer" of the box, so a box with more than one local build can have its pod or VM run an artifact this run did not build. The bed runner had grown this pin by hand, at ONE call site — the pod arm (addArgs = withRunTag(addArgs, d.ImageTag)), whose siblingconfigStartArgs(…, d.ImageTag, …)covered the other half. The VM path had no tag at any of its three sites.This PR makes the two paths symmetric, and claims exactly that. The pin now lives where every deploy already passes —
bedAdd— as a separate, TYPED parameter:All eight call sites pass
d.ImageTag(VM root, VM host-rooted children, the in-place local arm, the pod arm), and the pod path's hand-writtenwithRunTagis deleted as redundant — one home, so the next caller cannot miss it (R2).What this PR does NOT claim, stated first rather than defensively: that carrying the tag is sufficient to pin the artifact. It is not, and the record already measures that: a pod bed that already passed
--tag <run calver>still ran a base image baking0.48.1while the run's own build bakes0.51.0and its owncheck boxstep asserted0.51.0and passed (one run, two steps apart —opencharly/plugin-check#115). Symmetry is what this change buys; pinning is what#115must still establish, and itsHANDING OVERnames the one measurement that decides it (which field--tagmatches: the image's CalVer tag or itsai.opencharly.versionlabel) and the three candidates that separates. An earlier revision of this body asserted the guarantee in its title; that claim was refuted by this very measurement and is withdrawn.Why the signature is the way it is, because the first attempt proves the point: I first made the tag a variadic FIRST argument (
bedAdd(tag string, args ...string)), and the existing test immediately showed what that costs — a caller passing a ref where the tag belongs produced--tag openclaw.check-openclaw-pod, i.e. a deploy pinned to the wrong thing, the same defect class this change exists to remove. The suite caught it (TestBedAddConvertsTheRosterAddressFAILED) and the type now makes it unrepresentable.How tested
Change class: compiled-in plugin Go code (
candy/plugin-check/), so the class gate is charly's assembled disposable bed driven by a binary that embeds this diff.The changed path executed live, on the VM path this PR changes —
check-local-vm, whosedeploy-addstep is the path that had no tag, driven by/tmp/charly-vacuous-build/charly-tagfix(built from this worktree; the run's ownsummary.ymlnames the driver and its version):The ten step names come from that run's
summary.yml, pasted rather than counted by hand.Coverage that fails without the change, over every deploy flavour the runner has:
The four findings of the previous verdict, answered
TestBedDeployCarriesTheRunTag, pasted above with its negative control over all four flavours — and the changed path executed live — the VM bed'sdeploy-add, pasted above, on the path that previously passed no tag at all. The verdict's stronger demand (that the BED itself fail when the artifact differs) is not met by this PR, and the claim is now small enough that it does not need to be: the bed cannot assert artifact identity, and this body no longer says it does. That capability isopencharly/plugin-check#116, open, with its mechanism named.#116mislabels a BLOCKING finding as filed.#116is filed, not deferred, and it stays open.#115'sHANDING OVER: which field--tagmatches — the image's own CalVer tag or itsai.opencharly.versionlabel — with the three candidates it separates; and the reading I offered (resolveDeployRefLocal(… c.Tag …),resolvePodRuntimeImage(… opts.Tag …)) is about the pod resolver, which is why it cannot settle the VM path and is no longer presented as if it did.0.48.1for a0.51.0build). The two no longer contradict each other, because only one of them is asserted.Rulebook compliance
bed_run.go'sbedAdd+ eight call sites + the deleted hand-tag,bed_deploy_tag_test.gonew,bed_container_ref_test.goupdated for the new signature); the claim does not exceed the evidence (finding 4 above);## Filed issuespresent; footer last.fully tested and validated: the class gate passed on the final tree (fresh rebuild + live re-run), the changed path executed live, and the changed argument construction has a covered test that fails without it./charly-check:check,/charly-internals:plugin,:go,:go-quality,:git-workflow,:strict-policyloaded before the first tool call; this repo'sAGENTS.mdread.#116).bedAddcarries the tag for every caller, and the pod path's duplicate hand-writtenwithRunTagis deleted in the same change.git status --shortstated before staging; one commit; no amend/force-push/bypass; no direct push tomain; the bed's VM isdisposable: trueand was destroyed by its own cleanup step.TestBedDeployCarriesTheRunTag, pasted negative control) and the changed path executed live (the VM bed'sdeploy-add, pasted). The emitted-artefact boundary here is the deploy argv, asserted for all four flavours.summary.ymlrecords it (/tmp/charly-vacuous-build/charly-tagfix,2026.288.0644).update) plus a live re-run after it (check-live-rebuild), 10 steps, count taken fromsummary.yml.plan:or schema/wire shape is touched; the change is to the bed runner's own argument construction.#115.disposable: trueVM, created and destroyed by the run.gofmt -lempty,go build/go test ./...green on the head (pasted).CLAIMon#115;HANDING OVERon#115naming the resolver measurement and its three candidates;BLOCKSrefreshed onplugin-crabbox#8naming#115as the owner of its red;#116open.R5 sweep, executed (the claim-keyed shape, org-wide in this repo):
Read precisely: every deploy call site passes the tag, and the hand-written
withRunTagthat guarded only the pod path is gone (exit=1= no match), so the two paths can no longer drift.Change classification
fully tested and validated— the class gate passed on the final tree (fresh rebuild + live re-run on the VM path this PR changes), the changed path executed live, and the changed argument construction has coverage that fails without it. The claim is limited to what those proofs establish; the stronger guarantee is not claimed anywhere in this body.Filed issues
opencharly/plugin-check#116— a bed whose live phase does not assert WHICH artifact it deployed, so its green is evidence about some image (open). Genuinely separable from this change by R1's test, and now correctly classified as such because the claim no longer depends on it. It names the mechanism (DeployRecord.ResolvedImage+runTaggedImageRef) and records what this round learned about reaching it: the bed runner has no executor seam (run_cmd.gore-enters the CLI rather than threading one —bed_ephemeral_timers.goreaches the deploy overlay through the session's executor, not the runner's), andcharly deploy add --dry-run --format jsonemits the InstallPlan, not the resolved image reference — so the guard needs either an executor on the runner path or a CLI verb that names the resolved artifact. A successor should not have to rediscover that.opencharly/plugin-check#115— the parent defect, with aHANDING OVERnaming the one measurement that decides its fix and the three candidates it separates. This PR does not close it: the pod path was already tagged and still ran a stale base, so the pod-side cause is that row's.opencharly/plugin-crabbox#8therefore stays held, its stock-plugin control the proof that its red is foreign.Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)