Repository navigation
feat(spec): P14a — #SubstrateStatusRequest/Reply collector wire types + StatusFromState mapper - #53
Merged
Merged
Conversation
… + StatusFromState mapper The sdk half of the P14a status-COLLECTOR move (consolidated P14-remainder, B2 leg 0). The cleanly-movable status collectors (pod live + local + the probes) relocate from charly/ core into candy/plugin-substrate (super leg), served on the substrate kind provider's Invoke by word. This sdk leg adds the TWO CUE-sourced wire carriers the host<->plugin seam needs, plus the shared state-normalising mapper — all additive, zero break. - schema/status.cue: #SubstrateStatusRequest (the collector request — engine_bin/run_mode/ quadlet_dir/include_all/single/box/instance; NO deploy-cone crosses the seam) + #SubstrateStatusReply (the LIVE rows the plugin produced; host applies deploy enrichment after). vm/k8s/android deferred to K5 (deploy-cone-coupled). - spec/cue_types_gen.go: regenerated via task cue:gen (cue exp gengotypes) — the two Go structs. - spec/status_types.go: StatusFromState — the shared pure state-vocabulary mapper (R3 single-source for the plugin pod-live collector + the host vm collector that stays core until K5). Pure non-wire helper; the wire carriers are CUE-generated. SDD: wire types CUE-sourced + generated; StatusFromState is the legal non-wire pure-mapper category. cue:gen reproducible (run twice, tree clean). Verification (sdk standalone battery, B2): GOWORK=off go mod tidy (no-op) + go mod verify + go build ./... + go test ./... (all ok) + golangci-lint run (0 issues) + gofmt -l (empty) + go vet (clean). New wire types exercised live by the composition: candy/plugin-substrate go test ok + charly go test -run 'Status|Substrate|Cdp' ok. Fresh-rebuild disposable bed runs on the super leg. Assisted-by: Claude (analysed on a live system)
Contributor
Author
pr-validator — APPROVED ✅Change class: charly/sdk Go (runtime class — sdk standalone contract module) Fresh, independent re-validation of opencharly/sdk #53. I re-derived every check from the diff + my own re-runs; no author claim was inherited. Security & anti-tampering (T1–T4)
Checklist (R0–R10 + pillars)
Independent re-verification (my own runs)
Decision: APPROVED. The sdk leg is additive, CUE-sourced, reproducible, and the composition exercises the new types live. The Assisted-by: Claude (analysed on a live system) |
…lysed on a live system)
13 tasks done
atrawog
added a commit
to opencharly/charly
that referenced
this pull request
Jul 15, 2026
… + box-authoring → command:authoring (P14b) feat(p14)!: consolidate status collectors → substrate OpStatus + box-authoring → command:authoring The consolidated P14-remainder cutover — TWO disjoint, already-implemented cutovers landed as ONE atomic superproject cutover via a 3-leg B2 multi-repo landing (sdk → plugins → super). Net core LOC negative (1301 insertions / 1486 deletions on the super leg; the plugin grows, core shrinks). Leg 0 (sdk, merged 5303941, tag v0.2026196.449, PR opencharly/sdk#53): CUE-sourced wire carriers for the status-collector host↔plugin seam — #SubstrateStatusRequest / #SubstrateStatusReply + StatusFromState (R3 single-source). Leg 1 (plugins, merged 93b3010, tag v2026.196.0456, PR opencharly/marketplace#64): skill-doc R5 sweep for both halves (documentation reviewed). Leg 2 (super, this merge): P14a — status COLLECTORS clean subset → substrate OpStatus (HOW A): charly/{cdp_preresolve,status_collect_local,status_collect_pod,status_probes, status_golden_test,status_live_mounts_test,status_quadlet_test}.go + their tests DELETED from core; the LIVE collection half + the probes + the cdp devToolsTab decode MOVED to candy/plugin-substrate over the new OpStatus wire seam; enginekit shed from charly/ core imports. The 7 deploy-cone-coupled status files STAY host until K5 (PR #91). Deleted host tests faithfully relocated to candy/plugin-substrate/status_test.go (26 tests, no coverage dropped). P14b — box-authoring command family → command:authoring plugin: charly/scaffold_cmds.go + scaffold_project.go (399 LOC) DELETED; the 5 pure verbs run on sdk/kit (zero core reentry); box fetch/refresh reenter core over the new hidden __box-fetch/__box-refresh reentry via HostBuild("cli"). R5 sweep: cdp_preresolve.go → check_endpoint_resolve.go (candy/plugin-cdp/methods.go); status_golden_test.go → relocated plugin golden (candy/plugin-status/charly.yml). Gitlink bumps: sdk → 5303941; plugins → 93b3010; charly/go.mod require → v0.2026196.449. Verification (worktree binary, task build:binary, NOT installed): go test ./... (charly): ok 80.709s candy/plugin-{substrate,authoring,status,cdp}: go test/build ok golangci-lint run (charly): 0 issues gofmt -l (charly): empty go vet ./... (charly): clean task cue:gen (super): reproducible (no drift) R5 grep self-test: deleted identifiers only in CHANGELOG/ + "moved from" help-text R10 bed — charly check run check-commands-local (disposable: true): summary.yml ok: true, 5/5 steps (deploy-add 70s, bring-up 0s, check-live 27s, update 89s [fresh charly update], cleanup 19s), total 205s. check-live 7/7 passed incl. status-runs (P14a charly status via status-substrate seam → substrate OpStatusCollect) + box-authoring-dispatches (P14b authoring verbs). ZERO warnings. Moved code executed LIVE on the worktree binary. Architecture gate: placement CORRECT. Status collectors → R (substrate plugin OpStatusCollect). Host fan-out/enrichment → M (kind-blind dispatch by word, stays core). vm/k8s/android collectors stay host-side (deploy-cone-coupled, K5-gated, named exit). enginekit shed from core. command:authoring → R (command class plugin). box_fetch_reentry → K5-doomed hidden reentry (tracked residue, named K5 exit). No new charly/*_aliases.go; no new charly sdk-kit import. Net charly/*.go LOC −2128. Assisted-by: Claude (fully tested and validated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P14a sdk half — #SubstrateStatusRequest/Reply collector wire types + StatusFromState mapper
Leg 0 of the consolidated P14-remainder 3-leg B2 landing (sdk → plugins → super). This is the
sdk contract leg: two CUE-sourced wire carriers for the status-collector host↔plugin seam,
plus the shared pure state-vocabulary mapper. All additive, zero break. The collector MOVE
itself (the plugin side + the core deletion) lands in the super leg (leg 2), which composes
this merged sdk via the gitlink bump. Merging this sdk PR first is the B2 producer→consumer
order: the super gitlink must point at a commit on sdk
main.What this lands (3 sdk files + CHANGELOG)
schema/status.cue— two new self-contained wire defs:#SubstrateStatusRequest— the per-substrate COLLECTOR request the host sends to thesubstrate plugin's
OpStatusCollect: scalar inputs a sdk-only candy cannot derive(
engine_bin,run_mode,quadlet_dir,include_all, single-pathbox+instance).NO deploy-cone (
BundleConfig/UnifiedFile) crosses this seam — deploy enrichment stayshost-side until K5, applied to the live rows the reply returns. vm/k8s/android deferred to K5
(deploy-cone-coupled); the plugin returns no rows for those words until then.
#SubstrateStatusReply— the per-substrate COLLECTOR result: the LIVE rows the substrateplugin produced (pod: snapshot-derived + live mounts + tool probes; local: install-ledger
rows);
singlecarries the one pod detail row.spec/cue_types_gen.go— regenerated viatask cue:gen(cue exp gengotypes): the two Gostructs
SubstrateStatusRequest/SubstrateStatusReply(json+yaml tags viaschemagen -mode=retag).spec/status_types.go—StatusFromState(state string) string: the shared purestate-vocabulary mapper (normalises engine/container states to charly's
DeploymentStatus.Statusvocabulary). R3 single-source for the plugin pod-live collector(P14a) AND the host-side vm collector (
charly/status_collect_vm.go, deploy-cone-coupled →stays core until K5). Pure over its input (no core reentry). This is a pure non-wire
helper function — the legal non-wire category; the wire carriers above are CUE-generated.
SDD compliance
Wire types are CUE-sourced and
task cue:gen-generated (no hand-written wire struct — the#SubstrateStatus*defs →
cue_types_gen.go).StatusFromStateis a pure non-wire mapper function, the legalnon-wire category (a function, not a wire/data-carrier struct).
task cue:genreproducible: runtwice, tree clean (no drift).
Verification — sdk standalone battery (B2 per-module,
GOWORK=off)The new wire types are exercised live by the composition (super-leg tree):
The fresh-rebuild disposable bed (
charly check run check-commands-local) runs on the superleg (leg 2) — that is the consolidated R10 gate for the whole P14-remainder cutover. This sdk
leg's gate is the standalone contract-module battery above.
R0–R10 checklist
git-workflow,plugin,agents) before any actionStatusFromStateis the ONE mapper shared by plugin + host vm collectorcue_types_gen.go) verified reproducible (cue:gen run twice, no drift)Tier
Assisted-by: Claude (analysed on a live system)— the sdk module battery ran live(
go test ./...pasted) AND the new wire types are exercised live by the composition tests(plugin-substrate + charly Status tests, pasted). The fresh-rebuild disposable bed (which would
earn
fully tested and validated) runs on the super leg.Assisted-by: Claude (analysed on a live system)