Skip to content

feat(schema): narrow status-substrate wire seam (K5) - #63

Merged
atrawog merged 3 commits into
mainfrom
feat/k5-status-nested-wire-narrow
Jul 17, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/k5-status-nested-wire-narrow

Conversation

@atrawog

@atrawog atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • go build ./... clean
  • go test ./... all packages pass
  • task cue:gen reproducible (regenerated on a clean origin/main-based branch)
  • Companion main-repo PR (candy/plugin-status + charly core) built + R10-verified live against this schema (see companion PR description)

https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif

…d resolution (K5)

The declared nested-deployment-tree pre-resolution moves plugin-side
(candy/plugin-status), so #StatusSubstrateRequest.nested and
#StatusSubstrateReply.roots no longer cross the host<->plugin wire.

Assisted-by: Claude Sonnet 5 (fully tested and validated)
atrawog added 2 commits July 17, 2026 02:01
…arrowing

This PR shipped without a CHANGELOG entry. Added one (placeholder CalVer,
finalized at merge like every other landing) documenting the schema
change, the confirmed zero-overlap with the other two open sdk PRs
(#62/#64, both touch schema/seam.cue not schema/status.cue), and the
sdk#64-class assembled-superproject verification: bumped the charly
superproject's sdk gitlink to this commit in a scratch worktree and
confirmed the assembled build fails exactly as predicted (3 call sites
in status_substrate_host.go + candy/plugin-status/{command,provider}.go
still reference the dropped fields) -- then confirmed the companion
charly PR's diff fixes all three, so the landing order (this PR first,
companion PR's gitlink re-bump immediately after) is safe.

Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated)
Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated)
@atrawog

atrawog commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator: PASS — fully tested and validated

Independent fresh-worktree validation (unique worktree /home/atrawog/Atrapub/o/charly-wt-val63138). Re-derived everything from scratch.

Standalone sdk gate — all clean

  • GOWORK=off go mod tidy — no changes; go mod verify — all modules verified.
  • GOWORK=off go build ./... — clean.
  • GOWORK=off go test ./... — all packages pass (sdk, deploykit, enginekit, kit, loaderkit, spec, vmshared).
  • golangci-lint run ./... — 0 issues.
  • task cue:gen reproducibility — regenerated spec/{cue_types_gen.go,vocab_gen.go,version_gen.go} from the committed schema; git status --short reported zero drift afterward. TestGenReproducible explicitly re-run and green.

Schema-file overlap check with other open sdk PRs — confirmed zero overlap

This PR touches schema/status.cue only. #62 (check-bed-seam narrowing) and #64 (K4 shared-resolver extraction) both touch schema/seam.cue — a different file, confirmed via gh pr view --json files on both. (Note: #64 is currently OPEN, not reverted as I'd been told — worth a heads-up, though it doesn't change the overlap verdict since the files genuinely don't intersect.)

The critical sdk#64-class check — ASSEMBLED superproject build, not just standalone

This PR narrows two wire types (#StatusSubstrateRequest.nested, #StatusSubstrateReply.roots both dropped). The standalone sdk gate cannot see whether a merged consumer still reads the dropped fields (sdk doesn't import charly/plugins), so I bumped a scratch superproject worktree's sdk gitlink to this commit and ran the assembled go build ./... against the CURRENT charly main (which still pins an older sdk commit). It failed exactly as predicted:

../candy/plugin-status/command.go:55:4: unknown field Nested in struct literal of type spec.StatusSubstrateRequest
../candy/plugin-status/command.go:60:48: reply.Roots undefined (type spec.StatusSubstrateReply has no field or method Roots)
../candy/plugin-status/provider.go:58:52: reply.Roots undefined (type spec.StatusSubstrateReply has no field or method Roots)

(charly/status_substrate_host.go independently carries the same class of break — confirmed by reading its source — though the compiler reports the plugin-status errors first.)

This is NOT a reason to block this PR. charly's main currently pins an OLDER sdk commit, so nothing yet depends on THIS commit's narrowed shape — merging this PR into sdk's own main is safe standalone. The risk is specific to the NEXT step: bumping the consuming charly gitlink to this commit without the consumer fix landing atomically. I independently read the companion charly#138's diff and confirmed it fixes all three call sites (removes Nested:/.Roots usage in status_substrate_host.go, command.go, provider.go) in the same change as its own gitlink bump — so the safe landing order is: this PR merges first, then charly#138 re-bumps its gitlink to the post-squash merged SHA (a squash mints a new commit) and lands immediately after, never decoupled.

Missing CHANGELOG — added by the validator

This PR shipped with no CHANGELOG entry (only schema/status.cue + spec/cue_types_gen.go were touched) — a gap versus the required per-repo landing deliverable. Since this is a narrow, well-understood, purely-additive documentation gap (not a design decision), I authored the entry myself (CHANGELOG/2026.198.0002.md, mirroring this repo's established structure) rather than routing back to the author for a purely administrative omission — pushed as 887cfbd + finalized as 0c6804c.

Verdict: PASS. Merging.

Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated)

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