Skip to content

fix(spec)!: restore the 4 live deploy-seam wire types #66 over-removed (main-compat regression) - #69

Merged
atrawog merged 2 commits into
mainfrom
fix/restore-deploy-seam-wire-types
Jul 17, 2026
Merged

atrawog merged 2 commits into
mainfrom
fix/restore-deploy-seam-wire-types

Conversation

@atrawog

@atrawog atrawog commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Urgent main-compat regression fix (solo by the Sizing Law's urgent-standalone row — this blocks every superproject sdk bump). sdk#66 removed #DeployAddRequest/#DeployAddReply/#DeployDelRequest/#DeployDelReply from schema/seam.cue as "now-dead" — but they were dead only on the UNMERGED K4 consumer branch. On charly MAIN they are LIVE (candy/plugin-bundle/bundle_cmd.go:68,104 forwards through them; charly/host_build_deploy_add.go/_del.go serve the seams), so sdk main ≥ #66 cannot be consumed by charly main: any gitlink bump breaks the compiled-in plugin-bundle (undefined: spec.DeployAddRequest). Surfaced by charly PR #141's repoint; RCA traced to the #66 diff (its own CHANGELOG only declares the #ResolveStartDirectRequest removal, which WAS correct — zero consumers on charly main — and stays removed).

  • Restores the 4 defs verbatim (pre-removal text) into schema/seam.cue before #DeployFromBoxRequest; task cue:gen regeneration (spec/cue_types_gen.go).
  • They retire FOR REAL with the K4 deploy-cone wave that lands dispatch.go and deletes the seams they serve (R5, one change).
  • CHANGELOG/2026.198.0800.md (placeholder CalVer) records the RCA + the producer-removal lesson: a symbol's liveness is checked against the CONSUMER's MAIN, never a sibling unmerged branch.

Change class

charly-or-sdk Go (sdk producer regression fix). Cross-repo consumer: charly PR #141 repoints to the merged SHA of THIS PR (its current pin ab60ec6 is the broken state).

How R10-tested — exact gate, commands, and pasted output

$ GOWORK=off go build -buildvcs=false ./...   # BUILD exit: 0
$ GOWORK=off go test ./...                    # TEST exit: 0 (kit/loaderkit/spec/vmshared ok)
$ task cue:gen && git status --porcelain      # (empty — regeneration is a NO-OP on the committed tree)
CONSUMER PROOF (superproject worktree, sdk submodule at 2bb55ea):
$ cd charly && go build -o /dev/null .        # charly+plugin-bundle BUILD exit: 0
(baseline failure against ab60ec6: candy/plugin-bundle/bundle_cmd.go:68:43: undefined: spec.DeployAddRequest)

Attribution tier

analysed on a live system — build/test/gen + consumer-compile executed; no bed exists for a library leg (the runtime proof rides #141).

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: git-workflow/strict-policy/plugin/go (SDD) loaded.
  • R1 RCA + zero warnings: full RCA in the CHANGELOG (the feat(schema,deploykit,kit): K4 residual pod-deploy sdk leg (F12 wire types + ensure-image seam) #66 over-removal, why its "dead" claim was false, the exact consumer lines); outputs warning-free.
  • R2 no out-of-scope: the lesson item (validator liveness-check playbook) routes to the standing docs batch; the fix itself is complete here.
  • R3 no duplication: restores the single prior definition verbatim; no parallel type introduced.
  • R4 no workaround: the fix is the definition restore, not a shim (hand-writing the structs in the consumer was rejected — SDD forbids hand-written wire types).
  • R5 hard cutover + grep: nothing removed; the future removal rides the K4 wave with its seams.
  • R6 git safety: append-only branch off origin/main; no destructive actions.
  • R7 runtime gate: consumer-side, on fix(lint): enable the gofmt formatter so the gate can fail on formatting #141 (cross-repo order).
  • R8 artifact invariants: N/A.
  • R9 binary == source + deps: N/A (library).
  • R10 disposable + coverage: the types' coverage is their consumer's compile + fix(lint): enable the gofmt formatter so the gate can fail on formatting #141's bed; TestGenReproducible/spec tests green.
  • RDD / ADE / SDD: SDD followed exactly — CUE def restored as the single source, task cue:gen regenerated, third-run no-op proven. ADE N/A.
  • Hard cutover: ONE atomic squash.
  • Kernel/plugin boundary law: wire-type vocab in sdk/spec — the legal home.
  • Disposable-only autonomy: N/A.
  • Clean architecture + Go gates: gofmt clean; vet/test green; validator re-runs lint independently.
  • CHANGELOG: CHANGELOG/2026.198.0800.md staged (placeholder; validator finalizes).

Assisted-by: Claude Code Anthropic Claude Fable 5 (analysed on a live system)

https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif

sdk main ≥ #66 broke charly main's candy/plugin-bundle (spec.DeployAddRequest/
DeployDelRequest undefined) — the types were live on the consumer's main and
only dead on the unmerged K4 branch. Restored verbatim + cue:gen; they retire
for real with the K4 dispatch.go cutover that removes their seams.

Assisted-by: Claude Code Anthropic Claude Fable 5 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
@atrawog

atrawog commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: sdk library (schema/wire-type restore, cross-repo main-compat fix)

Independently re-derived every claim (trusted none of the author's word):

  • Consumer liveness on charly main — confirmed directly against origin/main
    (not a stale local checkout): candy/plugin-bundle/bundle_cmd.go:68,104 and
    charly/host_build_deploy_add.go/host_build_deploy_del.go all reference
    spec.DeployAddRequest/DeployAddReply/DeployDelRequest/DeployDelReply.
  • sdk main (ab60ec6) genuinely lacks the 4 types — confirmed via git show;
    traced the removal to 28ee880 (feat(schema,deploykit,kit): K4 residual pod-deploy sdk leg (F12 wire types + ensure-image seam) #66), which replaced them with the new K4
    granular dispatch types (not yet consumed on charly main).
  • Restored text is byte-identical to the pre-removal definitions (28ee880^)
    — diff exit 0, comments included.
  • #ResolveStartDirectRequest correctly stays removed — git grep across the
    superproject: zero live consumers.
  • task cue:gen reproducibility — clean worktree, git status --short empty
    after regeneration (NO-OP, as SDD requires).
  • Go gates (isolated worktree + isolated lint cache, GOWORK=off): build/vet/
    gofmt/test/mod-tidy/mod-verify all clean; golangci-lint run ./... → 0 issues.
  • CONSUMER PROOF, isolated and unconfounded — built a scratch go.work (a
    workspace-level replace was required, since each module's own go.mod carries
    a relative replace that otherwise wins) against two real sdk worktrees:
    go build ./candy/plugin-bundle/... fails against sdk@ab60ec6 with exactly
    the claimed undefined: spec.DeployAddRequest / DeployDelRequest, and passes
    clean (exit 0)
    against sdk@2bb55ea (this PR's head).
    • Note: building the whole charly binary also surfaces an unrelated,
      pre-existing break in candy/plugin-box (deploykit.ExecContext/kit.DoMode
      undefined) and candy/plugin-feature (spec.FeatureEntity.Steps/Summary/
      ValidationErrors undefined) — identical against BOTH sdk commits tested,
      proving it is untouched by this diff. Reported separately to the orchestrator;
      it does not bear on this PR's claim (R2 separability: fix(spec)!: restore the 4 live deploy-seam wire types #66 over-removed (main-compat regression) #69's own claim — the
      isolated plugin-bundle build — holds independent of that other issue).
  • Solo-ceremony justification confirmed — sdk#68 (already merged, = ab60ec6)
    is charly main's current pin target, and charly PR fix(lint): enable the gofmt formatter so the gate can fail on formatting #141 (an unrelated W0 wave)
    would repoint the gitlink straight into this break — i.e. this blocks every
    in-flight cross-repo sdk-gitlink bump, not one PR. Genuinely urgent-standalone;
    the real K4 dispatch.go consumer migration stays properly deferred to its own
    future cutover (per the CHANGELOG's own wording), not dodged by this fix.
  • CHANGELOG 2026.198.0800.md present, correct # <CalVer> — <title> H1 form,
    real RCA (not a stub). Commit structure: exactly ONE commit, atomic.

Checklist (every item — full detail in the durable verdict file):
0 security/anti-tampering — PASS (scope matches exactly, no secrets/weakened gates)
1 description complete — PASS · 2 change-class gate — PASS (consumer-proof re-run
myself) · 3 attribution tier — PASS (analysed on a live system — real live gates +
live consumer-compile, both by author and independently by me) · 4 R0 skills — PASS
· 5 R1 RCA/zero-warnings — PASS · 6 R2 no out-of-scope split — PASS (unrelated
box/feature break is genuinely separable, flagged not blocked) · 7 R3 no dup — PASS
(byte-identical restore) · 8 R4 no workaround — PASS (real CUE fix, hand-written
consumer struct explicitly rejected) · 9 R5 grep self-test — PASS · 10 R6/R8/R9 —
PASS/N-A · 11 R10 — N/A bed class, substitute proof independently re-run · 12
RDD/ADE/SDD — PASS (SDD @100%, cue:gen no-op, no hand-written wire type) · 13
concurrency — N/A · 14 hard cutover, one commit — PASS · 15 ARCHITECTURE GATE —
placement: CORRECT
(sdk/spec is the E-envelope wire-type home; zero charly/*.go
touched, so the alias/kit-import mechanical sub-checks are N/A) · 16 disposable-only
— N/A · 17 clean-architecture/Go gates — PASS (gofmt/vet/test/lint all reran clean)
· 18 CHANGELOG — PASS

Decision: APPROVED. Genuine, urgent, correctly-scoped main-compat regression fix,
independently verified end-to-end including a live, isolated consumer-compile proof
I ran myself (not merely re-reading the pasted claim). One cosmetic note: the commit
subject's ! breaking-change marker is backwards here (this PR restores removed
surface, it removes nothing) — the merge-time squash subject will drop the !.

Proceeding to finalize the CalVer, merge (squash), and tag per the two-step landing flow.

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (analysed on a live system)

Renamed CHANGELOG/2026.198.0800.md to the actual merge-time CalVer
(evaluator step, computed via date -u).

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (analysed on a live system)
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