Repository navigation
feat(kit): P12a follow-up — pure-helper extraction tier + reportSteps dedup - #60
Conversation
Relocates the genuinely-portable half of the P12-rest RDD trace (the check/ADE surface) into sdk/kit and sdk/deploykit: AgentGrader (+ RunAgentOnce/parseVerdict/buildGraderPrompt), ContainerInspection + ResolveCheckVarsBuild/Runtime, the HTTP-do path (HTTPClientFor/ DoHTTPRequest/FormatHTTPHeaders), ValidatePlanSteps, and the local-image resolution surface (ListLocalImages/ResolveLocalImageRef/ ExtractCalVerTag/LooksLikeFullRef/ErrImageNotLocal) plus CheckBoxContainerChain in deploykit. Every piece needed no host callback — the trace's actionable finding was that this batch has a much larger movable-now surface than the P8b-rest precedent. BareVolumeName relocated from deploykit to kit (a pure string helper with no deploykit-specific coupling) so checkvars.go's mergeRuntimeVars can call it without a kit->deploykit import cycle; deploykit's own caller now calls kit.BareVolumeName. The GATED-R-ITEM half of the trace (needs the live core *Config/*Generator graph) is unchanged and joins the tracked K-wave-exit list. Verified via: go build/vet/test + golangci-lint (0 issues, after clearing a stale shared lint cache referencing another worktree) on every sdk package; gofmt clean. Assisted-by: Claude (fully tested and validated)
… dedup Relocates the 6 confirmed-movable pure helpers the P12a-rest trace scoped out (ParsePublishedPort, UnixToTCPBridge, CloseHostCleanups/CollectHostRefs/ SplitHostKey, MergeDeployDescriptions) into sdk/kit, and factors the format-selection + fail/infra classification duplicated between core and candy/plugin-check into kit.ReportStepResults/kit.ClassifyStepFailures. An RDD re-trace found 2 of the originally-listed 8 helpers are actually core-state-gated (waitForContainerReady, deployNestedLocalChildren) and correctly stayed put. Assisted-by: Claude (fully tested and validated)
PR #59 (the P12a-proper cutover) merged as 94956cd while this follow-up was in flight, renaming the placeholder CHANGELOG/2026.197.1300.md to the merge-time CHANGELOG/2026.197.1320.md. Moves this follow-up unit's content onto the canonical file and drops the now-orphaned placeholder-named copy. Assisted-by: Claude (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: charly-or-sdk Go (sdk library relocation — pure-helper follow-up tier, no wire-format/schema change) Checklist:
Comments considered: none (PR carries zero comments). Cross-PR interactions considered: sdk has no other open PRs. opencharly/charly currently has 2 open PRs (#130 fix/r10-validation-followup, #118 feat/p16-kernel-manifest-gate, which merges LAST by design) — neither touches sdk/kit content or this branch. opencharly/plugins has zero open PRs. Disposition: none-found. Decision: CHANGES REQUESTED. Every code-level check passes cleanly — the relocations are correctly placed, single-sourced, individually tested, and the RDD re-trace + the honest item-3(b) revert both reflect real engineering discipline. The BLOCKING issue is structural, not cosmetic: this PR edits the content of Assisted-by: Claude Sonnet 5 (analysed on a live system) |
…is PR A merged + tagged CHANGELOG file is immutable history, exactly like its tag — this PR's follow-up narrative belongs in its OWN entry, not folded into the already-shipped file. Reverted CHANGELOG/2026.197.1320.md byte-identical to origin/main and moved this PR's content (the 6 helpers, the R3 reportSteps dedup, the RDD correction, and the 3(b) revert) into a new placeholder CHANGELOG/2026.197.1600.md, which the validator re-stamps at merge as usual. Assisted-by: Claude (fully tested and validated)
|
Fixed the round-1 finding: reverted Pushed as commit 8a8c868 (append, not amend/force-push). |
pr-validator — APPROVED ✅ (round 2)Round 1 blocking finding: this PR modified the content of Round 2 verification (independently re-checked, not taken on the fix commit's word):
All other round-1 findings stand as PASS (see the round-1 comment for the full itemized checklist: R3 single-definition greps, architecture placement, the RDD re-trace, the item-3(b) revert handling, all Go gates). The CHANGELOG defect is now fully resolved. Decision: APPROVED. Proceeding to Phase 3 (CalVer finalization, merge, tag). Assisted-by: Claude Sonnet 5 (analysed on a live system) |
pr-validator finalization: rename the follow-up's placeholder CHANGELOG entry to the merge-time CalVer and correct its H1 to match. Assisted-by: Claude (fully tested and validated)
Summary of changes
Follow-up to PR #59 (P12a check/ADE architecture fold, already merged): relocates the "pure-helper" candidates the original P12a-rest trace scoped OUT of that cutover, plus a small dedup surfaced while investigating a related (ultimately reverted) move. Same wave member, same branch (
feat/p12a-check-fold), landing as its own PR because the predecessor already merged.kit/ports.go— newParsePublishedPort(+ports_test.go), relocated fromcharly/check_venue.go'sparsePublishedPort. Pure string parsing.kit/vnc_bridge.go(+vnc_bridge_test.go, new coverage) — newUnixToTCPBridge, relocated fromcharly/vnc_helpers.go'sunixToTcpBridge. Pure host-side networking (UNIX-socket→TCP bridge).kit/hostrefs.go(+hostrefs_test.go) — newCloseHostCleanups,CollectHostRefs,SplitHostKey, relocated fromcharly/check_members.go. Pure overspec.Op+ the already-kit-nativeTestVarRefs/CollectAnyStrings/HostVar.kit/description_merge.go— newMergeDeployDescriptions, relocated fromcharly/description_collect.go. Pure overLabelDescriptionSet/spec.Step(already kit-native types).kit/report.go— newReportStepResults/ClassifyStepFailures, factoring out a format-selection switch + fail/infra classification that was duplicated betweencharly/check_feature_run.go'sreportStepsandcandy/plugin-check/check_cmd.go'sreportSteps/failErrorFor(R3 — surfaced while investigating a candy/plugin-box move that was ultimately reverted; see the companion superproject PR).CHANGELOG/2026.197.1320.md— this follow-up's content folded into the merge-time-stamped file PR feat(kit)!: P12a check/ADE architecture fold — movable-now sub-batch #59 produced (the placeholder2026.197.1300.mdthis follow-up originally targeted no longer exists post-merge).RDD correction (no code follow-up needed, documented for the record): re-tracing the "pure-helper" candidates from FRESH reads (not trusting the prior trace) found 2 of the originally-listed 8 are actually GATED on core state (
charly/check_bed_run.go'swaitForContainerReady→loadedReadiness()→LoadUnified;deployNestedLocalChildren→nodeTraits()→ the provider registry) and correctly did NOT move.Change class
charly-or-sdk Go (sdk only; the companion charly-core repoint lands in the sibling superproject PR on the same branch).
How R10-tested — exact gate, commands, and pasted output
go build/go vet/gofmt/golangci-lint run+go test ./...on thesdkmodule (a pure library relocation — no bed directly exercisessdk/kitin isolation; the composing superproject'scharly check run check-sidecar-podbed is the real end-to-end gate and is reported in the sibling superproject PR).check-sidecar-pod, PASS, 12/12 steps, 315s) is reported and pasted in the companion superproject PR, which built its binary against this exact sdk commit (via the in-treego.workreplace directive).charly check run check-sidecar-podbed (superproject PR) driveskit.CollectHostRefs/kit.CloseHostCleanups/kit.MergeDeployDescriptionsthroughcharly check live's host-var resolution + description-merge paths live against a real deployed container, pluskit.ReportStepResults/kit.ClassifyStepFailuresthroughcandy/plugin-check'sfeature-runstep.Attribution tier
fully tested and validated— every new function has direct unit coverage AND is exercised live through the composing superproject'scheck-sidecar-podbed (PASS, 12/12 steps, fresh-rebuild included), reported in the sibling superproject PR.Assisted-by: Claude Sonnet 5 (fully tested and validated)Harness rulebook compliance
/charly-internals:go,/charly-internals:go-quality,/charly-internals:cutover-policy,/charly-internals:git-workflowloaded before touching Go source / landing.reportSteps/failErrorForduplication was surfaced while investigating a DIFFERENT item (acandy/plugin-boxmove) and fixed here immediately rather than deferred, since a 3rd copy would have been the R3 trigger.kit.ReportStepResults/kit.ClassifyStepFailureseliminate a duplicate that existed between charly-core andcandy/plugin-checkeven before this PR.git grep -n 'parsePublishedPort\|unixToTcpBridge\|\bcollectHostRefs\b\|\bsplitHostKey\b\|\bcloseHostCleanups\b'in the companion superproject repo returns only the CHANGELOG + this PR's own doc comments referencing the OLD names for context (no live core caller of the bare names remains — all repointed tokit.*).git status/git stash listchecked before the cross-repo merge conflict resolution (see the merge commit on the companion superproject branch).strings bin/charly | grep sdk/kit.<symbol>), reported in the superproject PR.check-sidecar-podbed (disposable, fresh-rebuilt) is the end-to-end proof, reported in the superproject PR.AgentGraderet al.); no kind-specific schema/switch introduced.gofmt -l .empty,golangci-lint run ./...0 issues,go vet ./...clean,go test ./...green (pasted above).CHANGELOG/2026.197.1320.mdupdated (the file PR feat(kit)!: P12a check/ADE architecture fold — movable-now sub-batch #59's merge produced) rather than a new placeholder, since this is the SAME wave member continuing on the SAME branch.