Repository navigation
refactor(sdk)!: delete targetkit/sshx/proclifecycle/testkit — consume spec fabric slices (#55 step1) - #108
Conversation
…ec fabric slices (#55 step1) STEP 1 of the everything-is-a-plugin import-purity plan moved the standalone fabric primitives into granular github.com/opencharly/spec sub-packages. This sdk leg DELETES the four now-relocated kits and repoints every sdk consumer at the spec slices — a hard cutover, no alias shims. Deleted (moved to spec): sdk/targetkit → spec/transport, sdk/sshx → spec/sshx, sdk/proclifecycle → spec/proc, sdk/testkit → spec/testkit. Moved out of sdk/kit: process.go launch helpers (ShutdownProcessGroup / SortedEnvPairs / RemoteLaunchCommand / ProcessShutdownGrace) → spec/proc (the caller-owned startProcessPipes stays in kit); kit.ShellQuote → spec.ShellQuote. Repoints: kit deploy executors + deploykit emitters → spec.ShellQuote / spec/proc; vmshared/ssh_target.go → type SSHTarget = spec.SSHTarget + libvirt_uri.go → spec.CurrentUsername (CurrentUsername re-export dropped); deploy_chain.go → spec.ParseSSHTarget; privileged_runner / localpkg / venue_builder / cloud_init_iso → spec/proc temp-cleanup. No sdk source imports golang.org/x/crypto anymore (moved to spec/sshx); the go.mod require is pruned by the post-spec-tag go mod tidy (B2). go build/vet/test green (kit/deploykit/vmshared/loaderkit/buildkit); git grep 'sdk/(targetkit|sshx|proclifecycle|testkit)' and '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
…) — #55 step1 sdk leg spec#3 (transport/sshx/proc slices) merged to spec main e412efce (tag v0.2026210.1121). sdk consumes them; the 4 kits (targetkit/sshx/proclifecycle/testkit) are deleted (in the step1 feat base). Bump the require; go mod tidy settles (x/crypto stays as a test-only indirect via sdk/kit.test → spec/testkit — Rule 2 preserved: no runtime consumer pulls it). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
|
…NGELOG x/crypto wording (#55 step1 review round) pr-validator CHANGES-REQUESTED on sdk#108: - R5: README 'What this repo owns' still listed targetkit/proclifecycle/sshx/testkit (deleted; now spec/{transport,proc,sshx,testkit}). Bullets removed — grep self-test now CHANGELOG-only + the correct CLAUDE.md 'not owned here' pointer. - R1: CHANGELOG claimed x/crypto require is 'pruned by go mod tidy' — false. Reworded: tidy DEMOTES it to a test-only // indirect (kit.test → spec/testkit → x/crypto/ssh), not pruned; Rule 2 preserved (no runtime consumer pulls it). Docs-only round; code cutover unchanged (validator confirmed GREEN). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
…k leg) pr-validator PASS on f6d8529 (fresh standalone clone, GOWORK=off, no replace): build/vet/test green, gofmt clean, golangci-lint 0, tidy no-op, spec 1121, x/crypto test-only indirect (Rule 2 preserved). Both review-round findings (README R5 sweep, CHANGELOG x/crypto wording) verified resolved. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01RuuNS3hnyFi4kPgT2pWTHw
#55 step 1 (sdk consumer leg)
sdk DELETES the 4 fabric kits (targetkit, sshx, proclifecycle, testkit) — their primitives moved to
opencharly/specslices (spec/transport, spec/sshx, spec/proc, spec/testkit; merged spec#3 → main e412efce, tag v0.2026210.1121). Every sdk use repoints tospec.X.kit.ShellQuote/SSHTarget→spec; kit keeps only startProcessPipes.go mod tidysettles; x/crypto stays a test-only indirect (sdk/kit.test → spec/testkit), NOT a runtime dep — Rule 2 preserved.git grep 'sdk/(targetkit|sshx|proclifecycle|testkit)'in sdk source → EMPTY.Verification
GOWORK=off go build/vet/test ./...green (proxy-fetches spec 1121);gofmt -lclean;golangci-lint0. Producer-first B2: spec#3 merged; the superproject leg (core inlines the slices, drops the kits, repoints 85 plugins) lands next, R10-proven on the assembled tree (check-pod 13/13, check-builder-vm 10/10; ssh-free plugin links 0 x/crypto).Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)