Skip to content

feat(schema,check-bed)!: add_candy-on-pod fix companion 1/3 — CheckBedReply.HasAddCandy - #97

Merged
atrawog merged 2 commits into
mainfrom
fix/add-candy-pod-overlay-plans
Jul 24, 2026
Merged

atrawog merged 2 commits into
mainfrom
fix/add-candy-pod-overlay-plans

Conversation

@atrawog

@atrawog atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • #CheckBedReply gains has_add_candy?: bool @go(HasAddCandy) — the host-side check-bed setup op now reports whether the bed's node carries a non-empty add_candy: list.
  • Companion schema change for the charly superproject cutover "add_candy-on-pod: three-bug fix making the feature work end-to-end" — candy/plugin-check's bed runner uses this field to decide whether its config/start steps may safely pass --tag <base-build-tag> (a non-overlay bed's freshness proof) or must omit it (an overlay bed's freshness proof is the just-built overlay tag, resolved via resolveDeployResolvedImage).

Change class

Code (schema + generated). Confidence tier: analysed on a live system.

Test plan

  • go build ./... + go test ./... — all packages green.
  • task cue:gen regeneration is reproducible (clean run, only the intended field landed in spec/cue_types_gen.go).
  • Full end-to-end proof rides the companion charly PR: the new disposable bed check-pod-overlay (pod: {add_candy: [ripgrep]}) is the R10 gate for all three fixes together, run twice (exploratory + fresh-rebuild), all green at zero warnings — pasted in that PR.

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; analysed on a live system)

…dReply.HasAddCandy

CheckBedReply gains has_add_candy, so the check-bed runner can distinguish an
add_candy: overlay bed (whose config/start freshness proof is the just-built
overlay tag) from a plain pod bed (whose freshness proof is the base --tag
build ref) -- passing --tag unconditionally to config/start silently redeployed
the un-overlaid base image for the former, dropping every add_candy: candy.

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; analysed on a live system)
@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: Code (schema + generated) — sdk producer leg of a 2-repo cutover; no standalone sdk runtime bed (correctly noted).

Security & anti-tampering (T1–T4): Diff is exactly one CUE field addition (schema/seam.cue) + its regenerated Go counterpart (spec/cue_types_gen.go) + CHANGELOG. No secrets, no scope mismatch, no weakened guardrail, no instruction-injection attempt anywhere in the PR body/diff. PASS.

Independently re-verified (fresh checkout at PR head 1918a68e, GOWORK=off):

  • go build ./... / go vet ./... — clean.
  • go test ./... — all packages green, including TestGenReproducible (explicit -run) — PASS.
  • go mod tidy / go mod verify — zero diff, all modules verified.
  • gofmt -l . — one dirty file (vmshared/cloud_init_iso.go), confirmed pre-existing on origin/main (not touched by this PR, not introduced by it) — verified-non-blocking, pre-existing debt.
  • golangci-lint run ./... (isolated GOLANGCI_LINT_CACHE) — 0 issues.
  • task cue:gen (wire:gen + bootstrap-cue) on the committed PR head — zero diff, confirming reproducibility (SDD 12a).
  • SDD compliance: the new has_add_candy field is defined ONLY in schema/seam.cue; spec/cue_types_gen.go is regenerated, not hand-edited (byte-identical to a fresh cue:gen run). No @go(-) addition, no hand-written wire struct. Fully CUE-sourced (SDD 12c). PASS.
  • CHANGELOG: CHANGELOG/2026.205.1055.md — filename matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-equals # 2026.205.1055 — …, CalVer not already used as a tag or CHANGELOG entry on main. PASS.

Functional exercise (beyond this repo's own gate): I independently built and ran the companion charly PR's new check-pod-overlay disposable bed against this exact sdk commit (1918a68e, via the in-tree replace directive) — full 12-step R10 PASS at zero warnings, and I additionally hand-verified HasAddCandy's functional effect by manually deploying, running a genuine charly update (fresh rebuild, new overlay image), and confirming rg --version succeeds both before and after — see the companion PR's comment for the full transcript. This is a live invocation of the changed field's actual consumer, run by me, output pasted in the companion PR. Tier analysed on a live system is justified by this cross-repo live exercise, not inflated.

Comments considered: none (PR carries no comments).

Cross-PR interactions considered: sdk has no other open PRs. none-found.

Decision: PASS. All standalone-battery checks green, SDD reproducibility confirmed, and the new field's real behavior independently exercised live via the companion charly PR. Finalizing merge-time tag and merging.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
@atrawog
atrawog merged commit 10138c3 into main Jul 24, 2026
@atrawog
atrawog deleted the fix/add-candy-pod-overlay-plans branch July 24, 2026 11:57
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.

1 participant