Repository navigation
fix(charly,check)!: add_candy-on-pod — three-bug fix making the feature work end-to-end - #186
Conversation
…re work end-to-end
add_candy: on a pod: deploy never worked via a real charly bundle add: (1)
hostBuildOverlay's plans ctx-carrier (overlayBuildInputs) was never seeded in
production, only in a test, so the overlay's candy scan was always empty; (2)
the overlay's first-ever resolved_image (and, from a concurrently-landed
VolumeProjectChecked field, a config volume-persist) state-save fell through
bundleDiscForEntity's pod-workload check to "group", corrupting charly.yml on
the next read; (3) the check-bed runner's config/start steps always passed
--tag <base-build-tag>, clobbering the just-built overlay ref via
hostBuildPodConfigResolveRef's (correct) explicit-ref-wins precedence.
Fixed all three: unified_targets.go seeds ctx with the live plans/parentExec/
parentNode at Add; deploy_nodeform.go adds resolved_image + volume_project_checked
to the pod-workload indicator list (2 new precedent-test cases); bed_run.go's new
configStartArgs omits --tag for an add_candy bed only (CheckBedReply.HasAddCandy,
new sdk schema field), unit-tested. New disposable bed check-pod-overlay
(pod: {add_candy: [ripgrep]}) is the R10 proof: ripgrep installs + runs, before
and after a fresh charly update rebuild, at zero warnings — the feature working
for the first time.
Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: Independently re-verified (fresh worktree
|
pr-validator coordination note — canonical attribution policyWhile validating opencharly/marketplace#111, I verified that this PR is file-disjoint but its current body/footer and author commit use the retiring parenthesized provider/semicolon attribution form. plugins#111 establishes the operator-confirmed exact form This interaction is non-blocking for #111 and is posted so this branch does not encounter the policy change cold. Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed) |
… non-vacuous post-rebuild check-live - Bump the sdk gitlink + go.mod require from the pre-merge branch tip to sdk#97's merged sha (v0.2026205.1156) -- the footgun the git-workflow skill warns about. - candy/plugin-check/bed_run.go's post-rebuild checkLiveTree pass no longer requires nested children (len(d.ChildKeys) > 0) to fire -- every RunRuntime, non-in-place bed now gets a genuine check-live pass against the ACTUAL post-`charly update` container. Before this, a childless bed's plan-embedded "post-rebuild" check silently re-checked the never-rebuilt initial state (a live-bed-validator finding on check-pod-overlay): all plan steps ran in ONE verify-only check-live pass before the bed's real update step, so the embedded run: step was skipped and the "post-rebuild" check was vacuous. check-pod-overlay's plan is simplified to match: the vestigial embedded `run: charly update` step and the redundant duplicate check are removed -- the SAME ripgrep check is now genuinely re-evaluated by the bed runner's new unconditional post-rebuild pass, proving both the initial deploy and the fresh rebuild. Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)
|
Fix commit pushed (f562868) addressing both findings: 1. sdk gitlink + go.mod bump. 2. Vacuous post-rebuild check — fixed at the root (option a). Re-verified, fresh worktree, both commits assembled:
CHANGELOG updated with a "Bug 4" section documenting this finding + fix. |
|
Blast-radius enumeration for the bed_run.go post-rebuild change (per team-lead's request), so the affected-set scope is explicit: Every Filtering:
Given this, my verification stands on: (a) check-pod-overlay's own genuine 2-pass proof, (b) the idempotency/ADE reasoning (every |
pr-validator — APPROVED ✅ (supersedes the prior CHANGES REQUESTED verdict)Head: Both prior findings resolved1. sdk gitlink — FIXED. 2. Vacuous post-rebuild check — FIXED AT THE ROOT. Independently re-verified from scratch (fresh worktree, this exact head, sdk pinned at the merged commit)
Comment intake
Cross-PR interactions
DecisionAPPROVED. Both blocking findings from the prior round are genuinely, robustly Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated) |
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
…ent, and three stale figures B1 — command.go still described driftCmd as "the CI gate" and "(the docs:drift model)", the two claims this cutover measured false and removed everywhere else. It contradicted generate.go's own comment ten lines away, inside the same diff. The per-repo sweep found exactly one surviving site, in the superproject only — the one file no projection carries, which is why no downstream review met it. B3 — the entry said "Four plugins legs". Six carried this cutover's prose: #186, #187, #188, #190, #193, #194. The line was authored in the final commit, after all six had landed. Enumerating by `git log | grep '(#N)'` is unreliable here: #186, #187 and #190 have squash subjects that carry no PR-number suffix, so the count came from the merged-PR list instead. B4 — the reference index still called status-absence on a known head "a false negative" while the section it indexes now says it "proves nothing". Those are different claims: one asserts the thing is real but unseen, the other that the observation is uninformative. B6 — the tag invariant placed 2026.215.1207 both in the untagged set ("at or before") and inside the tagged 67-for-67 run. It is untagged, and is the latest untagged entry, so the run opens above it. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Summary
add_candy:on apod:deploy has NEVER worked via a realcharly bundle addinvocation — a severe, pre-existing, user-facing bug invisible until now because no disposable bed in this repo ever combined thepod:substrate withadd_candy:. The new disposable bedcheck-pod-overlay(pod: {image: check-k8s-deploy-app, add_candy: [ripgrep]}) is the first live exerciser, and its R10 run surfaced the feature's full bug stack in one pass. All three fixes land together as one coherent theme, proven by one bed.Bug 1 — the overlay build never saw the compiled InstallPlan.
hostBuildOverlayreads the deploy's compiled plans from a ctx-threaded*overlayBuildInputs, but nothing in production ever seeded it (only a test did). Fixed incharly/unified_targets.go's(*pluginDeployTarget).Add— the one call site holding the live plans +opts.ParentExec/ParentNodebefore the ctx threads, unbroken, tocandy/plugin-deploy-pod'sHostBuild("overlay", ...).Bug 2 — the overlay's first-ever
resolved_image(and, from a concurrently-landed field,volume_project_checked) write corruptedcharly.yml.bundleDiscForEntity's pod-workload-indicator check didn't recognize these fields, so a fresh deploy's state-save fell through togroup:, and#GroupInputthen rejected the whole file on the next read. Same bug class as two prior fixes already in this function (documented inTestBundleDiscForEntity_PodWorkloadNotGroup) — both fields added, two new precedent-test cases.Bug 3 — the check-bed runner's
--tagclobbered the just-built overlay ref.bed_run.go'sconfig/startsteps always passed--tag <base-build-tag>, andhostBuildPodConfigResolveRef's (correct, untouched) explicit-ref-wins precedence then deployed the un-overlaid base image instead of the overlay. Fixed plugin-side:CheckBedReply.HasAddCandy(companionsdkPR opencharly/sdk#97) letsbed_run.go's newconfigStartArgshelper omit--tagonly for add_candy beds — unit-tested, non-overlay beds unaffected.Change class
Code. Confidence tier:
fully tested and validated.Test plan
go build ./...+go test ./...clean acrosssdk,charly,candy/plugin-check.TestBundleDiscForEntity_PodWorkloadNotGroup's two new cases;TestConfigStartArgs_AddCandyOmitsTag(fails without the fix).check-pod-overlayrun TWICE end-to-end (exploratory + fresh-rebuild) in a clean worktree freshly checked out fromorigin/main— both PASS all 12 steps (image-build/check-image/deploy-add/config/start/bring-up-members/check-live/feature-run/update/feature-run-rebuild/cleanup/cleanup-members) at ZERO warnings, ripgrep verified installed + functional inside the running overlay container both before AND after thecharly updatefresh rebuild.Depends on opencharly/sdk#97 (bumped gitlink in this PR).
Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)