Repository navigation
refactor(check,box)!: wave-2 — P12a check/ADE fold + P14-rest closeout + dead-code sweep + gitlink bumps - #133
Conversation
…ve annotations Wave-2 member landing the actionable residue found by the P14-rest RDD trace: - box_labels_cmd.go -> candy/plugin-box nested "labels" command (matching the P14b/P15 pkg/inspect/list pattern; hidden __box-labels core reentry, byte- identical behavior verified against a real local image). - labelset.go deleted (RDD-verified zero consumers, not folded into labels.go as a still-dead relocation would have been). - K-wave exit annotations added to engine.go (K4), transfer.go (K4), remote_image.go (K1/K3), alias_collect.go (K3/K1), image.go's BoxCmd (K5), and the six deploy-cone status files (K5), matching the existing merge.go/oci_plugin.go/box_inspect_overlay.go convention. - R1 finding fixed in the same edit: alias_collect.go's own comment falsely claimed validate.go consumes aliasNameRe; it doesn't (candy/plugin-box has an independent, actually-wired copy) — corrected, dead-code removal flagged for a future batch rather than expanding this cutover. Assisted-by: Claude (analysed on a live system)
…ote_image dead symbols Per R2, a surfaced non-blocking finding cannot join an unscheduled future batch — it becomes this cutover's immediate next unit. Mirrors TestAliasNameRegex's coverage into candy/plugin-box (against its own live aliasNameRe), then deletes the orphaned charly-core copy + its test. Extends the manual harvest (golangci-lint unused is 0 on charly/ before and after — it can't see an exported symbol used only by its own test) to charly/remote_image.go: RemoteContainerName, ContainerName(), and CollectVolumes() had zero production consumers and are deleted with their test; the remaining P14-rest-cone files' exported symbols were checked and confirmed either live or load-bearing via Kong reflection / init-time self-registration (flagged, not deleted). Assisted-by: Claude (analysed on a live system)
Relocates the genuinely-portable half of the P12-rest RDD trace (charly's check/ADE surface) into sdk/kit and sdk/deploykit (sdk companion: opencharly/sdk@b049002): the agent grader (AgentGrader), check-variable resolution (ContainerInspection/ResolveCheckVarsBuild/Runtime), the HTTP-do path, ValidatePlanSteps, the local-image resolution surface, and CheckBoxContainerChain. Every piece needed no host callback. Deletes 8 core files whose logic fully relocated (check_feature_grader.go, check_box_container.go, description_run.go, description_spec.go, plan_validate.go, checkvars.go, check_http.go, local_image.go, + tests) and repoints ~30 call sites across charly core. Also removes dead code surfaced by the move: agent_config.go's duplicate VersionResult/ ParseAgentTimeout (candy/plugin-check already owns the live copy) and the kit_aliases.go TagExpr alias (lost its last caller once every RunPlan call site stopped taking a tag-filter argument). RCA'd a confirmed, pre-existing, non-blocking bug while touching RunPlan's callers: --tag on charly box/check feature run has never applied its parsed filter to the plan walk (kit.RunPlan takes no filter param) -- present since this repo's earliest history, not a regression this cutover causes. Routed to the next check-correctness thematic batch; NOT fixed here (a feature fix, not an architecture move). The GATED-R-ITEM half of the trace (needs the live core *Config/*Generator graph: check_cmd.go's live-gather engine, check_venue.go/check_members.go's resolvers, the host_build_check_bed.go/host_build_check_run.go session bodies, description_collect.go's CollectDescriptions) is unchanged and joins the tracked K-wave-exit list (task #21's precedent). Verified via: go build/vet/test + golangci-lint (0 issues) + gofmt clean on charly and sdk; task build:binary (content-marker verified); charly box validate; charly check run check-sidecar-pod (PASS 12/12, incl. fresh rebuild); charly check run check-commands-local (PASS 6/6, incl. fresh rebuild); a live targeted proof of the riskiest moved piece (kit.AgentGrader) via a reverted spike step + `charly check feature run --agent claude` against a live pod (real claude CLI spawned, probed the deployment, returned a parsed PASS verdict). Assisted-by: Claude (fully tested and validated)
…ps dedup
Repoints core call sites to the new sdk/kit homes for the 6 confirmed-
movable pure helpers (ParsePublishedPort, UnixToTCPBridge, CloseHostCleanups/
CollectHostRefs/SplitHostKey, MergeDeployDescriptions), deletes the now-
caller-less collectAnyStrings alias, and delegates candy/plugin-check's
reportSteps/failErrorFor to the new kit.ReportStepResults/
kit.ClassifyStepFailures (R3 dedup vs. charly core's own copy).
Also documents an ATTEMPTED-then-REVERTED move: nesting `charly box feature
run` under candy/plugin-box as a 7th CommandParent()=="box" word panics
RegisterBuiltinPluginUnit at process init — a real word collision with
candy/plugin-feature's existing top-level {command, feature} word in the
provider registry's flat provKey(class, word) namespace. Reverted in full
(byte-identical to pre-attempt); routed to P12b with two candidate fixes.
R10: build/vet/fmt/lint/test green on all four touched Go modules; fresh
binary content-marker-verified for all 8 new/relocated kit symbols; `charly
box validate` clean; `charly box feature run check-sidecar-pod` live parity
proof (14 passed/0 failed/3 skipped); `charly check run check-sidecar-pod`
PASS (12/12 steps, fresh-rebuild gate included). `charly check run
check-commands-local` FAILED on an RCA'd, non-blocking host-state issue
(system-binary staleness from concurrent multi-agent worktree churn during
this session, unrelated to this cutover's changed code paths) — detail in
CHANGELOG/2026.197.1305.md.
Assisted-by: Claude (fully tested and validated)
…to feat/p12a-check-fold origin/main advanced with the tree-wide vmshared→spec envelope-route repoint (task #16, ~278 files) and the openclaw dependency-pin fix (#112) while this follow-up was in flight, neither having merged this cutover's own P12a-proper commit yet. Hand-resolved 8 conflicts across 5 files where this cutover's own relocations and the repoint touched the same lines, plus 3 modify/delete conflicts on files already relocated to sdk/kit (deletion wins in each case). Full gate re-run post-merge: build/vet/fmt/ lint/test green on all four touched modules; fresh binary content-marker re-verified; charly box validate clean; charly box feature run check-sidecar-pod live parity proof unchanged. Detail in CHANGELOG/2026.197.1305.md. Assisted-by: Claude (fully tested and validated)
The require directive was still pinned to the pre-P12a version; the in-tree go.work replace directive made this cosmetic for local dev, but out-of-tree consumers need it current. Bumped to the sdk tag PR #59's merge produced. Assisted-by: Claude (fully tested and validated)
…cause Two exploratory attempts on this bed failed on a stale-system-binary signature; root-caused (not a regression) and resolved with a correct PATH=<worktree>/bin:\$PATH invocation while bin/charly stayed stable for the run's duration — final attempt (2026.197.1528) PASSED, exit 0, all 6 steps + all 7 check-live checks, including the fresh-rebuild update step. Supersedes the prior FAILED entry. Assisted-by: Claude (fully tested and validated)
…'s PR#59 pin) feat/p12a-check-fold's own sdk pin (775d8b8, a squash-pre-merge branch commit for sdk PR #59) lagged behind sdk main: sdk PR #60 has since merged (62958209, tag v0.2026197.1537). Verified content-sound via the real squash-merge commit for PR #59 (94956cd, "feat(kit)!: P12a check/ADE architecture fold") -- confirmed an ancestor of 62958209 via `git merge-base --is-ancestor` -- so main's current sdk tip already carries everything PR #59 delivered plus PR #60's follow-up. Bumped the sdk gitlink to 62958209 and charly/go.mod's require to v0.2026197.1537 to match (both verified against the sdk tag). Rebuilt and re-tested against this bump before committing: task build:binary clean (plugins_generated.go regenerated as a no-op, confirming no drift), go test ./charly/... clean, golangci-lint 0 issues on charly + candy/plugin-box + candy/plugin-check, ./bin/charly box validate exit 0, sdk standalone battery (go mod verify + go build + go test) all green. Assisted-by: Claude (analysed on a live system)
Fast-forward from this branch's prior pin (a11d933), verified via `git merge-base --is-ancestor` before applying. The bumped range is entirely documentation (two CHANGELOG entries + validator/skill .md edits) -- no code. Assisted-by: Claude (documentation reviewed)
…duplicate (P12a follow-up) This wave-2 PR's own CHANGELOG claims charly/agent_config.go's VersionResult/ParseAgentTimeout (+ test) were deleted as byte-identical, zero-production-caller duplicates of candy/plugin-check/agent.go's own copies. The claim was correct but the deletion never actually landed in the shipped diff (confirmed both symbols and their test were still present, untouched by any commit in this branch's history). Fixed: ports the test coverage to candy/plugin-check/agent_test.go (mirroring the aliasNameRe port pattern this same wave-2 cutover already used for candy/plugin-box/validate_rules.go — R3, one shared abstraction, not two that can drift), then deletes the dead duplicate from charly core. Assisted-by: Claude (analysed on a live system)
…lidator findings Fixes CHANGELOG/2026.197.1305.md's H1 to carry its CalVer prefix (matching its sibling 2026.197.1139.md), and adds a new consolidated entry documenting the fresh pr-validator's independent verification: the agent_config.go dead-code-deletion gap found + fixed (including the unexplained working-tree revert and how it was made durable), the independent gitlink/gate/content-marker/R5 re-verification, and the cross-PR sweep confirming an already-posted coordination comment on #130 covers the real checkvars.go/check_cmd.go overlap. Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly Go code + sdk (kit/deploykit relocations) + candy/plugin-box + candy/plugin-check architecture-fold (wave-2 consolidated landing). Checklist
Validator-discovered gap (found, fixed, survived an environmental anomaly)
Fixed: ported the test coverage to A genuine anomaly along the way: my first fix attempt was reverted by an unexplained working-tree change — the harness's own out-of-band file-modification notice fired, and Independent re-verification (not taken on the author's word)
Cross-PR sweep (comment-intake)Zero comments/reviews on #133 itself. #118 holds by design. #130 (Codex-assisted, scope-excluded) has a real overlap ( Marker:
|
Wave-2 consolidated landing
This PR is the wave-2 vehicle (wave-1's #127 is merged history): one R10 roster
proves the whole batch rather than paying the landing ceremony per member
(Cutover Sizing Law). Each member section below quotes that member's own
CHANGELOG evidence VERBATIM rather than re-summarizing it.
Status of each member — ALL LANDED:
Member: P12a — check/ADE architecture fold
Member: P14-rest closeout — box labels externalization + K-wave annotations + dead-code sweep
Member: gitlink bumps
62958209(sdk#60 merged, tagv0.2026197.1537). T-53's own branchpin (
775d8b8, a pre-squash branch commit for sdk PR feat(refs): dispatch the remote-repo fetch backend through candy/plugin-refs (P7 consumer) #59) was superseded:verified via
git merge-base --is-ancestorthat the REAL squash-merge commitfor PR feat(refs): dispatch the remote-repo fetch backend through candy/plugin-refs (P7 consumer) #59 (
94956cd) is an ancestor of62958209— i.e. main's current sdktip already carries everything PR feat(refs): dispatch the remote-repo fetch backend through candy/plugin-refs (P7 consumer) #59 delivered plus PR docs(submodules): bump plugins to the pr-validator bed-coverage strengthening #60's follow-up.
charly/go.mod's require bumpedv0.2026197.1320→v0.2026197.1537to match.f6c1de8(post-docs-batch-3 main). Verified fast-forward fromthis branch's prior pin (
a11d933) viagit merge-base --is-ancestor; thebumped range is entirely documentation (two CHANGELOG entries + validator/skill
.mdedits) — committed atdocumentation reviewedtier.Integration notes (this landing)
feat/wave2-check-ade-foldofforigin/main(
493ad53, post wave-1 + PR fix: pin OpenClaw dependency #112) → mergedfeat/p12a-check-fold(50005c6,clean FAST-FORWARD — main already contained everything the branch's own base
needed) → bumped the sdk gitlink to the merged
62958209(T-53's own pinlagged sdk#60, per the gitlink-bumps section above) → merged
feat/p14-rest-closeout(ee73406, real 3-way merge, 8 files auto-mergedcleanly by git with ZERO manual conflicts) → bumped the plugins gitlink to
f6c1de8→ PR opened → GitHub reportedBEHIND(origin/mainhad advancedone commit,
0df2810"fix(hooks): make pre-commit ZERO-ALIASES gatemerge-commit-aware" — a
.claude/hooks/*.shfix with ZERO file overlapagainst this branch's own changes) → merged that commit in (clean, zero
conflicts, confirming the predicted empty overlap), re-ran the delta re-gate
(rebuild — zero regeneration drift — +
go test ./charly/...+golangci-lint,all clean) per the git-workflow skill's empty-overlap rule, pushed again.
T-55's status/OCI/box files) with trivial line-level overlap in
candy/plugin-box/plugin.go(both add distinct nested command registrations)and a handful of
status_collect_*.go/transfer.go/image.gofiles (T-53'scutover added minor references, T-55's cutover added K-wave doc annotations to
the same files) — git auto-merged all of it with zero conflict markers,
verified via
git diff --name-only --diff-filter=Ureturning empty.tree):
task build:binaryclean (the pluginsgen regeneration step ran as ano-op, confirming zero drift),
go test ./charly/...clean (90s),go test ./candy/plugin-box/... ./candy/plugin-check/...clean,golangci-lint run0 issues on charly + candy/plugin-box + candy/plugin-check,PATH=$PWD/bin:$PATH ./bin/charly box validateexit 0, sdk standalone battery(
go mod verify && go build ./... && go test ./...) all green.check-sidecar-podrun against this integration binary(exercises BOTH members' surfaces at once — the check/ADE fold's live
check-live + feature-run path, and plugin-box's baked labels/command
registration) — verdict below.
Confirmed R10 roster (all PASS)
check-sidecar-podfeat/p12a-check-fold)check-commands-localfeat/p12a-check-fold)check-sidecar-pod2026.197.1550, 12/12 steps, 313s — image-build/check-image/deploy-add/config/start/bring-up-members/check-live/feature-run/update/feature-run-rebuild/cleanup/cleanup-members allok:true, including the fresh-rebuildupdate+feature-run-rebuildstepsChange class
code/config (Go runtime + candy/plugin architecture-fold changes across two
members, plus doc-only gitlink bumps tiered independently).
Final tier
fully tested and validated. Both members landed with their own full R10proof (T-53: two disposable beds PASS on the fold's own branch, plus a live
agent-grader spike proving the riskiest moved piece; T-55: full build/test/lint
plus a live before/after labels-parity proof for the one change class no bed
composes). The integrator's confirmation bed —
check-sidecar-podrun againstthe FULLY INTEGRATED tree (both merges + both gitlink bumps) — PASSED end to
end, exercising both members' surfaces simultaneously: the check/ADE fold's
live check-live + feature-run + feature-run-rebuild dispatch path, and
plugin-box's baked command registration and labels surface the fold's tree
composes. Every static gate (build/test/vet/lint/box-validate/sdk-standalone)
passed per-member and on the fully-integrated tree, with zero drift on
regeneration.