Skip to content

feat(sdk)!: drop the dead CopyDef alias and adopt spec v0.2026326.408 - #614

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/drop-copy-alias
Nov 22, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/drop-copy-alias

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

opencharly/spec#421 removed #Copy from the schema, so spec.Copy no longer exists. vmshared.CopyDef aliased it and had no user anywhere in the org (the sweep below: its only occurrence was the definition) — so the alias goes with the type rather than shipping a dangling alias.

  • go.mod moves github.com/opencharly/spec to v0.2026326.408 (spec#421, merged as 42a5a8cc63db53af70b7c4c17957e86a0983790c and tagged). That one line is the whole dependency change; go.sum records it.
  • vmshared/spec_aliases.go loses CopyDef = spec.Copy.

This is the sdk leg that spec#421's HOLDING named.

How tested

Contract / library module: its gate is its own module CI, run on the pushed head, GOWORK=off:

head: d1d35bc1df18c6265d2492d7bba211a49dda65ba
$ GOWORK=off go list -m github.com/opencharly/sdk github.com/opencharly/spec
github.com/opencharly/sdk
github.com/opencharly/spec v0.2026326.408
$ test -z "$(gofmt -l .)"
exit=0 
$ go build ./... && go vet ./...
exit=0
$ go test ./... -count=1
exit=0
ok=21
FAIL=0
$ golangci-lint run ./...   # v2.13.2
0 issues.
$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build ./...
exit=0
$ GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build ./...
exit=0
$ GOOS=linux GOARCH=arm CGO_ENABLED=0 go build ./...
exit=0
$ GOOS=linux GOARCH=386 CGO_ENABLED=0 go build ./...
exit=0

R5, the claim-keyed sweep — the alias and the type it named are gone from the tree, verbatim:

head: d1d35bc1df18c6265d2492d7bba211a49dda65ba
$ git grep -n -w -E 'CopyDef|spec\.Copy' HEAD -- '*.go'
exit=1
$ git diff origin/main HEAD -- '*go.mod' | grep -E '^[+-][^+-]'
-	github.com/opencharly/spec v0.2026326.323
+	github.com/opencharly/spec v0.2026326.408

Rulebook compliance

  • R0: /charly-internals:git-workflow, /charly-internals:go, /charly-internals:plugin.
  • R1: the finding (a dead alias to a deleted type) came from spec#421's liveness sweep; it is fixed here rather than filed, because this chain introduced it.
  • R2: no duplication; the alias was the only copy and it is removed.
  • R3: no workaround — the type is gone, so the alias is deleted rather than pointed elsewhere.
  • R4: code only; no prose routes around anything.
  • R5: the sweep above (exit 1, no match) and no other change.
  • R6: git status clean; feat/ branch off fresh origin/main; no force-push.
  • R7: the module suite compiles and passes on the tree without the alias — that IS the proof: a remaining user would fail to build.
  • R8: no live service mocked.
  • R9: no binary installed; go runs against the tree.
  • R10: the class gate (module CI, including the four-arch cross-compile) passed on the exact head.
  • R11: N/A — no DESIGN surface changes; this removes a Go alias whose CUE definition spec#421 deleted under #BuilderAlt / D-PLUG-2.

Change classification

  • Change class: contract / library module (no disposable target in this repo).
  • Attribution tier: fully tested and validated — the class gate passed on the final tree.
  • Breaking change + rollback: breaking only for a consumer of vmshared.CopyDef, which the org-wide search shows does not exist. Consumers move by pin. Rollback: revert the squash commit and re-tag; a consumer on the previous tag is unaffected.

Filed issues

None new.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)

opencharly/spec#421 removed `#Copy` from the schema, so `spec.Copy` no longer
exists. `vmshared.CopyDef` aliased it and had no user anywhere in the org (its
only occurrence was the definition itself), so the alias goes with the type
rather than shipping a dangling alias.

- `go.mod` moves `github.com/opencharly/spec` to `v0.2026326.408` (spec#421, merged
  and tagged). This is the only functional line in the diff.
- `vmshared/spec_aliases.go` loses `CopyDef = spec.Copy`.

*Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`*
*Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: d1d35bc1df18c6265d2492d7bba211a49dda65ba (branch: feat/drop-copy-alias)

Security screen: PASS — T1–T4 clear: no secrets/egress, no guardrail weakening, no unexpected dependency (first-party spec pin bump), scope matches the stated single-alias removal + version adoption.
Checklist: All applicable rules PASS or NA (A1 body accounts for all 3 files with pasted gate output + model-free/AI footer well-formed; A2/A3 library-module gate match, tier fully tested and validated justified by GOWORK=off build/test/vet/lint on the exact head; R1 zero warnings + dead-alias fixed in-tree; R5 grep sweep pasted with real command + exit=1; R11 NA no DESIGN surface change; ARCH placement CORRECT — alias removal in sdk vmshared is the right layer, no grown alias file, no new kit imports; no comments to disposition).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 22, 2026 08:25
@github-actions
github-actions Bot merged commit 16f43c3 into main Nov 22, 2026
8 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 22, 2026
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