Skip to content

docs(deploykit): fix stale check-charly-selftest-pod bed-name reference - #76

Merged
atrawog merged 3 commits into
mainfrom
feat/hygiene-batch
Jul 20, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/hygiene-batch

Conversation

@atrawog

@atrawog atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Fix a stale bed-name reference in WriteCandySteps's localpkg hard-error
comment (deploykit/candy_steps.go). The comment cited "the
check-charly-selftest-pod defect" as the motivating incident for making a
RenderLocalPkgImageInstall failure a hard error instead of a silent
Containerfile-comment fallback. That bed name has never resolved to
anything in either the sdk or the superproject charly repo's history
(confirmed via git log --all -S in both repos) — traced the original
incident to commit 95b95c5 in the charly repo, which used the same wrong
name. The bed that actually plays this exact role today (the charly
toolchain localpkg deploy witness — opencharly-git pacman install + dep
auto-resolve) is check-charly-vm, per the /charly-check:check skill's
bed table. Corrected the comment to name it.

Companion charly-repo leg (same thematic hygiene batch, found this
reference while sweeping both repos for the same dead bed name):
opencharly/charly's feat/hygiene-batch — landing separately, no gitlink
bump from this PR (nothing else in that batch consumes this comment fix;
the next sdk-gitlink bump on the superproject side rides the in-flight W9
producer PR instead).

  • deploykit/candy_steps.go: corrected the stale bed-name comment.
  • CHANGELOG/2026.201.0000.md: placeholder entry (evaluator finalizes CalVer).

Change class

docs-only (comment-only edit, zero behavior change).

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: the non-runtime standards for docs-only (adversarial consistency review, R5 grep self-test, cross-reference validation) — no bed run, no build; a comment-only edit cannot fail a runtime gate.
  • Eval beds run: N/A (docs-only) — the change is a code comment; no bed can fail on it.
  • Fresh rebuild: N/A (docs-only) — confirmed the package still compiles (go build ./...) so the comment edit introduced no syntax error, but this is not an R10 runtime gate.
  • Did the CHANGED code path execute live? N/A (docs-only) — no code path changed, only a comment string.
  • Concurrency: N/A (docs-only).
$ cd sdk && GOWORK=off go build ./... && echo BUILD_OK
BUILD_OK

$ gofmt -l deploykit/candy_steps.go
(empty — clean)

$ git grep -n "check-charly-selftest-pod" -- . ':!CHANGELOG'
(empty — zero remaining stale references)

$ GOWORK=off golangci-lint run ./... 2>&1 | grep candy_steps.go
(empty — no findings)

