Repository navigation
feat(check,box)!: check-config seam death + inspect/list -> plugin-box off the resolved-project envelope (Collection A) - #102
Conversation
…x off the resolved-project envelope (Collection A) K5 Collection A super leg. The grown resolved-project envelope (sdk leg) replaces the check-config host seam and moves `charly box inspect`/`list` into candy/plugin-box. ~1.3-1.5k core LOC out. The validate ENGINE is DEFERRED to #60 (validate.go stays WHOLE + untouched, one-phase-clean). BREAKING: `charly box inspect <box>` default JSON (no --format) is now snake_case + omitempty (spec.ResolvedBoxView via json.MarshalIndent), replacing the former mixed-case json.Marshal(*ResolvedBox). Per --format outputs unchanged. The View is the already-landed K5U0 wire type with existing consumers; retagging it / a parallel def were rejected (R3), so inspect's default output becomes it. Removed (R5): host_build_check_config.go (the check-config seam) + check_include.go (ExpandPlanIncludes) + check_score_kind.go (ResolveIterateSandbox) + check_runner_cmd.go (scorePodTargetEntry) — the kind-blind splicers moved INTO candy/plugin-check, rewritten over the envelope (Deploy tree / CandyModels / BoxPlans / Templates); the dead ReadinessJSON + its bed_run.go:50 defer; core InspectCmd/ListCmd + the dead InitCandy/RouteCandy/VolumeCandy/AliasCandy predicate helpers. Added: candy/plugin-check resolveCheckProjection/expandPlanIncludes/resolveIterateSandbox off HostBuild("resolved-project"); candy/plugin-box command:inspect/list (inspect_list.go); the thin pod-disposable + __box-inspect-overlay/__box-list-tags M-core reentries; the resolved_project_host.go projector fill (projectCandyModel + box-aggregates + build-vocab + kind-blind projectTemplates + BoxPlans). Domain-1: R3 dead-dup check_score/check_substitute deleted (-473), tests relocated to plugin-check. Two stale "future statekit" comments corrected to the delivered K4-B reality (sdk/kit filelock/install_ledger/deployconfig). Deferred (named-exit): validate ENGINE (2242) + the resolve-machinery relocation -> #60; status-entangled -> #60/K2. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01WD8McDALhtfjau7kpJuRem
pr-validator — APPROVED ✅Change class: charly/sdk Go + config (superproject consumer leg — Collection A) Independently re-validated on a fresh assembled worktree at head
Verified myself (assembled worktree /tmp/super-pr102 @ 59f5a0e + sdk 3ff36ae): gitlink = Roster transfer: sdk Placement: check-config seam dies into the resolved-project envelope; inspect/list move OUTWARD to plugin-box; only genuine M-core stays with named exits (deploy-overlay reentry, image-store tags reentry, the thin Decision: APPROVED. Consumer leg of the producer-first landing — the merged sdk contract ( Assisted-by: Claude (analysed on a live system) |
…ject leg Merge-time version stamp applied by the fresh pr-validator (V-K5CHAIN): CHANGELOG placeholder 2026.194.2100 → 2026.194.2258 (file + H1). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01QsyQki2W7wiSbyrPtF25h1
…on (R44 super leg) Superproject (consumer) leg of the R44 exit-127 check-box store-contention fix (task #44). Consumes the breaking sdk R44 leg (ImageChain / disposable-box executor DELETED) and moves box-mode to ONE persistent container, plus the INFRA exit classification. - charly/check_box_container.go (NEW) checkBoxContainerChain: ONE `podman run -d --pull=never --entrypoint= <img> sleep infinity` + per-step `podman exec` + a single `rm -f` teardown; the container-CREATE failure is classified (kit.ClassifyContainerInfraFailure → kit.ContainerInfraError) into the INFRA exit class. O(N)→O(1) container setups (the passwd-race surface), unifying box-mode with `charly check live`'s exec model. - charly/host_build_check_run.go: hostCheckRunBox + hostFeatureBox switched off the deleted ImageChain. - candy/plugin-check/{check,live,feature}_cmd.go: ONE shared failErrorFor (R3) — infra-only exits 1 (INFRA class), a genuine check failure exits 2, mixed exits 2. Never a pass-by-exhaustion. - BREAKING (R5): the charly ImageChain alias + TestImageChain + JumpPodmanRun/JumpDockerRun aliases removed (sdk defs deleted in the R44 sdk leg); grep clean. - Coordinates: sdk gitlink → 28e56e0 (v0.2026194.2258), plugins gitlink → 7baffce (v2026.194.2306), charly/go.mod sdk require → v0.2026194.2258. Reconciled onto #102 (took #102's plugin-check .golangci.yml). Validated by a fresh pr-validator (independent context): full go gates re-run on the assembled head (gofmt/build/vet/golangci-lint 0 issues charly+plugin-check/go test PASS incl TestFailErrorFor), R5 grep clean, and an OWN live spot-verify — stamped binary built from the head, `check box check-sidecar-pod` through the persistent container → 12 steps 10-pass/0-fail exit 0, clean teardown. FLUSH2 78/80 (the 2 fails = task-#66 pre-existings) cross-checked. Assisted-by: Claude (fully tested and validated)
… pod plugin over F6 (+ #52) The K4 deploy-lifecycle DEEP-BODY move. `charly start` / `charly stop` / `charly service` no longer carry their pod-lifecycle BODIES in core — the host RESOLVES a plan and the `deploy:pod` plugin EXECUTES it over the F6 substrate-lifecycle channel. Core keeps only kind-blind dispatch (pod_lifecycle_{dispatch,resolve,verb}.go host-resolve `spec.PodLifecyclePlan`) + the host-process arbiter BRACKET (acquire before OpStart / release after OpStop / release on failure). Inline runDirect / runQuadlet / stopUnmountIfRequested bodies DELETED (R5 grep clean). Folds in the shared command-plugin `--help` fix (#52) at the sdk clidispatch root, wired across alias/box/bundle/check/migrate/status/vm; the parseLeaf (done,err) integration also extends the #52 discipline to `charly box inspect` (R2, an interaction with #102 already on main). shell / logs-follow / cmd stay M-core rows (F12/#62 — can't ride Invoke-and-reply); restart is thin-core (K5) — named exits, not incomplete seams. Depends on sdk v0.2026195.204 (opencharly/sdk#43, merged 529df36) — the clidispatch primitive + #PodLifecyclePlan/#PodExecReply carriers; the sdk gitlink + charly/go.mod require are finalized to that merged commit here (B2). go.sum completed for the kong v1.15.0 bump (validator fix round). Validated (fresh worktree, merged sdk gitlink): workspace go build/vet/test + golangci-lint 0 + gofmt clean; charly module GOWORK=off go mod verify = all modules verified; `charly box validate` clean; pluginsgen + cue:gen reproducible. Runtime: the concurrent 6-bed disposable roster all green through a fresh `charly update` (check-sidecar-pod ok:true with the new K4 check steps service-status-output-present + sidecar-pod-restarted PASS; check-commands-local; the VM lanes check-substrate/check-charly-vm/check-local-vm/check-k3s-vm all EXIT 0). Assisted-by: Claude (fully tested and validated)
…r-everything part 1 (cone capability out of core, -2,612 LOC) The first cutover of the "plugins-for-everything, 100%" program. Every cone's UNBLOCKED capability (the code that needs no loader-keystone refactor to relocate) moves from charly/ core into its owning plugin candy, importing only the sdk. Consumes the merged sdk contract leg (sdk PR #102); this PR's sdk gitlink points at the merged sdk commit (B2 producer-first). Net core non-test reduction: -2,612 LOC (55 files, +330/-2942; 11 charly/ files deleted). Cones relocated: - Build -> candy/plugin-build: privileged builder-bootstrap (privileged_runner.go/RunPrivileged -> sdk/buildkit), InitConfig/ capability-aggregation/envd-removal/7 pure helpers -> sdk/buildkit+sdk/kit, FilterBox -> sdk/deploykit. - Check -> candy/plugin-check: image-preflight discovery, container-network probe, resolveCheckApk -> sdk/kit.ResolveCommittedApk; CHARLY_BIN stamping + runtime check-var resolution -> sdk/kit. - Deploy -> candy/plugin-substrate/plugin-deploy-pod/plugin-adb: #DeployTraits.bracketed_lifecycle (SDD - the Q1-arbiter-bracket signal is now the DECLARED trait resolved by word, not lifecycleStartPlanHooks map presence); externalizedDeploySubstrates CUE-derived from spec.ResourceKinds (task #21); android google-play creds resolved peer-to-peer in plugin-adb via InvokeProvider(verb:credential). - Credential/enc -> candy/plugin-deploy-pod: pod start/stop enc-ensure/ enc-unmount/tunnel plan-building ported over InvokeProvider; dead credentialAwaiter interface deleted. - Settings/Config -> candy/plugin-settings: the runtime-config subsystem (GetConfigValue/SetConfigValue/ListConfigValues/ResetConfigValue/ resolveSettingsGet) ports from charly/runtime_config_values.go + charly/host_build_settings.go into candy/plugin-settings/config.go (pure kit.LoadRuntimeConfig/SaveRuntimeConfig I/O; the 3 credential-store touches via verb:credential InvokeProvider). The "settings" HostBuild seam is RETIRED - the plugin owns its config I/O. The regression this PR cleared (R1): the check-pod bed caught a blocking regression where the new bracketed_lifecycle trait was silently dropped on the ProvidedCapability proto round-trip because both the sdk encode and the charly decode copied only the pre-existing DeployTraits fields, producing a plugin-deploy-pod start decode failure. Fixed by carrying the field through encode+decode and deriving the bracket signal from the now-propagating declared trait. New unit test TestPluginDeployTarget_BracketedLifecycle keys on the word -> registry-resolved trait. Verification (R10) - the concurrent bed roster across all cones: - check-pod bed PASS (13 steps, fresh-rebuild) - build/check/deploy-pod bracket/credential-enc cones. Zero charly warnings. - check-k3s-vm bed PASS (8 steps, 326s) - deploy-vm + k8s cone. - check-commands-local bed PASS (6 steps, 185s, fresh-rebuild) - the Settings/Config cone: charly settings list exits 0 and lists the resolved runtime-config keys, proving the plugin-owned config I/O end-to-end after the seam retirement. - arch-pacstrap privileged-bootstrap box build SUCCESS - the build cone's relocated RunPrivileged/privileged builder-bootstrap. - All ran concurrently (the concurrency-safety gate for the shared deploy-dispatch path) - no cross-bed contention defect. - go test ./... (charly) green; sdk standalone battery green (see #102). - go vet clean; gofmt -l clean on every changed file. - R5 grep self-test: no present-tense reference to a deleted file/symbol remains (past-tense/provenance history kept). Round-2 fix (this merge): resolved the fresh pr-validator's round-1 CHANGES-REQUESTED finding - disclosed the Settings/Config cone in the PR title/body/CHANGELOG, and rewrote the stale "settings HostBuild seam" present-tense references in candy/plugin-settings/charly.yml, the root charly.yml check-commands-local bed plan, and charly/provider_command_test.go to describe the shipped plugin-owned architecture. Independently re-verified by a fresh pr-validator round 2: R5 grep self-test clean, doc-vs-code cross-check confirmed, settings R10 bed evidence confirmed real on disk, build/vet/test/lint/gitlink/aliases/ architecture all re-confirmed. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
What & why
Collection A — superproject (consumer) leg. The grown resolved-project envelope (sdk leg, merged as opencharly/sdk#40, tag
v0.2026194.2234) replaces thecheck-configHOST seam and movescharly box inspect/listintocandy/plugin-box. ~1.3–1.5k core LOC out. Part of the K5 core→plugin migration wave (task #54).Producer already landed: this PR bumps the
sdkgitlink →3ff36ae+charly/go.modrequire →v0.2026194.2234(in-tree builds resolve viareplace => ../sdk).Change class
Code / config. Runtime tier — the full 12-bed acceptance roster ran on the final assembled tree (this super leg + the merged sdk). The merged sdk (
3ff36ae) is code-identical to the roster's sdk (cb76bf9): the only merge delta is the CHANGELOG rename, zero.go/.cue— so the roster verdict holds verbatim.!BREAKING —charly box inspect <box>default JSON is now snake_caseThe no-
--formatdefault marshals the wire-safespec.ResolvedBoxView(snake_case + omitempty), replacingjson.Marshal(*ResolvedBox)(mixed-case). Per---formatoutputs unchanged. The View is the already-landed K5U0 wire type with existing consumers — retagging/duplicating it was rejected (R3), so inspect's output becomes it. In-tree consumers of the old casing were swept; external-facing only.Removed (R5 — the check-config seam + its mechanisms die)
charly/host_build_check_config.go(the whole check-config host-builder +checkConfigBuilderKind).charly/check_include.go(ExpandPlanIncludes) +charly/check_score_kind.go(ResolveIterateSandbox) — moved INTO candy/plugin-check (kind-blind splicers, rewritten over the envelope's Deploy tree + CandyModels + BoxPlans + Templates).charly/check_runner_cmd.go(scorePodTargetEntry) — the per-host-overlay pod-disposability read now rides a thinpod-disposablehost seam.ReadinessJSON+ the deadbed_run.go:50defer.charly/main.goInspectCmd/ListCmd+alias_collect.go ListAliasesCmd+volume_cp_tags_cmd.go ListTagsCmdregistration + the now-deadInitCandy/RouteCandy/VolumeCandy/AliasCandypredicate helpers.check_score.go/check_substitute.go(−473); score/substitute tests relocated to plugin-check.Added / Changed
HostBuild("resolved-project"):resolveCheckProjection+expandPlanIncludes(candy→CandyModels, box→BoxPlans, pod/vm→Templates RawBody) +resolveIterateSandbox.command:inspect+command:listconsuming the envelope; the M-core overlay/store branches ride hidden__box-inspect-overlay/__box-list-tagsreentries.charly/resolved_project_host.goprojector fills the grown envelope (projectCandyModel; box-aggregate collectors; build-vocab from LoadDefaultBuildConfig; kind-blindprojectTemplates→ RawBody; AgentBodies; BuildTargets; BoxPlans via CollectDescriptions).charly/host_build_pod_disposable.go— the thin per-host-overlay pod-disposability seam.charly bundle add … --disposable+charly startremediation when its container isn't running, instead of the bare exit-125 the downstreampodman execemitted. Unit-tested via apodContainerRunningseam.R10 evidence — 12/12 beds GREEN (corroborated on disk)
ok:true, real durations 145–536s — no prereq-skip masking). The k3s pair was phased (check-k8s-deploy passed solo at 392s) around the pre-existing 16443 collision (finding docs: bump plugins → pr-validator always comments on the PR #2).go build ./...OK ·go test ./...PASS ·golangci-lint0 ·gofmtsilent.Box-arm resolution identity (proven statically)
The relocated include-splicer's box arm resolves via the host-flattened
BoxPlans(ScanAllCandy), byte-identical to the former coreScanCandy:fedora.jupyter→ 0 steps,composition-source→ 2 steps.Diagnostic round (2 findings, both RCA'd)
Per-surface enabler tiers (honest)
analysed on a live system, K5U0 precedent): the build vocabulary maps (Distro/Builder/Init) + the CandyModel validate-widen fields — consumer is the next unit (docs(submodules): bump plugins to the pr-validator bed-coverage strengthening #60 / K3-D validate).Deferred (named-exit rows)
deploykit.CandyModelinterface a flat struct can't satisfy;*Config-onlyComputeIntermediates+ namespace resolver).validate.gostays WHOLE + untouched in core, one-phase-clean. docs(submodules): bump plugins to the pr-validator bed-coverage strengthening #60 owns the K3-D resolve half + the OpValidateProject seam (chore(box/cachyos): bump gitlink — charly-cachyos is no longer a check bed #46, folded).Checklist
fully tested and validatedAssisted-by: Claude (fully tested and validated)