Repository navigation
feat(spec): fabric-primitive slices (transport/sshx/proc) — #55 step 1 foundation - #3
Merged
Merged
Conversation
…Target + ShellQuote (#55 step1) STEP 1 of the everything-is-a-plugin import-purity plan moves the STANDALONE fabric primitives out of the sdk mechanism kits into granular opencharly/spec sub-packages, so charly core (and every plugin) inlines them from spec and drops those sdk kits. Per #55 Rule 2, each heavy dependency lives ONLY in the slice that needs it. New fabric slices (producer leg): - spec/transport — go-plugin/grpc dial+serve (from sdk/targetkit); grpc contained, zero x/crypto. - spec/sshx — in-process SSH client+tunnel (from sdk/sshx); the SOLE golang.org/x/crypto/ssh boundary. - spec/proc — process lifecycle+launch (proclifecycle + sdk/kit/process.go launch helpers); pure stdlib+spec. - spec/testkit — shared SSH-server test harness (from sdk/testkit). spec/spec additions: - ssh_target.go — SSHTarget/ParseSSHTarget/String/CurrentUsername (from sdk/vmshared). - shellquote.go — ShellQuote, the single-sourced POSIX quoter (from sdk/kit). go.mod gains golang.org/x/crypto. Rule-2 containment proven via go list -deps: spec/spec + spec/proc carry zero grpc, spec/proc zero x/crypto, x/crypto/ssh confined to spec/sshx + spec/testkit. go build/vet/test ./... green. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01Tu3YHSZ5GZQyafFg9xk4uf
Contributor
Author
pr-validator — CHANGES-REQUESTED (fresh independent validation, head b6e1589)Architecture is sound — all the Rule-2 goals are met:
BLOCKING (must fix in place):
Non-blocking (note): |
The PR-introduced test file's import block mis-sorted (testkit before proto/spec); gofmt -w fixes it. gofmt -l . now empty. (The pre-existing internal/wiregen errcheck the validator flagged is untouched Phase-A1 code → tracked lint-batch, not this cutover's scope.) Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
Rename the producer-leg CHANGELOG to the merge-time CalVer; no code change. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
This was referenced Sep 23, 2026
This was referenced Oct 8, 2026
This was referenced Nov 15, 2026
Closed
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.
#55 step 1 (producer) — granular fabric-primitive slices
The foundation of the approved everything-is-a-plugin architecture (Rule 2: no consumer imports an unused dep).
Adds dep-weight-isolated fabric-primitive slices to the ONE spec module (RDD-proven: package granularity +
Go 1.17 module-graph pruning give full binary + go.sum containment — no separate submodules needed):
SSHTarget/ParseSSHTarget/CurrentUsername+ShellQuote(a shared stdlib primitive; placed in spec/spec so callers add zero new imports — Rule 2).Containment matrix (
go list -deps, the point of Rule 2)Verification
GOWORK=off go build/vet/test ./...green;gofmt -lclean;golangci-lint0; no spec→sdk cycle. The sdk +superproject consumer legs (delete the 4 kits, repoint core+plugins) land next in the B2 chain, R10-proven on
the assembled tree (check-pod 13/13, check-builder-vm 10/10) with the ssh-free plugin (plugin-migrate) linking
zero x/crypto/ssh.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)