Cross-reference validation: verified check-charly-vm is a real, currently-shipped bed (main-repo charly.yml:1005, documented in /charly-check:check's bed table as "the toolchain localpkg deploy witness (opencharly-git pacman install + dep auto-resolve) on the cloud VM" — the exact scenario this comment describes).

Attribution tier

documentation reviewed — the whole diff is a comment-only edit + a CHANGELOG placeholder; no behavior changed.

Harness rulebook compliance

  • R0 skills: /charly-internals:go (sdk source map / Go source rules), /charly-internals:strict-policy (R1 documentation-divergence handling), /charly-internals:git-workflow (B2 cross-repo landing order, sdk tag scheme).
  • R1 RCA + zero warnings: the stale reference is a documentation-divergence failure per R1; root-caused via git log --all -S in both repos tracing it to the original wrong-name commit; fix applied; go build/gofmt/golangci-lint all zero-warning.
  • R2 no out-of-scope: this is the sdk leg of the SAME thematic batch that surfaced it (a two-repo sweep for one dead bed name) — not deferred, landing now.
  • R3 no duplication: N/A — a single comment string, no pattern to unify.
  • R4 no workaround: N/A — no code behavior touched.
  • R5 hard cutover + grep: git grep -n "check-charly-selftest-pod" -- . ':!CHANGELOG' returns empty (pasted above) — zero live references remain.
  • R6 git safety: branched fresh off origin/main (fetched + confirmed feat/w9-loader-cone / sdk#75 touches zero overlapping files before pushing); no destructive action taken.
  • R7 runtime gate: N/A (docs-only, comment-only edit).
  • R8 artifact invariants: N/A (docs-only).
  • R9 binary == source + deps: N/A (docs-only, no binary/deps touched).
  • R10 disposable + coverage: N/A (docs-only — no runtime surface to prove).
  • RDD / ADE / SDD: N/A — no high-risk assumption, no candy/plan changed, no .cue schema touched.
  • Hard cutover: ONE atomic commit on this branch; no deferred scope.
  • Kernel/plugin boundary law: N/A — comment-only, no code placement changed.
  • Disposable-only autonomy: N/A — no destroy/rebuild performed.
  • Clean architecture + Go gates: gofmt -l . empty on the touched file; GOWORK=off golangci-lint run ./... 0 findings on the touched file; GOWORK=off go build ./... clean.
  • CHANGELOG: CHANGELOG/2026.201.0000.md staged (placeholder CalVer).

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (documentation reviewed)

The localpkg hard-error comment in WriteCandySteps cited a bed name that
has never existed in either repo's history. Corrected it to name
check-charly-vm, the bed that actually plays that role today.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: docs-only (comment-only edit in deploykit/candy_steps.go + a CHANGELOG/ placeholder entry; zero behavior change)

# Item Verdict
0 Security & anti-tampering (T1–T4) PASS — no exfiltration/secrets/network calls, no scope mismatch (diff = exactly one comment line + CHANGELOG, matching the description), no weakened guardrails, no supply-chain change, no embedded instruction to the validator in body/commits/comments
1 Description completeness PASS — full template: Summary, Change class, How R10-tested (with pasted commands/output), Attribution tier, per-rule R0–R10 HOW/N/A table
2 Change-class gate matches evidence PASS — docs-only class correctly identified; no bed/build claimed as R10 (none required); no fraud clause triggered
3 Attribution tier justified PASS — documentation reviewed is the ceiling for a whole-diff comment+CHANGELOG change; not inflated (no fully tested/analysed on a live system claimed)
4 R0 skills honored PASS — /charly-internals:go, /charly-internals:strict-policy, /charly-internals:git-workflow named and consistent with the change
5 R1 RCA, zero warnings, no forbidden framing PASS — root-caused via git log --all -S to the original wrong-name commit (independently reproduced below); gofmt -l . empty, go vet/go build/golangci-lint run all clean, go test ./... all green — zero warnings anywhere
6 R2 no pre-existing/out-of-scope split PASS — explicitly the sdk leg of the same thematic hygiene batch as charly#161, landing now, not deferred
7 R3 no duplication N/A — single comment string, nothing to unify
8 R4 no ad-hoc workaround N/A — no code behavior touched
9 R5 hard cutover + grep self-test PASS — independently re-ran git grep -n "check-charly-selftest-pod" FETCH_HEAD -- . ':!CHANGELOG' at the PR head: empty. Full-tree grep shows the phantom name survives ONLY inside CHANGELOG/2026.198.2057.md and CHANGELOG/2026.201.0542.md — both already-merged historical CalVer files, the sanctioned R5 exception
10 R6/R8/R9 artifact+binary integrity N/A — docs-only, no build/deploy/binary touched
11 R10 disposable-only/fresh-rebuild N/A — correctly classed docs-only; no runtime surface to prove
12 RDD/ADE/SDD N/A — no high-risk assumption, no candy/plan, no .cue/generated file touched
13 Concurrency mandate + anti-cheat N/A — no shared-state path touched; no "idle/serial/pre-existing" framing used anywhere in the PR
14 Hard cutover — one atomic commit PASS — single commit b05a875 on the branch, no Phase-2/TODO
15 Architecture Gate — placement review N/A — no charly/*.go touched (this is the sdk repo; only sdk/deploykit/candy_steps.go, a comment). No alias/kit-import/placement question arises.
placement: CORRECT (no placement change — comment-only)
16 Disposable-only autonomy N/A — no destroy/rebuild
17 Clean architecture + Go gates PASS — independently re-ran in a fresh detached worktree at the PR head: gofmt -l . empty, GOWORK=off go build ./... OK, GOWORK=off go vet ./... OK, GOWORK=off go test ./... all packages green, GOLANGCI_LINT_CACHE=<per-worktree> GOWORK=off golangci-lint run ./... → 0 issues
18 CHANGELOG present PASS — CHANGELOG/2026.201.0000.md staged; filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.201.0000 — fix stale bed-name reference in candy_steps.go comment byte-equals # <filename> — <title>; placeholder CalVer collides with neither an existing CHANGELOG/*.md nor a v*/v0.* tag on current main (verified via git ls-tree origin/main -- CHANGELOG and git ls-remote --tags)

Independent re-verification performed (not taking the author's word):

  • git log --all -S "check-charly-selftest-pod" --oneline in both sdk and the superproject charly repo: the name appears ONLY at the fix commit itself (sdk) and at the original incident commit 95b95c5 (charly) — confirms the phantom-name claim.
  • grep -n "check-charly-vm" charly.yml: confirms check-charly-vm is a real, currently-defined bed (line 1005) — confirms the replacement name is correct.
  • git merge-base origin/main origin/feat/hygiene-batch = 9b29e8b; origin/main HEAD is db63ef1 (one commit ahead: feat(spec,deploykit,loaderkit): CandyReader agent/terminal-profile accessors). Diffed the touched-file sets: main's advance touches CHANGELOG/2026.201.0636.md, deploykit/spec_candy_adapter.go, deploykit/spec_candy_adapter_test.go, loaderkit/scan_candy.go, loaderkit/scan_candy_test.go, schema/resolvedproject.cue, spec/candy_reader.go, spec/cue_types_gen.go — ZERO overlap with this PR's CHANGELOG/2026.201.0000.md + deploykit/candy_steps.go. Confirms BEHIND with a clean, non-conflicting update-branch.
  • Full go build ./... + go test ./... (all 12 testable packages) + golangci-lint run ./... (isolated cache) re-run fresh in a disposable detached worktree at the exact PR head — all green, matching the PR's pasted claims.

Comments considered: none — the PR carries zero comments.

Cross-PR interactions considered: opencharly/sdk has no other open PRs. opencharly/charly has #161 (the companion superproject leg of the same thematic batch — independent, own validator, no gitlink bump from this PR per the PR body), #159 (agent-config-drift-repair, unrelated files), #118 (P16 kernel-manifest gate, unrelated files) — none interacts with this PR's sdk/deploykit/candy_steps.go or CHANGELOG/2026.201.0000.md. disposition: none-found (informational note only for #161, no coordination comment needed — it does not depend on this PR merging first or vice versa).

Decision: PASS. This is a clean, narrowly-scoped, fully-evidenced documentation-only comment fix. Every claim in the PR body was independently re-derived rather than trusted: the phantom bed name, the replacement bed's existence, the zero-overlap BEHIND state, and all Go gates. Proceeding to Phase 3: update-branch → finalize CalVer → status → merge (squash) → tag.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)

atrawog added 2 commits July 20, 2026 08:47
pr-validator: rename CHANGELOG/2026.201.0000.md placeholder to its
merge-time CalVer and rewrite the H1 heading to match.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)
@atrawog
atrawog merged commit 5cf230d into main Jul 20, 2026
@atrawog
atrawog deleted the feat/hygiene-batch branch July 20, 2026 06:51
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Landing outcome (Phase 3 — all ALLOWED, zero denials):

  • gh pr update-branch 76 — ALLOWED (was BEHIND on db63ef1; zero file overlap confirmed independently before merging)
  • Delta re-gate on merged head 48b3bfa — go build/go vet/go test ./.../gofmt -l ./golangci-lint run ./... all clean
  • CalVer finalized: CHANGELOG/2026.201.0000.md → CHANGELOG/2026.201.0649.md, H1 rewritten, self-verified (git show HEAD:<path> | head -1)
  • charly/pr-validator status: success posted on b05a875 (PR head) AND re-posted on cbc516d (post-CalVer head) — both ALLOWED
  • gh pr merge --squash --delete-branch — ALLOWED, merge SHA 5cf230d70c09c140d56892463e3c92e9cb4cf471
  • Tag v0.2026201.649 (sdk Go-module scheme) — annotated, pushed, verified via git ls-remote --tags and git cat-file -t

No permission denials, no classifier blocks, no reshaping. Landing complete.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)

atrawog added a commit to opencharly/charly that referenced this pull request Jul 20, 2026
…tures, dead code, stale refs

Thematic hygiene batch (task #10) — four independently-surfaced, zero-file-overlap
fixes bundled per the Cutover Sizing Law:

1. Fixed `go vet` failures in `candy/plugin-http` + `candy/plugin-port`: both
   plugins' `fakeCC` test fixtures fell behind `kit.CheckContext` after the sdk
   control-plane work added `ResolveEndpoint`/`ResolveGraphicsEndpoint`/
   `ResolveClusterContext`/`ResolveImageLabel`. Patched each fixture with the
   four missing no-op methods.
2. Deleted the zero-caller `ValidatePreemptibleAcrossDeploy` and folded
   `defaultK8sOutputDir` out of the stray `bundle_add_cmd_k8s.go` into its
   sibling `k8s_generate.go`, deduping the inline copy in
   `k8s_deploy_from_box.go`. Fixed a stale doc comment in
   `candy/plugin-substrate/status_k8s.go` for the fourth copy, which the
   kernel/plugin boundary law forbids unifying across the core/plugin seam.
3. Swept the stale `check-charly-selftest-pod` bed-name reference; the one
   hit lives in the sdk submodule and lands as its own companion PR
   (opencharly/sdk#76) — this PR does not bump the sdk gitlink.
4. Added `scratchpad/` to `.gitignore`.

R10: independently re-verified by the fresh pr-validator on the exact head —
go build/vet/test/gofmt/golangci-lint clean across charly + plugin-http +
plugin-port + plugin-substrate (each GOWORK=off, own module); confirmed
RED-on-main -> GREEN-on-PR for the fixture fix by direct swap-test; R5 grep
self-tests re-run independently (clean); sdk + plugins gitlinks confirmed
byte-identical to origin/main. The k8s helper-fold's own R10 gate
(`check-k8s-deploy`, the deploy:k8s substrate's disposable bed) was run live
by the validator — 10/10 steps green, proving defaultK8sOutputDir/
GenerateK8sKustomize both pre- and post-charly-update.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
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