Skip to content

feat(check,box)!: check-config seam death + inspect/list -> plugin-box off the resolved-project envelope (Collection A) - #102

Merged
atrawog merged 2 commits into
mainfrom
feat/k5u1-check-collection
Jul 13, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/k5u1-check-collection

Conversation

@atrawog

@atrawog atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What & why

Collection A — superproject (consumer) leg. The grown resolved-project envelope (sdk leg, merged as opencharly/sdk#40, tag v0.2026194.2234) replaces the check-config HOST seam and moves charly box inspect/list into candy/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 sdk gitlink → 3ff36ae + charly/go.mod require → v0.2026194.2234 (in-tree builds resolve via replace => ../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_case

The no---format default marshals the wire-safe spec.ResolvedBoxView (snake_case + omitempty), replacing json.Marshal(*ResolvedBox) (mixed-case). Per---format outputs 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 thin pod-disposable host seam.
  • The reply's dead ReadinessJSON + the dead bed_run.go:50 defer.
  • charly/main.go InspectCmd/ListCmd + alias_collect.go ListAliasesCmd + volume_cp_tags_cmd.go ListTagsCmd registration + the now-dead InitCandy/RouteCandy/VolumeCandy/AliasCandy predicate helpers.
  • Domain-1: R3 dead-dup check_score.go/check_substitute.go (−473); score/substitute tests relocated to plugin-check.

Added / Changed

  • candy/plugin-check computes the former check-config projection off HostBuild("resolved-project"): resolveCheckProjection + expandPlanIncludes (candy→CandyModels, box→BoxPlans, pod/vm→Templates RawBody) + resolveIterateSandbox.
  • candy/plugin-box gains command:inspect + command:list consuming the envelope; the M-core overlay/store branches ride hidden __box-inspect-overlay/__box-list-tags reentries.
  • charly/resolved_project_host.go projector fills the grown envelope (projectCandyModel; box-aggregate collectors; build-vocab from LoadDefaultBuildConfig; kind-blind projectTemplates → RawBody; AgentBodies; BuildTargets; BoxPlans via CollectDescriptions).
  • charly/host_build_pod_disposable.go — the thin per-host-overlay pod-disposability seam.
  • Iterate-sandbox preflight remediation (R2, folded from the acceptance roster / finding feat!: PR-only agent-validated landing — forbid + disable direct pushes to main #1): a non-disposable pod sandbox now fails EARLY with a charly bundle add … --disposable + charly start remediation when its container isn't running, instead of the bare exit-125 the downstream podman exec emitted. Unit-tested via a podContainerRunning seam.
  • Two stale "future statekit" comments (runlocal.go:255, host_build_check_bed.go:41-42) corrected to K4-B reality.

R10 evidence — 12/12 beds GREEN (corroborated on disk)

  • 12/12 beds PASS on the final assembled tree, all 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).
  • Assembled-tree gates re-run against the merged sdk: go build ./... OK · go test ./... PASS · golangci-lint 0 · gofmt silent.

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 core ScanCandy: fedora.jupyter → 0 steps, composition-source → 2 steps.

Diagnostic round (2 findings, both RCA'd)

Per-surface enabler tiers (honest)

Deferred (named-exit rows)

Checklist

Assisted-by: Claude (fully tested and validated)

…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
@atrawog

atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go + config (superproject consumer leg — Collection A)

Independently re-validated on a fresh assembled worktree at head 59f5a0ecc (base e1e5f69, ONE atomic commit, up-to-date with main; sdk submodule assembled at the gitlink 3ff36ae).

# Rule Verdict
0 security & anti-tampering (T1–T4) PASS — new plugin-check/.golangci.yml heightened-reviewed: adversarially re-ran plugin-check under charly's STRICT full linter set → 0 issues (hides nothing); supply-chain = the legit sdk gitlink+tag bump only
1 description complete PASS
2 change-class gate (R7/R10) PASS — go test + build + the roster that composes check + box
3 attribution tier PASS — fully tested and validated honest; #60-enablers sub-tiered analysed on a live system
4 R0 skills honored PASS — plugin boundary-law, check, go, strict-policy, cutover
5 R1 RCA / ZERO warnings PASS — golangci 0 / gofmt / no build warnings; findings RCA'd; statekit comments = R1 corrections
6 R2 no pre-existing split PASS — 16443 → #65; scaffolding-selftest external/iterate-class (remediation folded here)
7 R3 no duplication PASS — domain-1 dedup (−473); ResolvedBoxView reused, not retagged
8 R4 no ad-hoc workaround PASS — sandbox remediation = early-fail + podContainerRunning seam, not sleep/retry
9 R5 hard cutover + grep PASS — check-config seam + mechanisms DELETED/relocated; removed ids only in CHANGELOG + lineage comments + relocated test names; snake_case break swept; no dual-mode
10 R6/R8/R9 PASS/N/A — R9 rebuilt binary via roster
11 R10 disposable/fresh-rebuild/zero-warning/coverage PASS — 12/12 roster corroborated vs the code-identical tree (= this exact head); relocated+new tests
12 RDD / ADE / SDD @100% PASS — spikes proven; plugin-box ADE intact; TestPluginsGenReproducible PASS; TestNoConcreteKindInKernel PASS
13 concurrency + anti-cheat PASS — 11 beds concurrent one-binary; k8s-deploy phased solo for a pre-existing hardcoded-port collision
14 hard cutover — one atomic commit PASS — 1 commit; validate.go stays WHOLE untouched (validate ENGINE = its own cutover #60); no Phase-2
15 ARCHITECTURE GATE — placement PASS — placement: CORRECT
16 disposable-only autonomy PASS
17 clean architecture + go gates PASS — gofmt/golangci-0/vet/test all re-run green on the assembled head
18 CHANGELOG present PASS (placeholder; finalized at merge)

Verified myself (assembled worktree /tmp/super-pr102 @ 59f5a0e + sdk 3ff36ae): gitlink = 3ff36ae exact · go.mod require v0.2026194.2234 · go build/go vet exit 0 (charly + plugin-box + plugin-check) · go test ./... all PASS · TestNoConcreteKindInKernel PASS · TestPluginsGenReproducible PASS · golangci-lint 0 issues ×3 modules · gofmt clean · import-purity (no new kit import) · zero-alias (no alias file added/grown) · R5 grep clean.

Roster transfer: sdk cb76bf95..3ff36ae is a CHANGELOG rename only (zero .go/.cue), and the roster tree charly-wt-k5u1 IS at this exact head (charly/candy diff = 0 lines), so the 12/12 disposable roster (ok:true, 145–536s, real build→deploy→check-live→update→cleanup) holds verbatim on the assembled tree.

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 pod-disposable seam for the Mode-Purity-excluded overlay fact, the kind-blind projector). Net core-LOC strongly negative.

Decision: APPROVED. Consumer leg of the producer-first landing — the merged sdk contract (v0.2026194.2234) is on main; this assembled tree is fully validated.

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
@atrawog
atrawog merged commit 683bcea into main Jul 13, 2026
@atrawog
atrawog deleted the feat/k5u1-check-collection branch July 13, 2026 23:00
atrawog added a commit that referenced this pull request Jul 14, 2026
…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)
atrawog added a commit that referenced this pull request Jul 14, 2026
… 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)
atrawog added a commit that referenced this pull request Jul 25, 2026
…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)
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