Skip to content

refactor(sdk)!: delete targetkit/sshx/proclifecycle/testkit — consume spec fabric slices (#55 step1) - #108

Merged
atrawog merged 4 commits into
mainfrom
feat/55-step1-fabric-slices
Jul 29, 2026
Merged

atrawog merged 4 commits into
mainfrom
feat/55-step1-fabric-slices

Conversation

@atrawog

@atrawog atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

#55 step 1 (sdk consumer leg)

sdk DELETES the 4 fabric kits (targetkit, sshx, proclifecycle, testkit) — their primitives moved to opencharly/spec slices (spec/transport, spec/sshx, spec/proc, spec/testkit; merged spec#3 → main e412efce, tag v0.2026210.1121). Every sdk use repoints to spec.X. kit.ShellQuote/SSHTarget → spec; kit keeps only startProcessPipes.

  • go.mod require spec v0.2026210.1121 (no replace — standalone proxy-fetch). go mod tidy settles; 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 -l clean; golangci-lint 0. 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)

atrawog added 2 commits July 29, 2026 13:03
…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)
@atrawog

atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator — CHANGES-REQUESTED

Fresh, independent re-validation on a clean standalone clone at head c1c76c2 (GOWORK=off, proxy-fetch, no replace). The code cutover is correct and the standalone battery is green — but the claim-keyed R5 sweep is incomplete: CLAUDE.md was updated, README.md was not. Do not merge until fixed.

Blocking

1. R5 / R1 — README.md still documents all four DELETED kit directories as owned packages.
Lines 32–38 list targetkit/, proclifecycle/, sshx/, testkit/ under "What this repo owns", describing directories this PR deleted. The PR correctly swept CLAUDE.md (commit 2976e37) but never touched README.md. R5's defined acceptance test fails:

$ git grep -nE '\b(targetkit|proclifecycle|sshx|testkit)\b' -- . ':!CHANGELOG/'
CLAUDE.md:13:  ... (`sshx/` ... NOT owned here; they live in ... opencharly/spec)   # CORRECT
README.md:32:- **`targetkit/`** — transport-neutral gRPC connections to Charly targets   # STALE
README.md:35:- **`proclifecycle/`** — a stdlib-only leaf package for process lifecycle.   # STALE
README.md:36:- **`sshx/`** — the in-process SSH client + tunnel helpers.                  # STALE
README.md:37:- **`testkit/`** — disposable live protocol fixtures ...                     # STALE

Fix: delete the four stale bullets from README's package inventory (mirror the CLAUDE.md wording — these now live in spec/transport, spec/proc, spec/sshx, spec/testkit), and re-run the grep self-test until it returns only CHANGELOG/ hits.

Secondary (fix in the same round)

2. R1 — CHANGELOG 2026.210.0910.md overstates the x/crypto pruning.
It states golang.org/x/crypto "require is pruned by the post-spec-tag go mod tidy." Reality on the shipped tree: go.mod still carries golang.org/x/crypto v0.49.0 // indirect, and go mod tidy is a verified no-op — it is retained as a test-only indirect (kit.test → spec/testkit → x/crypto/ssh). The first clause ("no longer imported by any sdk source") is true; the "require is pruned" clause reads as "removed from go.mod," which is false. Reword to: demoted to a test-only indirect (not pruned).

Verified PASS

  • GOWORK=off go build ./..., go vet ./..., go test ./... — all green (kit 10.5s incl. the SSH-process test via spec/testkit); the 4 deleted kits absent from the package set.
  • gofmt -l . empty; golangci-lint run ./... — 0 issues (the 2 pre-existing internal/wiregen errcheck findings are in the spec repo, not here).
  • go.mod: require github.com/opencharly/spec v0.2026210.1121, no replace; go mod tidy no-op; go mod verify → all modules verified; spec resolves to v0.2026210.1121.
  • Rule 2 preserved: zero golang.org/x/crypto imports in any sdk .go file (runtime or test source); the dep is purely transitive via the imported spec/testkit package — correct, expected, not flagged.
  • R5 code deletion + repoint correct: git grep 'opencharly/sdk/(targetkit|sshx|proclifecycle|testkit)' EMPTY; test file repointed to spec/testkit; kit.ShellQuote→spec.ShellQuote; SSHTarget→spec.SSHTarget alias.
  • CHANGELOG entry present; code-facts otherwise accurate.

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

atrawog and others added 2 commits July 29, 2026 13:33
…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
@atrawog
atrawog merged commit 19b4dea into main Jul 29, 2026
@atrawog
atrawog deleted the feat/55-step1-fabric-slices branch July 29, 2026 11:36
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