Repository navigation
refactor(core)!: charly + plugins consume opencharly/spec fabric slices, drop sdk kits (#55 step1) - #194
Conversation
…k kits (#55 step1) STEP 1 of the everything-is-a-plugin import-purity plan relocated the standalone fabric primitives from the sdk mechanism kits into granular github.com/opencharly/spec sub-packages (spec producer + sdk consumer legs). This superproject leg repoints charly core AND the plugin candies at the spec slices, dropping the now-deleted sdk/{targetkit,sshx,proclifecycle,testkit} imports — a hard cutover, no alias shims. charly core: agent_target_cmd/plugin_grpc → spec/transport; check_graphics_endpoint/host_build_pod_config_seams → spec/sshx; main/bundle_members/host_build_deploy_members → spec/proc; the floor-gate x/crypto/ssh boundary classification updated to spec/sshx. plugin candies: plugin-agent/agent-pi → spec/transport + spec/proc; plugin-ssh/vm → spec/sshx (+ spec.CurrentUsername); plugin-enc/oci/secrets → spec/proc; plugin-box → spec.ParseSSHTarget; kit.ShellQuote → spec.ShellQuote across ~27 candies (unused sdk/kit imports dropped). Forward-pins: spec b6e1589, sdk 2976e37 (feature commits; team-lead reconciles to merged commits + retidies all go.mod at B2). go build/vet ./... + go test ./... green (charly + every candy module); charly box validate exit 0; task build:binary green (charly version 2026.210.0855); Rule-2 containment proven (plugin-migrate links zero x/crypto/ssh); git grep 'sdk/(targetkit|sshx|proclifecycle|testkit)' + 'kit.ShellQuote' both EMPTY. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Tu3YHSZ5GZQyafFg9xk4uf
… retidy + gofmt + R10 proof Second commit of the step-1 superproject leg (the first, c8edd90, was already pushed; this folds the merged-submodule finalization rather than force-pushing an amend). --squash folds both into one commit on main. - gitlinks → merged mains: spec e412efce (v0.2026210.1121), sdk 19b4deae (v0.2026210.1134); plugins b352fffa (orphaned/unpushed) → dc9dd97 (reachable main; the plugins submodule is skills/docs, no build effect — see tracked landing-discipline finding). - charly/go.mod + 85 candy/plugin-*/go.mod require spec → v0.2026210.1121; go.work regenerated via pluginsgen (canonical, not go work sync). - gofmt import-sort fix, 41 files (spec/spec mis-sorted vs sdk/vmshared after the repoint); gofmt -l now empty. - R10 (assembled fresh ./bin/charly 2026.210.1158): check-pod 13/13 (211s), check-builder-vm 10/10 (276s), both fresh-rebuild; go test ./... 0-FAIL; Rule-2 containment proven (plugin-migrate 0 x/crypto/ssh, plugin-ssh links via spec/sshx). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: charly Go code + all 85 plugin candies (module-path repoint: Blocking finding — 1 (real, independently reproduced)
The Why it escaped the PR's gate: Scope of the leak: I swept all 85 candies with Fix: delete line 8 of Checklist
What I independently verified as PASS (so the fix round is narrow)
Note on my independent
|
…eview round) The kit.ShellQuote→spec.ShellQuote repoint removed kit from methods.go but left the now-unused import in the sibling test file. Escaped the workspace gate because plugin-dbus is out-of-process (not in go.work 'use'), so 'charly go test ./...' never compiled it. RCA: the build loop iterated go.work modules only; the fix is verified by GOWORK=off go vet across ALL 85 candies (0 failures — plugin-dbus was the sole break). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly Go core + all 85 plugin candies (module-path repoint: Checklist (independently re-derived — trusted no author claim)
Independent verification highlights
Comments considered: 1 — prior validator Cross-PR interactions considered: none-found — PR #194 is the only open PR in Decision: PASS. Every gate re-derived independently and green — mechanical (gitlinks, go.mod requires, R5 sweep, all-candy Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) |
…tamp) Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
… sync) Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
pr-validator — landed ✅
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) |
…ent, and three stale figures B1 — command.go still described driftCmd as "the CI gate" and "(the docs:drift model)", the two claims this cutover measured false and removed everywhere else. It contradicted generate.go's own comment ten lines away, inside the same diff. The per-repo sweep found exactly one surviving site, in the superproject only — the one file no projection carries, which is why no downstream review met it. B3 — the entry said "Four plugins legs". Six carried this cutover's prose: #186, #187, #188, #190, #193, #194. The line was authored in the final commit, after all six had landed. Enumerating by `git log | grep '(#N)'` is unreliable here: #186, #187 and #190 have squash subjects that carry no PR-number suffix, so the count came from the merged-PR list instead. B4 — the reference index still called status-absence on a known head "a false negative" while the section it indexes now says it "proves nothing". Those are different claims: one asserts the thing is real but unseen, the other that the observation is uninformative. B6 — the tag invariant placed 2026.215.1207 both in the untagged set ("at or before") and inside the tagged 67-for-67 run. It is untagged, and is the latest untagged entry, so the run opens above it. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
#55 step 1 — charly core + all plugins consume the granular
opencharly/specfabric slicesThe superproject consumer leg of #55 step 1 (the everything-is-a-plugin import-purity program, plan: minimal core + granular spec). Producer legs already merged: spec#3 (fabric-primitive slices → spec main
e412efce, tagv0.2026210.1121) and sdk#108 (sdk drops the 4 kits, consumes spec → sdk main19b4deae, tagv0.2026210.1134). This PR makes charly core + all 85 plugin candies consume the spec slices.What lands here (2 commits,
--squashfolds them)Fabric-primitive extraction (Rule 1 + Rule 2). The standalone host primitives moved out of the sdk mechanism kits into granular
opencharly/specsub-packages so no consumer imports a dep it doesn't use:spec/transport(go-plugin/grpc dial+serve — fromtargetkit) ·spec/sshx(in-process SSH client+tunnel, the solex/crypto/sshboundary) ·spec/proc(process lifecycle+launch — fromproclifecycle) ·spec/testkit(shared test fixtures) ·spec.ShellQuote/spec.SSHTarget/spec.CurrentUsername.Core repoints —
agent_target_cmd.go,plugin_grpc.go→spec/transport;check_graphics_endpoint.go,host_build_pod_config_seams.go→spec/sshx;main.go,bundle_members.go,host_build_deploy_members.go→spec/proc;kernel_manifest_floor_test.gox/crypto boundary reclassified tospec/sshx.Plugin repoints —
plugin-ssh/plugin-vm→spec/sshx;plugin-agent/plugin-agent-pi→spec/transport+spec/proc;plugin-enc/plugin-oci/plugin-secrets→spec/proc;kit.ShellQuote→spec.ShellQuoteacross ~27 candies. Hard cutover — no alias shims.Assembly — gitlinks forward-pinned to the merged producer mains (spec
e412efce, sdk19b4deae);charly/go.mod+ all 85candy/plugin-*/go.modrequire spec →v0.2026210.1121;go.workregenerated via pluginsgen (canonical). Also:pluginssubmodule gitlink correctedb352fffa(orphaned/unpushed, unreachable on the plugins remote) →dc9dd97(reachable plugins-main); the plugins submodule is skills/docs only — no build/R10 effect — and the orphaned-pointer root cause is tracked as a separate landing-discipline finding.The Rule-2 win (RDD-proven live)
Granular slices contain heavy deps: an ssh-free plugin (
plugin-migrate) links 0golang.org/x/crypto/ssh, while an ssh-using plugin (plugin-ssh) links it viaspec/sshx. Importing the pod/deploy contract no longer drags in ssh.R5 grep self-test
git grep 'sdk/(targetkit|sshx|proclifecycle|testkit)'andgit grep 'kit.ShellQuote'→ EMPTY (both sdk source and superproject).R10 — assembled tree, fresh
./bin/charly2026.210.1158, both beds fresh-rebuildcheck-pod13/13 (total_seconds: 211) — build → check-image → pod deploy → check-live (20s) → feature-run →update(fresh rebuild, 64s) → check-live-rebuild (20s) → feature-run-rebuild → cleanup; every stepok: true, no prereq-skip. Artifact:box/fedora/.check/check-pod/2026.210.1202/summary.yml.check-builder-vm10/10 (total_seconds: 276) — vm-build → vm-create → deploy-add → member deploy → check-live → member check-live →update(fresh rebuild, 1m28s) → cleanup; every stepok: true, domain torn down clean. Artifact:.check/check-builder-vm/2026.210.1202/summary.yml.go build ./...0 failures across charly + 85 plugins + spec + sdk;charly go test ./...exit 0 (0 FAIL);go vetclean;gofmt -lempty (41 import-sort files fixed — the repoint reordered imports);TestPluginsGenReproduciblepasses;charly box validateexit 0.Beds exercise the change class (module-path repoint touching build/deploy/check + the build engine's heavy spec imports); the change is byte-identical spec types, so this build+deploy+check roster is proportionate.
Producer-first B2: spec#3 → sdk#108 (both merged+tagged) → this superproject leg.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)