Repository navigation
refactor(status,box): W0 — status_collector→plugin-substrate + box merge→plugin-box (metric 145→141, core −595 LOC) - #141
Merged
Conversation
Deletes charly/status_collector.go + charly/status_substrate.go whole and relocates the logic to candy/plugin-substrate/status_flat.go, reversing my own earlier "stays core, registry-boundary blocker" verdict: the providerRegistry fan-out dissolves entirely once the orchestration moves into the plugin that already owns the per-word collectors (a direct in-package call to statusCollect, not a wire round-trip), and every other dependency was already sdk-portable via K4 #64 (kit.ExtractMetadata/ kit.ResolveBoxName/deploykit.QuadletDir/QuadletExistsInstance/ ServiceNameInstance/ResolveBoxEngineForDeploy), just not yet relocated. charly/status_substrate_host.go is now a thin generic forward (resolve verb:status-fanout, thread the reverse-channel executor, invoke, return the reply) — no status business logic remains in core. candy/plugin-status is unchanged; it still drives the same "status-substrate" HostBuild seam. Assisted-by: Claude Sonnet 5 (fully tested and validated)
Assisted-by: Claude Sonnet 5 (fully tested and validated)
Assisted-by: Claude Sonnet 5 (documentation reviewed)
… sweep A `git stash`/`stash pop` between staging and committing the K6 whole-file move silently un-staged (without touching the filesystem) the git rm of charly/status_collector.go/status_substrate.go and their test files — the prior commit's tree still recorded them as present even though the working tree (and every build/test run since) never had them. This commit corrects the tree to match what was actually built and tested. Also completes the claim-keyed R5 sweep the move triggered: several plugin-status/plugin-substrate comments still named charly/status_collector.go as a live file or NewCollector as a still-existing symbol (candy/plugin-status's charly.yml + render.go + nested_tree.go; candy/plugin-substrate's status_android_collect.go/status_collect.go/status_k8s.go/status_vm.go/ status_vm_test.go). Assisted-by: Claude Sonnet 5 (fully tested and validated)
…r list R5 miss caught in review: engine.go's MIGRATION INVENTORY comment still listed the now-deleted charly/status_collector.go as a ResolveBoxEngine*/ ImageRuntime consumer. It left that consumer set at K6 — the status subsystem now calls deploykit.ResolveBoxEngineForDeploy directly from candy/plugin-substrate, not charly/engine.go. Assisted-by: Claude Sonnet 5 (fully tested and validated)
charly/merge.go is deleted whole; its charly-box-merge CLI moves to candy/plugin-box/merge_cmd.go as an eighth nested command:merge capability, reaching verb:oci DIRECTLY over InvokeProvider (the same F10 peer-dispatch leg candy/plugin-build's own inline merge already uses). oci_plugin.go's now-dead invokeOciMerge/ociOpMerge half is deleted; the file itself stays core (generate.go's adopt-user resolution is a live K1-gated consumer). Bumps sdk (kit.ResolveShellImageRef) and plugins (2 pre-existing stale skill-doc claims found + fixed) gitlinks to their companion legs. Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
…ns → main 4a2ac8d B2 producer-first landing: sdk#68 merged+tagged by the fresh validator; the plugins docs leg was consolidated OUT of this wave (one PR per wave per repo — its content rides the next plugins batch PR), so the plugins gitlink returns to plugins main, on which this PR's code has no dependency. Assisted-by: Claude Code Anthropic Claude Fable 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
…over-removal fix) sdk#69 restored the 4 deploy-seam wire types #66 over-removed (live on charly main via plugin-bundle + the deploy-add/del host seams); this pin is the first sdk main SHA consumable by this branch. Full binary (compiled-in candies incl. plugin-bundle/plugin-box) builds clean against it — exit 0. Assisted-by: Claude Code Anthropic Claude Fable 5 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
Consolidate the two placeholder CHANGELOG narratives (K6 status_collector move + P14 box-merge move) into one CHANGELOG/2026.198.0804.md — one squashed cutover, one CalVer. Assisted-by: Claude Opus 4.8 (fully tested and validated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
W0 wave of the core-minimization program: two whole-file subsystem moves finishing the residue the merged status-completion cutover (
87cce99) leftUNTIL-K5. Both program axes drop — this is a genuine relocation, not an import-shim.charly/status_collector.go+charly/status_substrate.go→ deleted whole; logic →candy/plugin-substrate/status_flat.go(verb:status-fanout, sdkOpStatusCollectAll). The old registry fan-out dissolves into direct in-package calls (the 5 substrate words already live on this provider).charly/status_substrate_host.goreduced to a thin generic HostBuild forward (pure M-mechanism).charly/merge.go→ deleted whole; CLI →candy/plugin-box/merge_cmd.go(command:merge,CommandParent()=="box"), reachingverb:ociviaExecutor.InvokeProvider— the same F10 peer-dispatchcandy/plugin-build's inline merge already uses (R3, no new seam). Box/registry/tag/merge settings viaHostBuild("resolved-project").charly/shell.go→ thin delegate onto the newkit.ResolveShellImageRef(single source, R3);charly/oci_plugin.godeadinvokeOciMerge/ociOpMergehalf deleted (file stays —generate.gostill consumesinvokeOciInspectUser; its staleUNTIL-K3note corrected toUNTIL-K1).engine.go,image.go; tests relocated to the candies (status_flat_test.go,merge_cmd_test.go).charly/*.gonon-test non-alias): 145 → 141. Axis B (core non-test LOC): 49,245 → 48,650 (−595, −3 files).Change class
cross-repo (charly-or-sdk Go): sdk producer opencharly/sdk#68 merges+tags FIRST → this PR repoints its
sdkgitlink to the merged SHA; thepluginsgitlink repoints to pluginsmain(the skill-sync docs were consolidated OUT of this wave into the next plugins batch leg per the one-PR-per-wave-per-repo standing order — this PR's code does not depend on them).How R10-tested — exact gate, commands, and pasted output
charly check run check-commands-local(the bed exercising the movedcommand:merge+verb:status-fanoutdispatch paths) + the Go gates, per the R10-gate-by-change-class matrix.CHANGELOG/2026.198.0510.md):check-commands-local | local | ok | 8/8 steps (incl. [status-runs] + [reap-orphans-runs])on a fresh worktree built fromorigin/main+ this change only. Manual smoke:charly status --jsonagainst the live 59-row fleet (pod/local/k8s) through the new fan-out — clean JSON.go test(charly, plugin-substrate, plugin-box) + lint +task cue:genno-op + the bed above + both-axes re-measure. The validator pastes those outputs in its verdict comment.task build:binary; validator re-verifies R9 on the final head.Attribution tier
fully tested and validated— claimed at the tier the FINAL validator run supports; if the validator's re-gate on the repointed head cannot reproduce the bed pass, the PR does not merge.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)mergeAfterBuilddoc claim found during validation is plugins-repo content — it lands in the consolidated plugins batch leg (the immediate-next plugins cutover), not parked.kit.ResolveShellImageRefsingle-sources the ref logic (plugin-box + shell.go); the merge path reuses the existingverb:ocipeer-dispatch.go test).disposable: true; relocated tests (status_flat_test.go,merge_cmd_test.go) + the bed's[status-runs]/[reap-orphans-runs]steps FAIL without this change's wiring.charly.ymlplans intact (charly box validategreen); SDD:OpStatusCollectAllrides the existing ops vocab, no new CUE shape.disposable: truetargets.CHANGELOG/2026.198.0510.md+2026.198.0538.mdstaged (placeholders; validator finalizes).Assisted-by: Claude Code claude-fable-5 (fully tested and validated)
https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif