Skip to content

feat(p14a): status → command:status (Option B) + OCI engine → verb:oci; shed go-containerregistry - #92

Merged
atrawog merged 2 commits into
mainfrom
feat/p14a-status-oci-2
Jul 13, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/p14a-status-oci-2

Conversation

@atrawog

@atrawog atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Externalizes two subsystems from charly core into compiled-in plugin candies and sheds go-containerregistry from charly/go.mod. Bumps sdk to its merged P14a producer half (v0.2026194.1333, c7a3175).

OCI image engine → candy/plugin-oci (verb:oci, compiled-in)

  • registry.go + merge.go's go-containerregistry ENGINE (planMerge → executeMerge → mergeLayers + whiteout + podman/skopeo save/load) RELOCATED into candy/plugin-oci (own module, carries go-cr). Reached via verb:oci (OpRun + oci_op env: merge / inspect-user, the verb:libvirt precedent).
  • Core keeps the thinned charly box merge CLI + oci_plugin.go shim (tunnel_plugin.go welded-verb pattern); generate.go adopt-user → invokeOciInspectUser; plugin-build drive → InvokeProvider(verb:oci).
  • DELETED: build_merge_host.go + HostBuild("merge"); the 3 dead registry APIs (InspectRemoteImage/ImageExists/ImageInfo). Byte-identical relocation locked by TestMergeEngineGoldenParity (merged-layer DiffID).
  • go-containerregistry shed — the direct require + 10 orphaned docker/OCI indirects pruned manually (go mod tidy can't resolve workspace-local candies — RDD-confirmed; build-validated under go.work).

Status subsystem → candy/plugin-status (command:status, compiled-in) — Option B

  • candy/plugin-status owns the charly status CLI + render + the PURE nested overlay (ported to the wire-safe []spec.StatusNestedNode tree — no core type) + the OpStatusCollect leg. Reaches host-collected state via ONE seam HostBuild("status-substrate").
  • ALL 5 collectors + collectOne + probes STAY CORE behind the seam (LoadUnified/BoxMetadata/ProjectBundleConfig-coupled — dissolves at K1). status_substrate_host.go runs collection + pre-resolves the nested tree host-side.
  • DELETED from core: status.go, status_render.go, plugin_command_status.go. Parity kept by TestStatusCollectGoldenParity (host) + the candy's overlay_golden_test.go. charly status is the compiled-in command:status (the alias/settings/clean pattern; TestCommandCompileIn_StatusInProc).

Change class

Code + config (Go + candies + a check-bed step). Runtime tier.

R10 evidence (FINAL roster, frozen tree sdk 55e9c4d→merged c7a3175 + super, per-tree binary v2026.194.1330)

check-commands-local  PASS  5 steps  116s  ok:true  calver 2026.194.1317
  plan checks 6/6 PASS incl. status-runs exit=0 (charly status + status --json → JSON array, through command:status + the status-substrate seam)
check-sidecar-pod     PASS  11 steps 239s  ok:true  calver 2026.194.1317
  incl. sidecar-pod-running: charly status --json exit=0 (externalized status against a LIVE deploy)

Check-coverage: NEW status-runs step in check-commands-app (a step that FAILS without the externalization). Gates: build 0 / vet / go test ./... 61s (incl TestStatusCollectGoldenParity + TestPluginsGenReproducible) / golangci-lint 0 / gofmt; R5 grep zero; candy goldens TestMergeEngineGoldenParity + overlay_golden PASS; charly box validate 0.

Core delta

charly/*.go non-test −1,624 LOC (64,022 → 62,398). Migration-inventory residue (north-star §4.4): collectors → until-K1; status-substrate seam + merge CLI → until-K5; oci_plugin shim → until-K3 (all in the CHANGELOG).

Tier

fully tested and validated — all 10 standards + the fresh-rebuild P14a roster; the new command:status / verb:oci / status-substrate paths executed live.

https://claude.ai/code/session_01AAxEEG1p1C3Ks7h2NcPj18

Assisted-by: Claude (fully tested and validated)

atrawog added 2 commits July 13, 2026 15:41
…i; shed go-containerregistry

candy/plugin-oci (verb:oci, compiled-in): go-cr merge engine + adopt-user probe relocated; registry.go+merge.go engine+build_merge_host deleted; go-cr shed from charly/go.mod. candy/plugin-status (command:status, compiled-in, Option B): CLI+render+pure applyNestedOverlay+OpStatusCollect; collectors stay core behind HostBuild(status-substrate); status.go/status_render.go/plugin_command_status.go deleted. sdk bumped to the merged v0.2026194.1333 (c7a3175). Core delta charly/*.go non-test -1624. R10-proven: check-commands-local (incl status-runs) + check-sidecar-pod PASS.

Assisted-by: Claude (fully tested and validated)

Claude-Session: https://claude.ai/code/session_01AAxEEG1p1C3Ks7h2NcPj18
Merge-time version stamp (validator): CHANGELOG placeholder → 2026.194.1357.md
+ H1 date prefix. Folded by the squash-merge.

Assisted-by: Claude (documentation reviewed)
@atrawog

atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go + candies + a check-bed step (runtime) — the P14a consumer half

Independently re-derived on the final head 5d70a98 (trusting no author/orchestrator claim). Cross-repo consistency verified: sdk gitlink = c7a3175 (exactly the merged sdk main), charly/go.mod require = v0.2026194.1333 (exactly the merged tag), replace => ../sdk.

Gates I re-ran myself (all green):

  • charly: go build/vet/gofmt clean · go test ./... pass incl. TestStatusCollectGoldenParity, TestCommandCompileIn_StatusInProc, TestPluginsGenReproducible · golangci-lint 0 issues
  • candy/plugin-oci (GOWORK=off): build/gofmt/lint clean · TestMergeEngineGoldenParity PASS
  • candy/plugin-status (GOWORK=off): build/gofmt/lint clean · TestOverlayGolden(+3 variants) + TestRenderTable_HasColumns PASS

R5 self-test: the four relocated identifiers (StatusCmd/InspectImageUser/hostBuildMerge/RenderTable) are core-clean (present only in the new candies + unrelated substrings). Deleted from core: status.go, status_engine.go, plugin_command_status.go, registry.go, registry_test.go, build_merge_host.go; HostBuild("merge") + the 3 dead registry APIs gone; status_render.go relocated (rename). No transitional/dual-mode path.

placement: CORRECT — OCI engine → candy/plugin-oci (verb:oci); status render/overlay/command → candy/plugin-status (command:status): capability moved OUT of core, and go-containerregistry moved OUT with it (core go.mod shed go-cr + 10 indirects; plugin-oci carries it). Collectors STAY core behind ONE HostBuild("status-substrate") seam, inventoried until-K1 (LoadUnified/BoxMetadata-coupled); oci_plugin shim until-K3; seam + merge CLI until-K5 — every stays-core construct has a named K-wave exit in the CHANGELOG residue table. No new/grown charly/*_aliases.go; no new charly/ mechanism-kit import (the seam imports only sdk/spec). Core delta −1,624 (real body-move, not shells).

R10 — freshness cross-checked (no benefit of the doubt): the on-disk FINAL roster (check-commands-local 5 steps 116s ok:true; check-sidecar-pod 11 steps 239s ok:true, calver 2026.194.1317, status-runs exit=0) ran ~24 min before the final commit, so I verified it exercised the final code: every runtime .go/.yml this PR changed is frozen at mtime ≤ 13:14 UTC, the roster ran 13:17–13:19, and the ONLY post-roster change is charly/go.mod (13:40 — go-cr shed + sdk require bump), which is build-neutral (core builds without go-cr per my go build; replace => ../sdk makes the require version immaterial in-tree). The roster binary was a P14a build (status-runs cannot pass without the externalized command:status). status-runs is real coverage that FAILS without the externalization.

SDD @100%: TestPluginsGenReproducible no-op; the candy overlay is ported to the CUE-sourced spec.StatusNestedNode tree (no core type); no hand-edited generated file; no new @go(-).

ADE: both candies ship version + description + ≥1 deterministic check: (plugin-status status-module-present, plugin-oci module-present) — the command-only-plugin pattern.

Decision: Every hard gate passes on independent re-run; the relocation is golden-locked byte-parity; placement is correct with fully-inventoried K-wave residue; the fresh-rebuild roster is confirmed to have exercised the final runtime code. Finalizing merge-time CalVer 2026.194.1357, merging --squash, tagging v2026.194.1357.

Assisted-by: Claude (analysed on a live system)

@atrawog
atrawog merged commit c8d2bd9 into main Jul 13, 2026
@atrawog
atrawog deleted the feat/p14a-status-oci-2 branch July 13, 2026 13:59
atrawog added a commit that referenced this pull request Aug 22, 2026
The five box legs (distro-fedora#34, distro-cachyos#21, distro-arch#22,
distro-debian#14, distro-ubuntu#14) plus the plugins leg (#221) and docs leg
(#92) all merged and were tagged by their fresh validators; this records the
assembled state on main.

Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Aug 22, 2026
…tover) (#374)

* chore: pin the merged landing submodule heads; fix wait-ci dispatch path

The five box legs (distro-fedora#34, distro-cachyos#21, distro-arch#22,
distro-debian#14, distro-ubuntu#14) plus the plugins leg (#221) and docs leg
(#92) merged and were tagged by their fresh validators; this records the
assembled state on main. Also: wait-ci reads the PR number from the
workflow inputs so the workflow_dispatch re-run path works (context.issue
is undefined on dispatch runs).

Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)

* docs: finalize CHANGELOG placeholder to 2026.234.1007 (merge-time CalVer)

* docs: remove placeholder CHANGELOG/2026.234.1200.md

---------

Co-authored-by: charly-auto-merge[bot] <319588822+charly-auto-merge[bot]@users.noreply.github.com>
github-actions Bot pushed a commit that referenced this pull request Nov 21, 2026
…hain's pins (#1230)

* feat(plugins): publish the content kinds, and adopt the owned-skill chain's pins

The host half of ops.OpContent (opencharly/sdk#598), and the five pins
of the chain that installs a composed candy's owned skills.

- buildCapMeta records ProvidedCapability.contents for a class:kind
  capability (capMeta.IsContentKind implements
  spec.ContentKindCarrier). The validate-word-sets leg publishes the
  declaring kind words, sorted, as content_kinds. They are read off each
  provider's own capability, never a per-kind branch. That set is what
  plugin-build's render-prep and plugin-box's validate ask.
- The charly-skill-shelf's validate-satisfying no-op run: step is
  deleted: an owned skill node is install content now.
- Pins, all merged and tagged: spec v0.2026325.913 (#415), sdk
  v0.2026325.921 (#607), plugin-box v0.2026325.928 (#92), plugin-build
  v0.2026325.959 (#62, #63), plugin-harness-kind v0.2026325.1012 (#13).
  They move together: the old plugin-box pin calls
  deploykit.CollectSkillBodies, which the new sdk deletes.

Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

* fix(deps): adopt the shared sdk/spec pins in the tools modules

The required go check failed TestContractPinsMatchShared: the
tools/generate-packages, tools/golden-cloudinit and tools/golden-compile
modules still required sdk v0.2026324.1928 / spec v0.2026324.1914 while
charly/go.mod moved to sdk v0.2026325.921 / spec v0.2026325.913. The
previous commit moved the pins with go get inside charly/ only.

charly task mods-tidy adopts the shared pins in every lockstep module
and tidies them. The whole ci.yml go job passes locally: go test
./charly/..., every tools/* module (GOWORK=off -count=1), gofmt over
charly and tools, and golangci-lint over both.

Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.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