Skip to content

feat(gate): RED kernel-manifest floor gate — the C15 residue tracker (merges LAST) - #118

Closed
atrawog wants to merge 12 commits into
mainfrom
feat/p16-kernel-manifest-gate
Closed

atrawog wants to merge 12 commits into
mainfrom
feat/p16-kernel-manifest-gate

Conversation

@atrawog

@atrawog atrawog commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

What this is

The mechanical enforcement of CLAUDE.md's "The kernel/plugin boundary law": a new package-main test, charly/kernel_manifest_floor_test.go, pins charly/'s non-test .go file set to the CORE-FABRIC allowlist (the E/M/B/D escapes — generic Envelope / kind-blind Mechanism / Bootstrap root / kind-recognition Data — plus the C14 hardware-blocked GPU exception). A file absent from the allowlist is an R-item (a concrete kind's schema / typed shape / validation / behaviour) that leaked into the kernel — an "incomplete seam" — and the test FAILS, listing every such residue grouped by its owning cutover. The failure message IS the living tracker that sequences the rest of the core-minimization program.

⚠️ Intentionally RED — merges LAST

This test is authored RED at program T0 and merges LAST (P16), GREEN, once every residue has folded into its owning cutover. It cannot pass branch protection today by design — it is the living tracker that guides/targets P8b/P11–P15. Do NOT route a pr-validator to merge it now. As each cutover lands, residue files vanish (deleted → prune the stale residueOwner entry) or move to kernelFloor (became fabric) — the residue count trends to zero and the test goes green. The two tables (kernelFloor + residueOwner) are the ONLY edit surface as cutovers land; the test logic is fixed.

This PR supersedes the prior session's feat/p16-kernel-manifest branch (108-line regex allowlist, no owner map — that remote branch has no PR and is obsolete; safe to delete).

Contract deliverable — the floor-vs-residue map

The upgrade from the prior 108-line regex allowlist to the contract deliverable:

  • kernelFloor: 64-entry E/M/B/D allowlist, each entry carrying its boundary-law clause (comment in the struct literal).
  • residueOwner: 156-entry file→cutover map (the floor-vs-residue classification — this is the high-value sequencing map).
  • A structured failure report (residue by owner + UNOWNED + stale-floor / stale-residue guards) so adding/removing allowlist entries is the ONLY edit needed as cutovers land.

FLOOR (64 files) — kind-AGNOSTIC fabric (stays core)

clause files
M — plugin loading / registry / transports provider.go, provider_registry.go, provider_invoke.go, plugin_loader.go, plugin_prescan.go, plugin_grpc.go, plugin_transport.go, plugin_inproc.go, plugin_inproc_reverse.go, plugin_provider_common.go, plugins_generated.go, registry_bootstrap.go
M — word→plugin dispatch (per class) provider_command.go, provider_command_external.go, provider_deploy.go, provider_step.go, provider_verb.go, provider_builder_external.go, provider_checkenv.go, provider_kind.go, provider_kind_invoke.go, plugin_command_prescan.go
M — reverse-channel wire broker plugin_executor_reverse.go, plugin_checkcontext_reverse.go, plugin_dispatch_reverse.go, plugin_step_external.go, check_endpoint_resolve.go, deploy_target_external.go, deploy_target_unified.go, unified_targets.go, deploy_preresolve.go, deploy_substrate_lifecycle.go, substrate_lifecycle_grpc.go, host_build_cli.go, agent_target_cmd.go
M — kind-decode MATERIALIZE (stays host) node_build.go, node_bundle.go, node_bundle_venue.go, node_candy.go, node_desugar.go, node_normalize.go, node_parse.go, node_parsed.go, cue_loader.go, cue_normalize.go, cue_schema.go, materialize.go
B — bootstrap root + seeds main.go, main_repo.go, bootstrap_phase.go, reserved_registry.go, verb_builtins.go, step_builtins.go, deploy_builtins.go, cue_kind_candy.go, cue_kind_box.go
D — kind-recognition DATA + self-identity version.go, main_freshness.go, loader_threaded.go, cli_model_cmd.go
GPU — C14 hardware-blocked (revisitable on GPU hw) gpu_shim.go, gpu_imply.go, gpu_allocate.go, devices.go

RESIDUE (156 files) — tracked-for-removal by owning cutover

owner count what moves
P8b 28 build engine → candy/plugin-build + the #67 render α-fold (generate.go, tasks.go, build_resolve_host.go, resolved_project_host.go, intermediates_shim.go, host_build_render_seam.go, host_build_bake_plugins.go, oci_step_emit.go, render_prep.go, render_baked_metadata.go, …)
P11 41 pod deploy surface → plugin-deploy-pod + substrates (config_write_host.go, pod_lifecycle_dispatch/resolve/verb.go, host_build_pod_disposable.go, host_build_pod_{config,config_seams}.go, host_build_pod_lifecycle_dispatch.go (the Cutover B-1 consolidated replacement for the 7 deleted host_build_pod_{start,stop,shell,logs,update,service,remove}.go files), vm_deploy_state.go (renamed from bundle_add_cmd_vm.go), enc.go, volumes.go, …)
P12 18 check / ADE → compiled-in plugin-check (check_cmd.go, host_build_check_bed/run.go, checkspec.go, …)
P13 19 bundle CLI → command:bundle + the K4-C deploy-dispatch walk-port's 6 new host_build_deploy_{tree_resolve,node_dispatch,node_del_dispatch,del_resolve,members,config_save}.go seams + the deploy.go state-model fold (bundle_add_cmd.go, bundle_compile_seam.go, deploy_state_host.go, validate_preempt.go, …)
P14 10 status / alias / scaffold / OCI registry+merge → plugins (oci_plugin.go, status_substrate_host.go, alias_collect.go, box_inspect_overlay.go, …)
P15 40 residual folds + HostArbiter deletion + K1 loader-orchestration + K5 seam-death + misc CLI utils (unified.go, validate.go, validate_project_host.go, credential_plugin.go, tunnel.go, box_fetch_reentry.go, …)

P15 absorbs the K1 loader-orchestration (unified.go, namespace.go, ns_identity.go, refs*.go, embed_defaults.go, cue_node.go, cue_defaults.go) and the K5 seam-death folds (host_build_config_resolve/feature/hostprobe/retention/settings.go, resource_resolve.go, substrate_template_resolve.go, the K5-doomed hidden reentries incl. box_fetch_reentry.go).

Verification (test-only; SDD/ADE N/A)

  • Gate runs RED as designed: FLOOR 64 / RESIDUE 156 / 0 unowned / 0 stale floor / 0 stale residue.

  • gofmt + golangci-lint --new-from-rev=HEAD~1 clean on the test file; go build ./charly/... passes.

  • All OTHER tests pass on the rebased, submodule-synced tree (go test ./... from charly/: only TestKernelManifest_CoreIsPinnedToTheFabricFloor fails, by design; see the R1 note below on one unrelated pre-existing failure).

  • 2026-07-20 reconciliation pass: merged origin/main (~14 commits since T0 — the W3 build-engine cone, the federated control plane + agentkit, the kimi harness, the install-test matrix, the K1 loader walk/materialize split). Pruned 59 stale residueOwner entries for files those cutovers already deleted, and classified 10 new charly/*.go files the merge introduced: materialize.go and agent_target_cmd.go join kernelFloor (both genuine kind-blind M-mechanisms). FLOOR grew 62→64, RESIDUE net-shrank 243→192.

  • 2026-07-20 reconciliation pass docs: bump plugins → pr-validator always comments on the PR #2 (post-Cutover-A #168): merged origin/main again (1c0b91b, Cutover A — BUILD+CHECK+P13-KERNEL, the deploy-dispatch kernel hard-cutover exit). Pruned 32 stale residueOwner entries for files #168 deleted or renamed away (bundle_cmd.go, bundle_add_cmd_{k8s,vm}.go, deploy_host_helpers.go, the old-form host_build_deploy_{add,config,del}.go, quadlet*.go, provides.go, classification.go, agent_forward.go, all 11 dedicated plugin_command_*.go shims, …) and classified 16 new charly/*.go files #168 introduced — all as residue, none as floor: the K4-C deploy-dispatch walk-port's 6 host_build_deploy_{tree_resolve,node_dispatch,node_del_dispatch,del_resolve,members,config_save}.go seams → P13 (each calls back into concrete deploy-kind orchestration — ResolveTarget, runDeployNodeDispatch, resolveTreeRoot, bringUpMembers — not a kind-blind mechanism; the deploy-dispatch kernel is tracked K4 residue per the operator's prior boundary-law overrule of a "cannot cross the process boundary" STAYS-CORE claim on this exact cone), the P13-KERNEL pod-command direction-flip's 9 host_build_pod_{config,config_seams,logs,remove,service,shell,start,stop,update}.go seams → P11 (each forwards to a concrete pod*Cmd.Run() orchestration — host_build_pod_start.go's own header now explicitly declines to treat its sibling host_build_pod_*.go files as "settled precedent" for a STAYS-CORE claim, citing this exact deploy-dispatch precedent), and the renamed vm_deploy_state.go (ex-bundle_add_cmd_vm.go) → P11 (its surviving content is the charly.yml config-persist half of VM deploy-add, the same substrate-persistence theme as the other P11 vm_*.go/config_write_host.go entries). RESIDUE net-shrank 192→176. R1 note: the prior update's escalated candy/plugin-http/candy/plugin-port fakeCC/kit.CheckContext build failure is no longer reproducible on the current merged tree (go build/go vet/go test -run xx all clean on both candies) — resolved upstream by one of the merged commits; the stale escalation note is removed.

  • 2026-07-21 reconciliation pass docs: adopt PR templates across submodules + pr-validator security hardening #3 (this update, post-Cutover-B-1 #169): merged origin/main again (c78ac6a, tag v2026.202.0130 — Cutover B-1: pod-lifecycle-dispatch + bundle-remainder + kernel-B), folding #169's own fresh-validator coordination note but re-deriving every classification from the actual tree, never the note or any file's own header comment. Pruned 15 stale residueOwner entries for files #169 deleted or moved: android_spec.go (P11, dead doc-comment-only file), labels.go (P8b, its 8 OCI-label type aliases dissolved — ZERO-ALIASES), libvirt.go (P11, dead CollectLibvirtSnippets), reconcile.go/reconcile_test.go (P15, moved to candy/plugin-box — R063/R092 renames), service.go/shell.go/start.go/tunnel_plugin.go (all P11/P15, CLI grammar moved to command:* plugin candies), and the 7 superseded host_build_pod_{logs,remove,service,shell,start,stop,update}.go P11 seam files. Classified the 1 new file #169 introduced — host_build_pod_lifecycle_dispatch.go, the CONSOLIDATED replacement for those 7 seams — as P11 residue: every handler only CALLS a floor Mechanism (dispatchLifecycleTarget → unified_targets.go's ResolveTarget) or P15 residue (releaseResourceClaim, arbiter_host.go — itself residue, not floor, directly contradicting the file's own "stays core" framing of its arbiter bracket) — the defines-vs-calls test makes it an R-item, matching the identical precedent this PR's prior reconciliation pass already set for its 7 predecessor files (whose own header explicitly declines "settled STAYS-CORE precedent" status, citing the deploy-dispatch boundary-law overrule — memory deploy-resolution-67-gated-cone.md). No STOP-and-escalate was needed. FLOOR unchanged at 64; RESIDUE net-shrank 176→162 (P8b 30→29, P11 54→43, P15 43→41; P12/P13/P14 unchanged). R1 finding (escalated, out of this PR's scope): go test . surfaced one unrelated pre-existing failure, TestCandySourceDirs_OverrideAnchorsRemoteApk — box/cachyos's charly.yml is stamped version: 2026.186.2323 while sdk/schema/version.cue's #SchemaVersion (bumped to 2026.202.0105 by an sdk commit that landed before Cutover B-1) now requires it; the box/cachyos gitlink itself is byte-identical between this PR's pre-B-1 base and post-B-1 main (confirmed via git diff --submodule), so this is a genuine, pre-existing main schema-vs-submodule-pin drift, not anything this reconciliation or Cutover B-1 introduced or that this test-only change can fix (needs its own box/cachyos re-stamp cutover per the git-workflow skill's B7 "box/ re-stamp" step). Flagged to the orchestrator for its own batch; not fixed here.

  • 2026-07-21 reconciliation pass refactor(charly): P1 lint/dead/dup rewrite + concurrency & correctness fixes #4 (this update, post-FINAL/K5-unit-6 #171, merge SHA d35a0fd): merged origin/main again (also picking up 5512225, the 5-distro gitlink schema-2026.202.0105 restamp — this closes the R1 finding the prior pass flagged: go test . now shows only the intentionally-RED gate test failing, TestCandySourceDirs_OverrideAnchorsRemoteApk is gone). Folded #171's own fresh-validator cross-PR coordination note as the starting hypothesis but re-derived every classification from the actual tree, never the note or any file's own header comment (standing policy).

Pruned 5 stale residueOwner entries for files #171 deleted outright: android_deploy_cmd.go (P11 — body split between candy/plugin-adb and the new deploy-entity-resolve seam), android_deploy_preresolve.go (P11 — moved to candy/plugin-adb/preresolve.go), k8s_deploy_preresolve.go (P11 — moved to candy/plugin-kube/preresolve.go), vm_snapshot_client.go (P11 — confirmed dead code, no replacement needed), ephemeral_lifecycle.go (P11 — body moved to candy/plugin-bundle/ephemeral.go).

Classified 4 new charly/*.go files:

  • host_build_deploy_entity_resolve.go → P13 (deploy-dispatch seam family). Its own header claims its LoadUnified call is "a kernel Mechanism, R-E2 stands: it never moves wholesale" — not taken at face value (never trust code comments): LoadUnified's own defining file, unified.go, is itself tracked P15 residue in this same table, so a header asserting permanence for a call target this table already tracks as residue is exactly the incomplete-seam trap. Applying the defines-vs-calls test instead: the default/"bundle" case calls resolveTreeRoot (deploy_tree.go, P13) and the file's own "deploy-entity-resolve" HostBuild-kind naming directly parallels the K4-C host_build_deploy_{tree_resolve,node_dispatch,node_del_dispatch,del_resolve,members,config_save}.go seams this PR's prior passes already classified P13 under the deploy-dispatch boundary-law precedent (memory: deploy-resolution-67-gated-cone.md) — no re-escalation needed.
  • host_build_k8s_generate.go → P11, matching its deleted k8s_deploy_preresolve.go (P11) predecessor whose TreeRoot computation it explicitly mirrors, and wrapping k8s_generate.go's GenerateK8sKustomize (P11).
  • host_build_ephemeral_register.go + ephemeral_dispatch.go → P11, the split of the deleted ephemeral_lifecycle.go (P11): the register/teardown body moved to candy/plugin-bundle, leaving a thin HostBuild seam + a host→plugin dispatch. Both stay in the "ephemeral" cross-substrate lifecycle family — the same family as the still-present validate_ephemeral.go (P11), whose scope P11's own description explicitly names ("lifecycle") — rather than following the P13 shape their own comments compare themselves to (bundle_compile_seam.go's dispatch pattern): the family a seam SERVES governs over incidental mechanism-shape similarity to a P13 sibling.

No STOP-and-escalate was needed — nothing in this batch presented a genuine E/M/B/D floor case; every new file calls a mechanism rather than being one.

  • 2026-07-21 reconciliation pass fix(labels): ai.opencharly.env reader decodes the object writeLabels bakes #5 (this update, post-FLOOR-SLIM-Wave-1 #172, merge SHA 4fe1909): merged origin/main again (FLOOR-SLIM Wave 1 — a mechanical batch + the Config restructure + the check envelope + the installstep envelope). The merge was a clean auto-merge (no conflicts — kernel_manifest_floor_test.go is branch-only, untouched by main). Refreshed submodule pins to the merge's recorded pointers (sdk → a4f14bd, plugins → beb2eda) via git submodule update --init sdk plugins. Wave 1 deleted 5 tracked residue files outright (each already had a residueOwner entry, now pruned): candy_chain.go (was P8b), capabilities.go (was P14), description_collect.go (was P12), graph_shim.go (was P15), vnc_helpers.go (was P12) — plus their _test.go siblings (test files are outside the gate's scope). Wave 1 also added 2 new charly/*.go files, both tests (plugin_installstep_envelope_parity_test.go, stderr_capture_test.go) — excluded from the gate by construction (it only scans non-_test.go files), so no new classification was needed. No STOP-and-escalate was needed — nothing in this batch presented a genuine E/M/B/D floor case or an unowned file; the design-phase register items the orchestrator flagged for special attention (k3s_post.go, the bundle-selection-widening files, the check-dispatch seam endgame trio check_kit_adapter.go/planrun_adapter.go/checkrun_act.go, and the K1 loader-validation-redesign remainder unified.go) were all already correctly classified in the existing table and untouched by this wave — re-verified against the tree, not assumed. FLOOR unchanged at 64; RESIDUE net-shrank 161→156 (P8b 29→28, P12 20→18, P14 11→10, P15 41→40; P11/P13 unchanged).

Gate output (verbatim, post-reconcile, current HEAD — see commit below):

KERNEL-MANIFEST gate (P16a): charly/ core is NOT yet at the fabric floor.
  FLOOR files:        64 (E/M/B/D fabric + the C14 GPU exception)
  RESIDUE files:      156 (tracked-for-removal; each tagged with its owning cutover)
  UNOWNED residue:    0 (a new file with no residueOwner entry — classify it)
  STALE floor:        0 (allowlist entry names a missing file — rename or re-classify)
  STALE residue:      0 (owner entry names a file already moved/deleted — prune it)

By owner: P8b 28 / P11 41 / P12 18 / P13 19 / P14 10 / P15 40 (sum 156, matches). Still intentionally RED — do not route a pr-validator to merge.

New core LOC (charly/*.go excluding _test.go, post-merge): 36,935 lines across 220 files.

Also verified (this update): git merge origin/main clean, no conflicts; git submodule update --init sdk plugins synced to the merge's recorded pins; go build ./... clean; go vet ./... clean; gofmt -l kernel_manifest_floor_test.go clean; golangci-lint run --new-from-rev=f213b2d ./... → 0 issues; go test . (package charly, full suite, ~137s) — only TestKernelManifest_CoreIsPinnedToTheFabricFloor fails, by design; no other regressions from the FLOOR-SLIM Wave 1 merge.

Merged origin/main (4fe1909) into a merge commit, then pushed the reconciliation commit fast-forward: f213b2d → 488586c. PR body counts updated to match.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

atrawog added 2 commits July 14, 2026 16:32
…fabric floor (P16a)

The mechanical enforcement of the kernel/plugin boundary law: charly/'s non-test
file list is pinned to the CORE-FABRIC allowlist (E/M/B/D-justified per entry,
plus the C14 hardware-blocked GPU exceptions, documented). Authored RED at
program T0 as the residue tracker — currently enumerating 255 non-fabric files;
each in-flight cutover (P8b, P11-P15) shrinks the delta; merges LAST (P16),
green, after which core is mechanically un-growable.

Assisted-by: Claude (syntax check only)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
…er (RED, merges LAST)

The mechanical enforcement of the kernel/plugin boundary law (CLAUDE.md): charly/'s
non-test .go file set is pinned to the CORE-FABRIC allowlist (E/M/B/D per entry, plus
the C14 hardware-blocked GPU exception). The test FAILS today, listing every residue
file grouped by its owning cutover (P8b/P11/P12/P13/P14/P15; P15 absorbs the K1
loader-orchestration + K5 seam-death folds) — the failure message IS the living
tracker that sequences the rest of the core-minimization program. It merges LAST
(P16), GREEN, after which core is mechanically un-growable past the fabric floor.

Upgrades the prior session's 108-line regex allowlist to the contract deliverable:
  - kernelFloor: 62-entry E/M/B/D allowlist, each entry carrying its boundary-law clause;
  - residueOwner: 243-entry file→cutover map (the floor-vs-residue classification);
  - a structured failure report (residue by owner + UNOWNED + stale-floor/stale-residue
    guards) so the two tables are the ONLY edit surface as cutovers land (test logic fixed).

Rebased onto current main: P11/P12/P14-partial had landed between T0 and this update,
so 25 deleted residue files were pruned and 22 new host-side seam files (pod_lifecycle_*,
host_build_check_*, host_build_deploy_*, build_resolve_host/resolved_project_host/
intermediates_shim, oci_plugin, loader_driver, config_write_host, …) were classified —
the living-tracker evolution the plan prescribes. Current per-owner residue: P8b 41,
P11 63, P12 29, P13 17, P14 25, P15 68.

Verified on the rebased tree (submodules synced): gate runs RED as designed (FLOOR 62 /
RESIDUE 243 / 0 unowned / 0 stale); gofmt + golangci-lint clean on the test file;
go build ./... passes; all OTHER tests pass (the only non-gate failures traced via R1
to uninitialized box/* submodules in the fresh worktree — environmental, not code, not
this change). No runtime surface (test-only); SDD/ADE N/A.

Assisted-by: Claude (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 16, 2026
…CalVer 2026.197.1934

pr-validator (V-133) PASSED: both gitlinks (plugins->070a834, pkg/arch->96ce37c)
independently re-verified via live git ls-remote against genuinely-merged
main HEADs; both CLAUDE.md one-line mandate sharpenings confirmed as pure
sentence insertions with *Detail:* pointers resolving to real content in the
merged plugins commit; markdown integrity + R5 self-test (zero deletions) +
cross-PR sweep (zero overlap with #118) all clean. Renaming the placeholder
CHANGELOG to its merge-time CalVer per the git-workflow skill's
CalVer-generated-at-merge rule (self-verified per the same skill's own
git-mv guard, landed by this very cutover).

Assisted-by: Claude Code Claude Sonnet 5 (documentation reviewed)
Rebased the RED living-tracker gate onto main (~14 commits: W3 build-
engine cone, the federated control plane, install-test matrix, K1
loader split). Pruned 59 stale residueOwner entries for files W3/K1/
P11/P12/P14 partial landings already deleted, and classified 10 new
charly/*.go files the merge introduced: materialize.go and
agent_target_cmd.go join kernelFloor (both genuine kind-blind M-
mechanisms — materialize.go is the K1 walk/materialize split's
MATERIALIZE half, successor of loader_driver.go; agent_target_cmd.go
is the generic __agent-target serve wire-transport reentry). The
remaining 8 (bundle_compile_seam.go, deploy_state_host.go,
box_fetch_reentry.go, host_build_bake_plugins.go,
host_build_render_seam.go, oci_step_emit.go, render_baked_metadata.go,
render_prep.go) join residueOwner under P13/P15/P8b per their own
self-documented cutover tags. Gate still reports RED by design (FLOOR
64 / RESIDUE 192) with 0 unowned / 0 stale-floor / 0 stale-residue.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
atrawog added a commit that referenced this pull request Jul 20, 2026
Consumes sdk#72 (F-CLI-NEST, merged as sdk `main` 3ea39b11 / tag v0.2026201.542) to
restore nested CLI grammar for `charly check`/`charly box list` — two pre-existing
`main` regressions that were blocking two in-flight cutovers' R10 gates.

A `class="command"` capability may now declare a one-level-deep subcommand catalog
over Describe (`sdk.ProvidedCapability.Subcommands`); when it does, the host builds
a real nested Kong grammar instead of the opaque flat pass-through holder, restoring
`charly check --help` subcommand fidelity and the `box.list.boxes` MCP tool leaf.
Also fixes `main_freshness.go`'s stale-binary refusal guard, which the same grammar
change would otherwise have silently scoped incorrectly for `check run`.

Fresh pr-validator: independently rebuilt from source (zero go.work.sum drift),
re-ran the full battery (go test/vet/gofmt/golangci-lint/cue:gen, all clean),
cross-checked both disposable eval-bed summaries on disk against the PR's claims
(check-sidecar-pod 12 steps/486s, check-charly-vm 8 steps/312s, both ok:true),
re-drove the live CLI myself (--help, __cli-model, real dispatch), confirmed the
plugin-http/plugin-port fakeCC failures are pre-existing and unrelated (identical
on main HEAD, untouched by this diff), verified the architecture gate (no new
alias/kit-import, all touched core files already on #118's kernel-manifest floor
allowlist), and confirmed no duplication/workaround/cutover violations.

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

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — coordination note (from validating #165)

While independently validating opencharly/charly#165 (the DEPLOY-wave pod-lifecycle CLI port to candy/plugin-pod), I swept this repo's other open PRs for interactions per the pr-validator's cross-PR-awareness duty. This one is non-blocking for #165 (it's explicitly held back per this PR's own "do NOT route a pr-validator to merge it now"), but you'll want to reconcile the maps before #118 itself goes green.

#165's diff touches files this PR's residueOwner/kernelFloor tables in charly/kernel_manifest_floor_test.go hard-code:

  • Deletes (named in your P11/P15 residue rows): charly/quadlet.go, charly/quadlet_pod.go (+quadlet_pod_test.go, quadlet_test.go), charly/provides.go, charly/agent_forward.go (+agent_forward_test.go), charly/classification.go. Also deletes the 11 dedicated charly/plugin_command_*.go shims (start/stop/restart/logs/remove/shell/service/volume/cp/config/update) — not sure if those were in your residue map, worth checking.
  • Adds 8 new charly/host_build_pod_{config,logs,remove,service,shell,start,stop,update}.go files — generic F10 HostBuild-kind registrations against the pre-existing reverse-channel wire broker (the mechanism itself is unchanged; each file registers one more kind). These are currently unclassified in both your kernelFloor and residueOwner tables.

Your own PR body already anticipates exactly this kind of drift ("as each cutover lands, residue files vanish... or move to kernelFloor... the two tables are the ONLY edit surface") and your structured failure report has stale-residue/stale-floor/UNOWNED guards for it — so once #165 merges (or lands its CHANGELOG fix and re-validates), a rebase + map update should be mechanical. Flagging now so it isn't discovered cold at #118's own validation.

I did not judge whether the new host_build_pod_*.go files belong in kernelFloor (M — reverse-channel wire broker) or residueOwner (tracked-for-removal, e.g. folding into P13's bundle-seam pattern) — that classification call is yours; #165's own PR comment (verdict below) treats them as clause-M uses of the pre-existing broker mechanism, for what that's worth.

Full #165 verdict: #165 (comment)

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

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

atrawog commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — coordination note (non-blocking)

While validating the dead-code radical-removal batch (charly#179, currently under review), I found this PR shares 18 files with this PR's diff (git diff --name-only origin/main..origin/feat/deadcode-radical-sweep ∩ origin/main..origin/feat/p16-kernel-manifest-gate), including several files this PR's kernelFloor/residueOwner tracker in charly/kernel_manifest_floor_test.go presumably tracks: charly/bundle_add_cmd.go, charly/preempt.go, charly/vm_backend_lifecycle.go, charly/plugin_executor_reverse.go, charly/arbiter_host.go, charly/install_build_act.go, candy/plugin-vm/plugin.go, candy/plugin-vm/provider.go, candy/plugin-preempt/*, plus charly/go.mod, candy/plugin-deploy-pod/config_setup_helpers.go.

charly#179 is a dead-code deletion batch (deletes zero-caller symbols, no behavior change) — it shrinks several of these files (e.g. bundle_add_cmd.go's deployDelCmd loses 4 dead kit.ReverseExecutor-satisfying methods + orphaned struct fields) but does not move any file's residence (core stays core, plugin stays plugin). This does not falsify anything charly#179 claims, and does not block my validation of that PR.

What you may want to check when this PR next rebases/lands (this PR merges LAST by design, so likely after #179): if kernel_manifest_floor_test.go's residueOwner table (or any hardcoded LOC/symbol-count expectation) references specific functions/fields in the files above, #179's deletions may shift those counts or remove a named symbol the table cites. Worth a quick diff-against-final-tree check before this PR's own R10 gate runs, since this PR is explicitly a self-test over charly/'s exact file/symbol surface.

Filed as a coordination note only — not a merge-order dependency, and not a finding against either PR.

Assisted-by: Claude Code (Anthropic Claude Opus 4.8; analysed on a live system)

@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator coordination note — canonical attribution policy

While validating opencharly/marketplace#111, I verified that this intentionally RED long-lived PR is file-disjoint but still contains the retiring parenthesized provider/semicolon attribution form. plugins#111 establishes the operator-confirmed exact form Assisted-by: <Harness> <Provider Full Model Name> (<confidence>). Before this PR is eventually validated and landed, reconcile its current mutable footer, new commit text, and final squash message to that exact grammar. Preserve append-only history and historical review comments: do not amend or force-push existing pushed commits; the future fresh validator must decide treatment of pre-policy branch history.

This interaction is non-blocking for #111 and is posted so this branch does not encounter the policy change cold.

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)

@atrawog

atrawog commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Cross-PR coordination note (from pr-validator on #188)

While validating #188 ("Cutover 1 — plugins-for-everything part 1"), I found it deletes 9 charly/*.go files that this PR's residueOwner map currently tracks — all become stale residueOwner entries once #188 merges (matches the exact pattern your own reconciliation passes already describe):

file current residueOwner here
check_image_preflight.go P12
container.go P12
host_build_settings.go P15
init_config.go P8b
layer_capabilities.go P8b
pod_lifecycle_resolve.go P11
privileged_runner.go P15
runtime_config_values.go P15
shell_profile.go P8b

#188 does not introduce any new non-test charly/*.go files, so no new floor/residue classification is needed on your side — this is a pure prune (all 9 vanish from the directory, matching the "deleted → prune the stale residueOwner entry" rule already stated in your PR description).

Note: #188 itself is not yet merge-ready (I FAILed it separately, unrelated to this — a stale-documentation R5 finding in the settings/config cone), so there's no urgency; just flagging so your next reconciliation pass (whenever #188 does land) knows to prune these 9 entries rather than rediscovering them from scratch.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

@atrawog

atrawog commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Cross-PR coordination note (from charly PR #188's fresh pr-validator)

PR #188 (feat/cutover1, "Cutover 1 — plugins-for-everything part 1") is about to merge to main. It deletes 9 charly/*.go files that this PR's residueOwner map currently tracks as live residue:

file this PR's owner tag
check_image_preflight.go P12
container.go P12
host_build_settings.go P15
init_config.go P8b
layer_capabilities.go P8b
privileged_runner.go P15
runtime_config_values.go P15
shell_profile.go P8b
pod_lifecycle_resolve.go P11

(checkrun_charlybin_test.go and enc_mount_short_circuit_test.go are also deleted by #188 but are _test.go files, already outside this gate's scan per its own construction.)

After #188 lands on main, these 9 residueOwner entries will be stale (the gate's stale-residue guard will flag them) — the exact class of drift your prior reconciliation passes (2026-07-20/21) already handle routinely. This is not a blocker for #188 (verified independently — #188 is correct and complete without any coordination from this PR, and this PR is explicitly RED-by-design / "merges LAST" per its own body, so nothing here changes #188's mergeability). Flagging so your next origin/main reconciliation pass prunes these 9 entries (RESIDUE 156 → 147, P8b 28→25, P11 41→40, P12 18→16, P15 40→38) rather than discovering it cold.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

atrawog added a commit that referenced this pull request Jul 28, 2026
…d roster

The prior R10 section cited numbers not backed by fresh artifacts — check-builder-vm
had never run, check-charly-vm's only run was 16 days stale (predating the #59 fix),
and it falsely claimed check-k3s-vm green. Replaced with the real 2026-07-28 roster
run against the final terminus binary: 9 green (each backed by an on-disk summary.yml),
and check-k3s-vm honestly recorded as the pre-existing #61 k3s-kubeconfig-timeout
failure (R2-separable, deploy mechanism proven, not a #118 regression).

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 28, 2026
… consumer leg

B2 consumer leg: the sdk producer PR (opencharly/sdk#105) merged to sdk main at
a11380625e04dbb3fa0c0392987edc8006db7611 (tag v0.2026209.2002), code-identical to
the R10-tested feat head (only the CHANGELOG restamp differs). Bumps the sdk gitlink
+ charly/go.mod require to the merged tag. Rebuild + go build/vet/test ./... green
against merged sdk; the #118 kernel-manifest floor gate still PASSES.

Also cites the airtight fresh check-jupyter-pod re-run (13/13, calver 2026.209.1959,
against the final terminus binary) for the #62 proof.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
@atrawog

atrawog commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #190. #118's original branch (feat/p16-kernel-manifest-gate) was a divergent-lineage RED living-tracker; the terminus work landed on feat/118-terminus and is now GREEN (RESIDUE 0) with the real artifact-backed terminal R10 roster. Closing in favor of #190 (the honest consumer leg, sdk producer opencharly/sdk#105 already merged at a113806 / v0.2026209.2002).

@atrawog atrawog closed this Jul 28, 2026
atrawog added a commit that referenced this pull request Jul 28, 2026
…gelog (#190 review)

Address the two remaining #190 pr-validator CHANGES-REQUESTED blockers.

golangci-lint → 0 (delete dead code left by capability relocations):
- check_venue.go DELETED whole-file (venueRunSilent/venueHasTool orphaned when
  the in-core check venue classifier retired to plugin-check, 13cf4c4); its
  floorEntry removed from kernel_manifest_floor_test.go (#118 gate stays green).
- credential_plugin.go: drop unused resolveSecretBackend + now-orphaned kit import.
- deploy_tree.go: drop unused stampBundleDescents (loop lives in
  loaderkit.StampBundleDescents) + now-orphaned loaderkit import.
- node_childform_test.go: drop unused mustYAMLNode helper.
- preempt.go: drop unused intersect + now-orphaned sort import.
- registry_bootstrap.go: drop unused registerDedicatedBuiltin + its doc block;
  R5 sweep of the 2 stale comment refs (registry_bootstrap.go:21,
  registry_testsupport_test.go:10).
- resolve_test_helpers_test.go: drop the always-"test" calver param from
  resolveAllBoxTest (unparam) + update 5 call sites.
- R5 comment sweeps for the deleted symbols: bundle_add_cmd.go (check_venue.go
  drop from NestedContainerName consumer list), deploy_chain_test.go +
  loader_threaded.go (stampBundleDescents → loaderkit.StampBundleDescents).

One changelog per squash: fold the K4 dispatch-kernel narrative
(2026.206.1338.md, −153 core LOC) into the terminus changelog
(2026.209.1900.md) and git rm the untagged K4 file.

Folds in the sibling #190 review fixes staged in the tree: K3_HANDOFF.md /
K47_HANDOFF.md removal + gofmt of bundle_members_test.go /
plugin_executor_reverse.go.

Verified: golangci-lint run ./... → 0 issues; gofmt -l . empty; go build/vet
clean; go test ./... green; #118 gate
TestKernelManifest_CoreIsPinnedToTheFabricFloor PASS (RESIDUE 0).

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01FfmND2J6bJVyXoK47M3QTB
atrawog added a commit that referenced this pull request Jul 28, 2026
atrawog added a commit that referenced this pull request Jul 28, 2026
…E/M/B/D fabric floor (RESIDUE 0)

The terminus of the "everything is a plugin" core-minimization program (#118). Core is now a
PLUGIN HOST: charly/ retains only the E/M/B/D fabric floor (plugin discovery/loading, provider
registry + transports, CLI/kind prescan + word→plugin dispatch, the kind-decode materialize, the
reverse-channel broker). Every capability resolves its config into a generic envelope an in-core
mechanism consumes. The kernel-manifest floor gate TestKernelManifest_CoreIsPinnedToTheFabricFloor
PASSES at RESIDUE 0.

Consumer leg of the two-repo B2 landing: sdk gitlink → a11380625e04dbb3fa0c0392987edc8006db7611
(v0.2026209.2002, sdk#105 merged first). Net -3,064 charly/ core LOC.

Terminal R10: 9 disposable beds green (artifact-backed, fresh-rebuild) — check-pod, check-builder-vm,
check-charly-vm, check-jupyter-pod, check-substrate, check-group, check-structkind, check-preempt-local,
check-commands-local. One R2-separable pre-existing fail (check-k3s-vm, #61 candy kubeconfig timeout),
not a #118 regression. Three real bugs the roster caught (BuilderConfig/DistroDef on synthetic boxes,
out-of-process check-verb connect) fixed + folded in.

Review round 2 cleared: removed stray handoff notes, gofmt clean, golangci-lint 0 issues (dead
relocation-orphaned helpers deleted), single changelog per squash.

Validated by a fresh, independent pr-validator (RESIDUE-0 gate, go build/vet/test + golangci-lint 0
re-run, all 9 bed artifacts reconciled on disk, forward-gitlink verified) at CalVer 2026.209.2044.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 28, 2026
…tness batch

The `command:` check verb gains an `expect_non_zero` field (additive, optional) to
assert a command SHOULD fail when the exact non-zero code is non-deterministic or
irrelevant — the negative-expectation class that the base #Op exit_status matcher
(one exact code) could not express.

SDD: candy/plugin-command/schema/command.cue is the single source; task cue:gen
regenerated params/cue_types_gen.go (reproducible no-op). RunVerb asserts exitCode != 0
when set and ignores exit_status; default false preserves the historic behaviour.

Coverage: 3 unit tests (fail without the field) + a live check-expect-non-zero step in
check-stack-layer, proven on check-pod 13/13 with exit=1 PASS in both fresh-rebuild phases.

The post-#118 bed-robustness batch narrowed under RCA to this one genuine fix: #58 and #63
were already fixed on main, #60's described probe does not exist, and #61's stated root
cause was refuted on a live bed (k3s healthy, kubeconfig present+readable) and reverted.

CHANGELOG/2026.209.2249.md.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Sep 7, 2026
…s) (#558)

Consume the config:-verb wave: spec v0.2026250.957 (#117 config?/validate?
contract, #118, #119 VerbCatalog, #120 InstallVerbs), sdk v0.2026250.948
(#237 emitter), plugin-box v0.2026250.1030 (#11 config rules), plugin-egress
v0.2026250.951 (#3 crabbox-yaml egress schema). Add validate to the
uniform-API genericConceptCollisions with justification (ops.OpValidate
selector vs the config modifier — the venue precedent).

Co-authored-by: atrawog <[email protected]>
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