Skip to content

feat(config,check,build,deploy)!: FLOOR-SLIM Wave 1 — mechanical batch + Config restructure + check envelope + installstep envelope - #172

Merged
atrawog merged 18 commits into
mainfrom
feat/floorslim-wave1
Jul 21, 2026
Merged

atrawog merged 18 commits into
mainfrom
feat/floorslim-wave1

Conversation

@atrawog

@atrawog atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

The superproject leg of FLOOR-SLIM Wave 1 (core-minimization program): four
implementation units consolidated on feat/floorslim-wave1, landing with the
already-merged sdk leg (sdk#84 → a4f14bd, v0.2026202.1522) and plugins docs
leg (plugins#98 → beb2eda, v2026.202.1526) via gitlink repoints. Net:
charly/ core non-test LOC 38,944 → 36,935 (−2,009); axis-A kit-import
files 130 → 128; alias files still 1 (vmshared_aliases.go, −17 names).
Full narrative: CHANGELOG/2026.202.1500.md (placeholder CalVer).

  • Mechanical batch: dead InstallHint() + ValidPublicPorts deleted (+
    false-header fix); graph_shim.go DELETED (8 callers → deploykit directly);
    17 vmshared alias names deleted; process-lifecycle plumbing consumers →
    the new sdk/proclifecycle leaf (main.go imports it directly); axis-A
    spec-promotions drop kit imports in 5 files;
    validateDeploymentTree family → spec/deploy_tree_validate.go.
  • Config restructure: type Config = spec.Config; buildkit-typed
    resolvers now buildkit.* free functions; candy_chain.go DELETED
    (→ deploykit.BoxCandyChain); namespace.go reduced to registry-coupled
    residue; config.go keeps LoadConfig + thin fallback wrappers; ResolveOpts
    stays flat with toBuildkitOpts(); ~27 consumer files repointed; 5 pure
    vm-deploy-state fns → sdk.
  • Check envelope + family: checkrun.go alias block DELETED — floor files
    reference spec.CheckResult/spec.Status* directly (zero new kit imports);
    breaking (!) --format json/TAP key rename (Op→op, Verb→verb,
    Status→status, Message→message, Elapsed→elapsed);
    capabilities.go machinery + description_collect.go → deploykit;
    checkspec.go VerbCatalog data → spec; vnc_helpers.go folded into its
    caller.
  • plugin-installstep envelope adoption: the 4 host-coupled step words emit
    from an envelope-built deploykit.Generator (production-proven
    NewRenderGeneratorFromProject); step_emit_hostbuild.go 385 → 137 LOC;
    dead Generator.emitTasks/.buildStageContext shims deleted; the
    "resolved-project" seam now populates ExternalizedBuilders.
  • Blocked/sequenced with NAMED exits (not dropped): selection widening +
    k3s_post.go + the check-dispatch seam endgame → the
    venue-scoped-executor-session design phase; host_build_check_run.go
    business logic K1-blocked (documented).

Change class

charly-or-sdk Go — cross-repo consumer leg. Repos + landing order:
sdk#84 (MERGED a4f14bd) → plugins#98 (MERGED beb2eda) → this PR (last).

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

  • The gate for this change class: cross-cutting loader/config/check/deploy/
    build change → the concurrent disposable-bed roster + go test + per-worktree
    rebuild; plus a live --format json probe for the breaking wire change.
  • Eval beds run — exact beds + per-bed results (integrated tree, ONE binary
    charly version = 2026.202.1429, shared run-calver
    .check/<bed>/2026.202.1437/, launched CONCURRENTLY in one batch of six):
    • check-sidecar-pod | pod(+ephemeral vm member) | ok | 17 steps | 1071s
    • check-charly-vm | vm (localpkg packaged-build path) | ok | 8 steps | 538s
    • check-k8s-deploy | vm→k8s | ok | 10 steps | 815s
    • check-group | group(vm+pod members) | ok | 7 steps | 613s
    • check-substrate | pod | ok | 10 steps | 413s
    • check-builder-vm | vm (builder/step-emit path) | ok | 10 steps | 429s
  • Fresh rebuild: task build:binary on the integrated tree (binary
    2026.202.1429 for the roster; rebuilt again post-gitlink-repoint as
    2026.202.1503 with go build/vet/full go test re-run green — the repoint
    delta is the two squash SHAs whose content byte-matches the already-gated
    branches plus CHANGELOG renames).
  • Did the CHANGED code path execute live? YES — live --format json probe
    (fresh image 2026.202.1448 built + baked plan run) shows the new snake_case
    keys; check-builder-vm exercised the envelope-driven emit; check-charly-vm
    exercised the packaged path incl. proclifecycle; every bed drives the
    restructured Config resolvers.
  • Concurrency (shared-state changes only): the six-bed batch above IS the
    concurrent run (shared podman store + arbiter + loader). Zero concurrency
    defects.
charly check run check-sidecar-pod: PASS (steps=17)  EXIT_CODE=0
charly check run check-charly-vm:  PASS (steps=8)    EXIT_CODE=0
charly check run check-k8s-deploy: PASS (steps=10)   EXIT_CODE=0
charly check run check-group:      PASS (steps=7)    EXIT_CODE=0
charly check run check-substrate:  PASS (steps=10)   EXIT_CODE=0
charly check run check-builder-vm: PASS (steps=10)   EXIT_CODE=0

$ charly check box check-sidecar-pod --format json   (live probe)
      "verb": "plugin",
      "status": 0,
      "message": "ok",
      "elapsed": 88280907,
      ...
Post-repoint delta re-gate: task build:binary → 2026.202.1503;
go build/vet ./charly/... clean; go test ./charly/... ok (134.9s).

Attribution tier

fully tested and validated — the changed code paths executed live against
fresh rebuilds (roster + probe above); the post-repoint delta re-gate re-ran
build+vet+test green.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: go/plugin/strict-policy/cutover-policy/git-workflow (+check,
    build/generate, deploy/install-plan per unit) loaded by every implementing
    teammate + the orchestrator; rulings R-FS1..R-FS11 recorded.
  • R1 RCA + zero warnings: every failure RCA'd (integration parity fail →
    uninitialized box/fedora fixture submodule; sdk round-1 gofmt; a cross-test
    provider-registration pollution → snapshotProviderState swap-restore). Zero
    warnings on 5 beds; check-k8s-deploy's plugin-protocol warning RCA'd with
    evidence as PRE-EXISTING environmental (host opencharly-git 2026.196 predates
    the 2026-07-19 ProtocolVersion 1→2 landing 76df6c0 — untouched here;
    check-charly-vm's fresh-package path is warning-free at v2). Fresh package
    built (dist/opencharly-git-2026.202.1140-1); install is operator-gated
    (root).
  • R2 no out-of-scope: all surfaced issues fixed in-wave (dead duplicates,
    dead exports, stale comment pointers in candy/plugin-bundle +
    plugin-deploy-vm, seam.cue regen drift) or registered with NAMED landing
    units (design-phase register; go-quality batch for pre-existing sdk lint).
  • R3 no duplication: every relocation deletes the old copy same-commit; one
    shared Generator constructor; the dead stampStepIntentDo +
    pruneStaleVmDottedTwin duplicates caught and deleted at integration.
  • R4 no workaround: none; no sleeps/retries/shims introduced.
  • R5 hard cutover + grep: deleted identifiers (graph_shim, charly-side
    boxCandyChain, checkrun aliases, ValidPublicPorts, InstallHint func, 17
    vmshared alias names, vmshared/cleanup.go, Generator.emitTasks/
    .buildStageContext) grep-verified — only CHANGELOG/historical context
    remains; the false tunnel.go header and the stale P12 claims swept; ZERO
    transitional/dual-mode paths in the final code (the roster ran against it).
  • R6 git safety: merges only; no force-pushes; no amends on pushed
    branches; the one submodule-gitlink conflict resolved descendant-verified
    (merge-base --is-ancestor), one detached-HEAD slip recovered fast-forward
    with no data loss (documented).
  • R7 runtime gate: the six-bed roster (not just go test).
  • R8 artifact invariants: the 5-fixture envelope parity test compares
    emitted fragments + BakedMetadata (the OCI-label wire form) byte-for-byte,
    incl. plugin:-verb candies; check-builder-vm + a real charly box build
    exercised generation live.
  • R9 binary == source + deps: per-worktree task build:binary; charly version matches at every stage (2026.202.1429 roster / 2026.202.1503
    post-repoint); no new runtime OS deps (proclifecycle is stdlib-only).
  • R10 disposable + coverage: disposable: true beds only; new coverage
    that fails without the change: wire-parity goldens (sdk), the envelope parity
    test (charly), relocated fn tests; fresh rebuilds inside every bed.
  • RDD / ADE / SDD: RDD — the K3-envelope spike ran BEFORE the installstep
    unit (found the mechanism already production-proven); high-risk claims
    bed-proven throughout. ADE — no candy plan/description surface changed
    (charly box validate green inside the beds). SDD — spec.CheckResult
    CUE-sourced; TestGenReproducible green; BuildEnv extension registered as
    CUE-conversion debt with in-file markers.
  • Hard cutover: ONE squash per repo (sdk + plugins already landed; this PR
    is the third); no Phase-2/TODO; the wave scope executed with every deviation
    ruled and recorded; transitional-free final code gated.
  • Kernel/plugin boundary law: core sheds concrete-kind/business logic to
    plugins+kits (installstep emitters, check family, Config resolvers); what
    stays is E/M/B/D or has a NAMED K-wave/design exit (no silent floor
    additions — floor-list changes await the operator's FLOOR-SLIM ruling on
    feat(gate): RED kernel-manifest floor gate — the C15 residue tracker (merges LAST) #118); spec imports neither buildkit nor deploykit (verified).
  • Disposable-only autonomy: all destroys/rebuilds on disposable: true
    beds.
  • Clean architecture + Go gates: gofmt -l empty (post sdk round-1 fix),
    golangci-lint run 0 issues (charly + touched sdk/plugin modules), go vet
    clean, go test ./... green — on the final integrated tree.
  • CHANGELOG: CHANGELOG/2026.202.1500.md staged (placeholder — finalize at
    merge; tag v<YYYY.DDD.HHMM>).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)

https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj

atrawog added 17 commits July 21, 2026 14:48
…ared/deploykit)

FLOOR-SLIM Unit 3 (P13/K4-C bundle-dispatch): vm_deploy_state.go's pure
helpers (vmNameFromDeployName, splitVmAddress, resolveVmSshPort,
pruneStaleVmDottedTwin, vmDeployEntryKeys) moved to sdk/vmshared +
sdk/deploykit (see the sdk submodule commit for the split rationale — a
deploykit<->vmshared import-cycle constraint the scoping map's "all five to
vmshared" framing missed). charly/vm_deploy_state.go keeps only the
pluginPrimaries-registry-coupled write path (saveVmDeployState/
removeVmDeployEntry). All three external call sites repointed
(bundle_add_cmd.go, check_cmd.go, host_build_deploy_node_del_dispatch.go).
Tests relocated with their functions; charly/vm_ssh_port_test.go deleted
(fully superseded by sdk/deploykit's TestResolveVmSshPort). R5 stale-reference
sweep clean.

Bumps the sdk gitlink to 0b436b9 (adds the relocated helpers + tests).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
… data move

Corrects the FLOOR-SLIM scoping map's Cluster-2 estimate for the CHECK-ENVELOPE
+ FAMILY unit after independent call-chain verification of every assigned
file: most of the "MOVE" verdicts in that map do not survive direct code
inspection (check_kit_adapter.go/planrun_adapter.go/checkrun_act.go's bulk are
core registry-adapter glue; host_build_check_run.go's business logic is
K1-blocked via LoadUnified; cue_kind_check.go/cue_kind_k8s.go are core
kind-recognition D-clause data; description_collect.go is blocked on a
different unit's config.go move; agent_config.go's only caller is itself
K1-blocked). This lands the confirmed-safe slice; the rest is reported back to
the orchestrator for a corrected unit scope. Purely internal Go refactoring —
no YAML/CLI/OCI-label surface changes, so no breaking-change marker.

- Delete charly/capabilities.go's `Capabilities` alias (ZERO-ALIASES residue)
  and its label-completeness machinery — moved to sdk/deploykit/
  capabilities.go (pure over spec.BoxMetadata + deploykit.ExtractMetadata, zero
  registry/LoadUnified coupling). Repoint the 3 real consumers
  (host_build_k8s_generate.go, k8s_generate.go, k8s_deploy_from_box.go) to
  spec.BoxMetadata / deploykit.CapabilitiesFromLabels directly.
- Split checkspec.go: the pure per-verb metadata DATA (VerbSpec/VerbCatalog/
  installVerbs) moves to sdk/spec/verb_context.go, alongside the DoMode/
  ExecContext enums it is built from. The registry-coupled FUNCTIONS
  (opActsInBuildDeploy/opEffectiveDo/opEffectiveContexts/opInContext) stay —
  they dispatch through providerRegistry.ResolveVerb/ResolveStep, a
  package-main-private mechanism no separate module can reach.
- Delete checkrun_act.go's shQuoteArg (a 1-line kit.ShQuoteArg re-export);
  repoint its 2 call sites in deploy_target_external.go directly.
- Fold vnc_helpers.go's resolveVNCPassword into check_endpoint_resolve.go (its
  sole caller's file) — in-core consolidation, not a plugin move (the
  out-of-process plugin cannot reach the credential store).

charly/ core non-test LOC: 38,944 → 38,643 (-301).

go test ./... / go vet ./... / golangci-lint run ./... all clean in charly and
sdk (GOWORK=off standalone); sdk/spec TestGenReproducible clean (verb_context.go
is hand-written, not CUE-generated, so no regen drift).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
…letion, axis-A kit-import drops

FLOOR-SLIM K5 mechanical batch (charly core-minimization program), the
MECHANICAL BATCH = scoping map §c Units 1+2+5:

1. Dead code (orchestrator-verified):
   - charly/distro.go: deleted InstallHint() (dead — zero charly-core callers;
     candy/plugin-vm has its own independent InstallHint). installHints var
     kept (live via host_build_hostprobe.go:96).
   - charly/tunnel.go: deleted ValidPublicPorts (zero refs anywhere; the file's
     own header falsely claimed it was consulted — fixed in the same change,
     R1). Moved the pure resolution fns (ResolveTunnelConfig/
     TunnelConfigFromMetadata/parseHostPorts/buildPortMapping/resolveProto) to
     sdk/deploykit/tunnel_resolve.go; charly/tunnel.go now aliases the two
     entry points. Test moved to sdk/deploykit/tunnel_resolve_test.go.

2. charly/graph_shim.go: DELETED (a pure P8-transitional wrapper shim). Its 8
   callers (candy_chain.go, bundle_compile_seam.go, engine.go,
   render_baked_metadata.go, build.go, build_resolve_host.go,
   resolved_project_host.go, render_prep.go) now call
   deploykit.ResolveCandyOrder/ResolveBoxOrder/ResolveBoxLevels/
   CandyProvidedByBox/BoxDirectDeps directly. graph_test.go's candy-
   composition/bootstrap-builder/image-level coverage relocated to
   sdk/deploykit/graph_shim_relocated_test.go (deploykit's own graph_test.go
   didn't already cover these scenarios). Fixed a stale "Mirrors
   graph_shim.go" comment in intermediates_shim.go (R5).

3. vmshared_aliases.go: deleted the 12 zero-usage names (AliasYAML,
   CandyCapabilities, DataYAML, DecrementSnapshotRefcount, ExtractYAML,
   IncrementSnapshotRefcount, ResolveKeyInjectionChannels, SecretYAML,
   SnapshotCreateOpts, SnapshotEntry, StepKeyword, WriteSeedISO) —
   grep-verified zero usage. cleanup.go (RegisterShutdownHook/
   RegisterTempCleanup/UnregisterTempCleanup/InstallSignalHandler/
   SweepStaleTemps) does NOT relocate into charly — verified that
   RegisterTempCleanup/UnregisterTempCleanup/InstallSignalHandler are called
   DIRECTLY (not via any charly alias) from candy/plugin-enc, candy/plugin-oci,
   candy/plugin-vm, candy/plugin-secrets, and sdk/deploykit/localpkg.go — a
   genuinely shared library, not a main.go-only dependency. See orchestrator
   report for full evidence.

5. Axis-A mechanical (drop kit import via sdk/spec promotion, zero logic
   change):
   - plugin_provider_common.go: deploykit.ScopeFromName -> spec.ScopeFromName;
     dropped the deploykit import entirely.
   - materialize.go, node_build.go, cue_normalize.go: kit.ScalarNode/
     kit.ClassifyDoc/kit.DocShapeNode/kit.MappingRoot -> spec.* directly;
     dropped the kit import in all three (kit.* aliases kept for every other
     existing consumer — sdk/loaderkit, candy/plugin-migrate, charly's
     validate.go/unified.go — zero call-site churn there).
   - plugin_inproc.go: kit.RefsDownloader -> spec.RefsDownloader (the interface
     contract; kit.DefaultDownloader, the concrete git-fetch impl, stays in
     kit); dropped the kit import.
   - NOT moved (verified architecturally unsuitable, not mechanical): kit.
     DoHTTPRequest/HTTPRequest (plugin_checkcontext_reverse.go — genuine
     network-I/O mechanism, not spec material); kit.CalVer/ParseCalVer/
     LatestSchemaVersion (version.go — blocked by an EXISTING spec.CalVer=
     string collision, explicitly documented in the source); kit.
     LoadProcessDotenv (main.go — stateful host-env-mutation mechanism tied to
     unexported package state in kit/envfile.go, not a pure data-shaping fn).

K1-proper (unified.go) and the cleanup.go relocation were investigated per the
brief's required traces and NOT executed this batch — see the orchestrator
report (ApplyDiscover/applyDiscoveredManifest trace, the discovered
candy/plugin-loader WalkProject/ParseDoc seam architecture, and the
IMPORT-PURITY conflict a naive unified.go->loaderkit move would create).

go test ./... (charly + sdk standalone), go vet, and golangci-lint run: clean.
task build:binary: clean.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
…eanup.go consumer repoint

Two orchestrator corrections to the prior FLOOR-SLIM mechanical-batch commit:

1. tunnel.go: the prior commit left a declaration-form alias block
   (`var ResolveTunnelConfig = deploykit.ResolveTunnelConfig` /
   `var TunnelConfigFromMetadata = deploykit.TunnelConfigFromMetadata`) — a
   NO-NEW-ALIASES violation (an alias is a mislocated call site, never a
   landing spot). Fixed: deleted the alias block; the 3 real charly-side
   callers (box_inspect_overlay.go, host_build_pod_config_seams.go,
   pod_lifecycle_resolve.go) now call deploykit.ResolveTunnelConfig /
   deploykit.TunnelConfigFromMetadata directly. The pre-existing type
   aliases (TunnelPort/TunnelConfig = spec.*, predating this batch) are
   untouched — out of this fix's scope.

2. cleanup.go consumers: repointed every charly-side call site
   (builder_venue.go, privileged_runner.go, main.go) plus every plugin
   consumer (candy/plugin-enc, candy/plugin-oci, candy/plugin-secrets,
   candy/plugin-vm) from vmshared.{Register,Unregister}TempCleanup /
   InstallSignalHandler / RegisterShutdownHook / SweepStaleTemps to
   sdk/proclifecycle's new home (sdk PR: the carve-out commit). charly/
   vmshared_aliases.go: deleted the 5 now-dead alias lines; the genuinely
   VM-ish remainder (pollUntil/RenderCloudInit/ParseLibvirtURI/
   DetectHostDistro/DetectHostGlibc/ErrPollFatal/NewSSHTunnel) is
   untouched, per the orchestrator's explicit "do not touch" scope.
   charly/main.go imports sdk/proclifecycle directly (a stdlib-only leaf,
   not a mechanism kit — IMPORT-PURITY-compatible).

sdk gitlink bumped to 502b32b (the proclifecycle carve-out).

go build/test/vet (charly + sdk standalone) and golangci-lint run: clean.
task build:binary: clean. Also built + tested candy/plugin-enc,
candy/plugin-oci, candy/plugin-vm (workspace members) and
candy/plugin-secrets (standalone, not a go.work member) individually: clean.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
FLOOR-SLIM K1-proper mechanical batch (per the map's own required trace,
reported separately: ApplyDiscover/applyDiscoveredManifest callers are both
core K1-coupled sites, not "K3 candy-scan" as speculated — NOT moved this
batch; canonicalRef is already correctly threaded into the compiled-in
candy/plugin-loader's WalkSeams as ResolveRef — NOT movable; ProjectConfig/
ProjectCandies are *UnifiedFile methods returning host types — NOT movable
without a redesign).

unified.go's validateDeploymentTree/validateDeployRequiresBox/
validateDeploymentChildren/validateDeploymentName deleted — pure structural
validation over map[string]spec.BundleNode with zero registry/host
coupling, relocated to sdk/spec/deploy_tree_validate.go (exported). Callers
repointed: unified.go's LoadUnified (the sole validateDeploymentTree call)
and bundle_members.go's peer-member validation (the sole
validateDeploymentName call outside unified.go) now call spec.* directly.
Test + comment references updated (deploy_node_test.go,
deploy_save_test.go, substrate_lifecycle_grpc.go, vm_deploy_state.go).

sdk gitlink bumped to f2a9e58.

go build/test/vet (charly + sdk standalone) and golangci-lint run: clean.
task build:binary: clean.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
….CheckResult

Completes the CheckResult wire-envelope split (sdk submodule bump to
ff51afb): deletes charly/checkrun.go's package-main CheckStatus/CheckResult/
TestPass/TestFail/TestSkip aliases entirely. Every registry-coupled floor
file that constructs or reads a check verdict now references
spec.CheckResult / spec.StatusPass/StatusFail/StatusSkip directly:

- provider_verb.go: the CheckVerbProvider interface's RunVerb now returns
  spec.CheckResult.
- verb_builtins.go, check_kit_adapter.go: pluginVerb.RunVerb / kitVerbAdapter.
  RunVerb updated to match.
- planrun_adapter.go: hostVerbResolver.RunVerb/RunProvisionAct now satisfy
  kit.VerbResolver's spec.CheckResult-returning signature (the sdk-side
  interface change that makes this repoint possible).
- checkrun_act.go: runProvisionAct updated to match; its skipf/failf/passf
  calls already returned spec.CheckResult (checkrun.go).
- provider_checkenv.go: runPluginVerb/invokeVerbProvider construct/return
  spec.CheckResult; res.Status assignments repointed to spec.StatusPass/Fail/
  Skip.
- unified_targets.go: the one bare .Status comparison repointed to
  spec.StatusFail.
- checkrun.go: passf/failf/skipf now build spec.CheckResult directly.

Zero new sdk/kit import lands on any of these floor files.

candy/plugin-check/check_cmd_test.go: the one kit.CheckResult{...} composite
literal in the whole candy/ tree updated to the embedded-field literal form
(kit.CheckResult{CheckResult: spec.CheckResult{...}}) — everything else in
candy/ already went through kit.Pass/Fail/Skip (kit.Result, unaffected) or
kit.CheckResult by selector, not literal.

~22 charly/ test files mechanically repointed (TestPass/TestFail/TestSkip ->
spec.StatusPass/StatusFail/StatusSkip, CheckStatus -> spec.Status, bare
CheckResult -> spec.CheckResult where the value is a plain verdict; one
kit.CheckResult-typed channel in poll_probe_neverhang_test.go correctly kept
as kit.CheckResult since it holds kit.Runner.Run()'s actual return type).

plugins submodule bump (9421ff8): R5 sweep of /charly-internals:go's SDD
section, which described kit.CheckResult as wholesale hand-written — updated
to describe the narrower current split (documentation-only, `documentation
reviewed` tier on that leg).

Verification: task build:binary clean; go vet ./... clean; go test ./...
clean (137s) in charly/; golangci-lint run ./... 0 issues in charly/ and
candy/plugin-check (workspace + GOWORK=off standalone).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
All-documentation submodule bump (comment-only sdk change, zero behavior
change) -- gitlink f2a9e58 -> fbb570c.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; documentation reviewed)
…ldkit+deploykit

FLOOR-SLIM Unit 5 (P13/K4-C bundle-dispatch): Config (charly/config.go +
uf_box_generic.go + candy_chain.go + namespace.go) moves to sdk — the
Config TYPE + spec-typed methods to sdk/spec, buildkit-typed resolvers to
sdk/buildkit as free functions, the candy-chain walkers (whose real
dependency is deploykit.ResolveCandyOrder) to sdk/deploykit. See the sdk
submodule commit for the full split rationale, including 2 corrections to
the originally-proposed placement (the WalkBaseChain family and the candy-
chain walkers) both verified via actual import-direction analysis to avoid
inverting the spec→buildkit→deploykit dependency graph.

`Config = spec.Config` is now a type alias — package main defines NO
methods on it anymore. What stays in charly/config.go: LoadConfig/
LoadConfigRaw (the LoadUnified-coupled load entry points) + thin
ResolveBox/ResolveAllBox wrappers that fill the ONE remaining LoadUnified-
coupled fallback (loading the project's distro:/builder: vocabulary when
the caller didn't supply it) before delegating to buildkit's pure
resolvers. charly's own ResolveOpts stays a FLAT (non-embedding) struct —
embedding buildkit.ResolveOpts would have broken all ~20 existing
`ResolveOpts{Field: ...}` composite-literal call sites across the
codebase (Go forbids keyed-literal init of a promoted field).

Every external call site updated: method-call syntax (cfg.Foo(...)) stays
unchanged where the method moved to spec (just capitalized where it had no
prior external caller — ResolveBoxRef, FindBoxByLeaf, AllBoxNames, EachBox,
WalkBaseChain*); free-function syntax (Foo(cfg, ...)) where the function
moved to buildkit/deploykit (ResolveBox, ResolveAllBox, BoxCandyChain,
BoxDirectCandies, ResolveEffectiveBuilder, EffectiveBuilderForBox).
resolveLocalRef stays charly-side (as a free function) since it dispatches
to the registry-coupled resolveLocalViaPlugin, not a relocation candidate.

Includes 3 mechanical renames in refs.go (AllBoxNames/ResolveBoxRef/
EffectiveBuilderForBox + one new buildkit import) — flagged to the
orchestrator as this file was outside this teammate's original scope;
applied under practical necessity since the whole package cannot build or
be verified without them. Pure identifier renames, zero logic change.

Also: simplified resolveIntPtr's signature (dropped two parameters that
were unparam findings once its only remaining charly-side callers were
isolated — every one passes a nil fallback and a 0 default) and removed
the now-dead keepImagesFallback/keepCheckRunsFallback constants it
orphaned (retention.go).

candy_chain.go deleted (fully relocated to deploykit.BoxCandyChain/
BoxDirectCandies). namespace.go shrinks to just the one function that
stays (resolveLocalRefFor).

Bumps the sdk gitlink to dac421e (adds spec/config.go,
buildkit/config_resolve.go, deploykit/config_candy_chain.go + tests).

Verified: go build/vet/test clean (full suite, 142s) and golangci-lint 0
issues, in both charly/ and sdk (spec/buildkit/deploykit).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
…cription_collect.go move

Merges origin/feat/floorslim-bundle (fs-bundle's Config/namespace/
uf_box_generic/vm_deploy_state K1 relocation to sdk/spec+buildkit+deploykit,
own cutover, own commit history — not re-described here) and completes the
LAST held piece of Unit 4 on top of it:

- Deletes charly/description_collect.go entirely (CollectDescriptions +
  bakeableSteps), now sdk/deploykit/description_collect.go
  (CollectDescriptions/BakeableSteps). Repoints its 3 real callers:
  render_baked_metadata.go, resolved_project_host.go (fillBoxPlans),
  check_cmd.go (candyDirsFromScan) -> deploykit.CollectDescriptions /
  deploykit.BakeableSteps.
- Deletes checkspec.go's stampStepIntentDo: an R1/R3 catch made during this
  move — its sole caller (description_collect.go's bakeableSteps) moved to
  deploykit (which gets its OWN copy, since the logic is 100% pure over
  spec.Step), leaving the checkspec.go definition an orphaned duplicate.
- sdk gitlink -> a22819e (the deploykit move + the merged bundle commits).
  Resolved as a submodule merge conflict (git's naive 3-way couldn't see
  b013e24 as a descendant of fs-bundle's dac421e) — confirmed via
  merge-base --is-ancestor before taking this branch's side, per the
  descendant-wins protocol.

Destination note (see CHANGELOG for the full reasoning): sdk/deploykit, not
sdk/spec as originally proposed — the file calls deploykit.BoxCandyChain,
and spec must never import deploykit.

Verification: task build:binary clean; go vet ./... clean; go test ./...
clean (107s) in charly/; golangci-lint run ./... 0 issues. This closes
FLOOR-SLIM Unit 4 — no further holds.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
# Conflicts:
#	charly/candy_chain.go
#	charly/vm_deploy_state.go
#	sdk
…ointers

Wave 1 integration IOU: 3 comments still named charly/unified.go's
validateDeploymentName, which relocated to sdk/spec/deploy_tree_validate.go's
ValidateDeploymentName as part of the FLOOR-SLIM mechanical batch merged into
this wave.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
…tep-emit off the step-emit round trip onto resolved-project

candy/plugin-installstep's 4 HOST-COUPLED words (system-packages/builder/
local-pkg-install/op) no longer call back HostBuild("step-emit") for their
Containerfile fragment. Instead the plugin fetches the "resolved-project"
envelope ONCE per project dir (HostBuild("resolved-project"), cached) and
builds its OWN *deploykit.Generator via the SAME deploykit.NewRenderGeneratorFromProject
helper candy/plugin-build and candy/plugin-deploy-pod already use, then renders
each fragment directly (dg.EmitTasks / dg.BuildStageContext / kit.BuilderResolve /
deploykit.RenderLocalPkgImageInstall) — no per-render host round-trip. The few
per-invocation scalars a resolved-project snapshot can't carry (which box, a
dev-bed build, an Op step's inline-content staging dir) ride the class:step
OpEmit's existing spec.BuildEnv (op.Env), extended with DevLocalPkg/
ImageBuildDir/ContextRelPrefix (sdk change, same wave).

charly/step_emit_hostbuild.go's 4 host-coupled emitters (stepEmitSystemPackages/
stepEmitBuilder/stepEmitLocalPkgInstall/stepEmitOp) are deleted — the seam keeps
only "oci-emit-step" (the pod-overlay candy's own per-step render request, which
genuinely needs the full core provider-registry dispatch). The generic-only
seam header/doc comments across provider_step.go/step_builtins.go/checkrun_act.go/
localpkg_test.go are swept to match (R5). The core Generator.emitTasks /
.buildStageContext shims (charly/tasks.go, charly/generate.go) are deleted too —
they had zero remaining callers once stepEmitOp/stepEmitBuilder were gone.
charly/resolved_project_host.go's generic "resolved-project" seam now also
populates ExternalizedBuilders (mirroring the build-prep/overlay seams), closing
the one gap that left the plugin's own resolved-project-driven Generator
unable to distinguish an externalized detection builder from a project-custom one.

Parity proof: charly/plugin_installstep_envelope_parity_test.go (adapted from
the throwaway K3-envelope RDD spike, its one skip closed — a plugin:-verb candy
now compares too) proves the envelope-driven Generator renders EmitTasks/
BuildStageContext/BakedMetadata byte-identical to the box-build's live-core
Generator across 4 real box/fedora shapes + 1 hermetic plugin-verb fixture (5
EmitTasks comparisons, 4 carrying a plugin: verb, 1 BuildStageContext
comparison — non-vacuous).

charly/ non-test LOC: 38944 -> 38717 (-227).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
…+ plugins to merged beb2eda (v2026.202.1526); bump sdk require

Assisted-by: Claude Code (Anthropic Claude Fable 5; analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
@atrawog

atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go — cross-repo consumer leg (superproject; sdk#84 and plugins#98 already merged and gitlink-pinned).

Checklist

# Item Verdict
0 Security & anti-tampering (T1–T4) PASS — no exfiltration, no scope-mismatch, no weakened guardrail (spec/CLAUDE.md/hooks untouched), no attempt to manipulate the validator. One new transitive dep (golang.org/x/term v0.41.0, indirect, official golang.org/x) — benign, pulled in by the new sdk/kit/deploykit/buildkit imports in candy/plugin-installstep.
1 Description complete PASS — full template, every section filled with concrete evidence (bed table, tier, rule-compliance walk).
2 Change-class gate matches evidence PASS — re-verified bed-coverage is correct: 6 beds map 1:1 to every touched substrate (pod/pod+ephvm, vm-packaged, vm→k8s, group vm+pod, pod+vm-member, vm-builder). No dry-run/rebuild-alone fraud.
3 Attribution tier justified PASS — fully tested and validated confirmed: I independently rebuilt (task build:binary), ran go vet/go test/golangci-lint (charly + sdk standalone) — all green — and structurally verified the live --format json breaking-rename claim against the actual generated types.
4 R0 skills honored PASS — git-workflow, go, plugin, strict-policy loaded and cross-checked; SDD wire-type mandate and the kernel/plugin boundary law specifically verified against the diff (see #15).
5 R1 RCA / zero warnings PASS — go build/vet/test/golangci-lint (isolated cache) all clean; all 6 bed logs on disk contain zero occurrences of "warn". The CHANGELOG's "known environmental note" (check-k8s-deploy host package / ProtocolVersion) does not appear anywhere in the actual submitted bed logs (grepped all 6) — I independently confirmed charly/plugin_grpc.go/plugin_inproc.go's ProtocolVersion check logic is untouched by this diff, and sdk commit 76df6c0 (the cited landing) is a real, unrelated, already-shipped commit. Documented with evidence, genuinely external, not present in the submitted gate ⇒ compliant, not a "flake" dodge.
6 R2 no pre-existing/out-of-scope split PASS — deferred items (selection widening, k3s_post.go, check-dispatch seam endgame, host_build_check_run.go) are named to the design-phase / K1-block, not vague deferral.
7 R3 no duplication PASS — candy_chain.go/capabilities.go/graph_shim.go deletions consolidate call sites onto single deploykit.* functions; no new sibling-named files.
8 R4 no ad-hoc workaround PASS — no sleep/retry/magic-number/ad-hoc podman found in the reviewed diff.
9 R5 hard cutover + grep self-test PASS — independently grepped every claimed-deleted identifier (graph_shim, boxCandyChain, InstallHint(), ValidPublicPorts, stampStepIntentDo, pruneStaleVmDottedTwin). Zero live hits; the only survivors are explicit past-tense deletion-narration comments (house convention throughout this codebase) and unrelated same-named identifiers in a different package (candy/plugin-vm). Deleted files (graph_shim.go, candy_chain.go, capabilities.go) confirmed absent from disk.
10 R6/R8/R9 PASS — R9: sdk/proclifecycle confirmed stdlib-only (no new runtime OS deps), pkg/arch/PKGBUILD untouched, rebuilt binary (2026.202.1536) matches HEAD's commit-derived CalVer. R8: N/A beyond the CheckResult wire (structurally verified below). R6: no evidence of a destructive-without-check action.
11 R10 disposable/fresh-rebuild/coverage PASS, independently re-verified, not trusted. All 6 .check/<bed>/2026.202.1437/summary.yml exist on disk, ok: true, step counts and total_seconds byte-match the PR's table exactly, one shared run-calver (concurrent launch confirmed). Traced the binary-version lineage through the branch's own commit history: roster ran at commit f7bcd9a (CalVer 2026.202.1429, matches claim); the only content delta between that commit and the final merged sdk (a4f14bd) is a pure gofmt whitespace diff in buildkit/config_resolve.go + kit/eventually_test.go (confirmed byte-diff, zero semantic change) — matches the PR's own "sdk round-1 gofmt" RCA note. Post-repoint delta (0808bc9→fd1c5fc) is CHANGELOG + gitlink + go.mod require bump only. plugins gitlink delta is a pure CHANGELOG rename (docs-only, as claimed). New coverage (plugin_installstep_envelope_parity_test.go, 338 lines) present and passing.
12 RDD/ADE/SDD PASS. ADE: plugin-installstep/charly.yml still carries description: + plan: + ≥1 check: step. SDD: confirmed spec.CheckResult (generated, sdk/spec/cue_types_gen.go:2421) carries the exact snake_case tags claimed (op/verb/status/message/elapsed); confirmed kit.CheckResult uses the documented embed-wrapper pattern (spec.CheckResult embedded + DeadlineExceeded bool json:"-" added back) — matches the go skill's spike-verified exception, not a violation; confirmed sdk/spec imports neither buildkit nor deploykit (only a comment mentions it). No unauthorized hand-written wire type found.
13 Concurrency mandate + anti-cheat PASS — 6-bed roster genuinely concurrent (one shared run-calver, one shared binary); zero concurrency defects claimed or found; no "passes on idle/serial" framing anywhere in the body.
14 Hard cutover — one atomic commit PASS — will squash to one main commit; no "Phase 2/TODO" language; deferred items are named K-wave/design-phase items, not silent scope narrowing.
15 ARCHITECTURE GATE PASS. placement: CORRECT. Zero new production (non-test) files added to charly/ (git diff --name-status shows only 2 new files, both _test.go); 3 core files deleted (candy_chain.go, capabilities.go, graph_shim.go) + 2 more (description_collect.go, vnc_helpers.go); net core LOC −2009. Alias file: only vmshared_aliases.go survives, and it shrank (−17 names, zero added) — no new/grown alias file. 9 files gained a NEW direct sdk/{deploykit,buildkit,vmshared} import (alias_collect.go, build.go, build_resolve_host.go, engine.go, host_build_deploy_node_del_dispatch.go, k8s_deploy_from_box.go, refs.go, render_prep.go, resolved_project_host.go, shellcollect.go): each individually traced — every one is a residual call site whose PREVIOUS core method body (cfg.boxDirectCandies, ResolveBoxOrder, ResolveCandyOrder, splitVmAddress, CapabilitiesFromLabels, c.effectiveBuilderForBox, c.resolveBoxRef, CandyProvidedByBox, cfg.ResolveBox, cfg.boxCandyChain) moved OUT of core in this SAME PR (net-negative core LOC, confirmed above) — the legal residual-call-site exception, not capability flowing in. Tracked via the NAMED #118 kernel-manifest floor gate (explicitly cited in the PR's own compliance section: "floor-list changes await the operator's FLOOR-SLIM ruling on #118") rather than a per-site inline "until-K" label — accepted as the project's existing tracking mechanism for this program. No new spec.<Kind> switch/map/field-read leaked into core; no *Legacy*-named identifier introduced.
16 Disposable-only autonomy PASS — every destroy/rebuild in the evidence is on the disposable check-bed roster.
17 Clean architecture + Go gates PASS, independently re-run. gofmt -l . empty; golangci-lint run ./... (isolated GOLANGCI_LINT_CACHE) → 0 issues; go vet ./... (workspace-mode, per the go-skill's "charly is a workspace member" note) clean; go test ./... green (charly 135.3s, sdk standalone 11.6s slowest package). task build:binary succeeded with zero pluginsgen/go.work.sum drift (git status clean post-build).
18 CHANGELOG present PASS — CHANGELOG/2026.202.1500.md staged; filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 byte-equals # 2026.202.1500 — …; placeholder CalVer doesn't collide with any existing main CHANGELOG file or tag.

Comments considered

None — PR carries zero comments (gh pr view --json comments → []).

Cross-PR interactions considered

Decision

Independently re-derived and verified, not trusted from the author's narrative: rebuilt the binary from the exact PR head in the prepared integration worktree, re-ran go vet/go test/golangci-lint (charly + sdk standalone) from scratch — all green; cross-checked all 6 claimed disposable-bed summaries against the actual .check/<bed>/<calver>/summary.yml files on disk (steps, timings, run-calver all match); traced the branch's own commit-time CalVer lineage to confirm the code the bed roster tested is content-identical (modulo a documented gofmt-only sdk fixup) to the code in the final PR head; independently confirmed the gitlink pins (sdk@a4f14bd, plugins@beb2eda) point at the genuinely-merged, correctly-tagged producer commits and that charly/go.mod's require matches; structurally verified the breaking --format json wire-rename against the generated spec.CheckResult type; ran the full R5 grep self-test myself against every claimed-deleted identifier; traced every one of the 9 new sdk/deploykit/buildkit/vmshared imports individually to confirm each is a legitimate same-PR residual-call-site (not new capability into core); confirmed zero new production files land in charly/. Found and filed one cross-PR coordination item (#118) that does not block this PR. No blocking finding.

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)

pr-validator: rename the placeholder CHANGELOG entry to the merge-time
CalVer stamp.

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)
@atrawog
atrawog merged commit 4fe1909 into main Jul 21, 2026
@atrawog
atrawog deleted the feat/floorslim-wave1 branch July 21, 2026 15:55
atrawog added a commit that referenced this pull request Jul 21, 2026
Merge origin/main (FLOOR-SLIM Wave 1, #172, SHA 4fe1909) and prune 5 stale
residueOwner entries for files the wave deleted outright (candy_chain.go,
capabilities.go, description_collect.go, graph_shim.go, vnc_helpers.go).
The wave's 2 new charly/*.go files are both tests, outside the gate's
scope by construction. FLOOR stays 64; RESIDUE net-shrinks 161->156
(P8b 29->28, P12 20->18, P14 11->10, P15 41->40; P11/P13 unchanged).
Gate stays intentionally RED: 0 unowned, 0 stale floor, 0 stale residue.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
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