Skip to content

feat(spec): adopt sdk/spec InstallStep interface (P4-unit-2 consumer) - #32

Merged
atrawog merged 2 commits into
mainfrom
feat/sdk-installstep
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/sdk-installstep

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Consumer of P4-unit-2 (producer: sdk v0.2026189.1703, merged 07db71b). The InstallStep interface lives in sdk/spec now; charly:

  • deletes its definition from install_plan.go;
  • re-exports it via type InstallStep = spec.InstallStep;
  • bumps sdk → 07db71b + go.mod → v0.2026189.1703.

The 13 concrete step structs need no change — they satisfy spec.InstallStep structurally (their Kind/Scope/Venue/RequiresGate/Reverse already return the spec-aliased types).

Change class

charly Go (interface adoption) + submodule/go.mod bump.

How R10-tested

  • Verbatim move; go build ./... proves the structs satisfy spec.InstallStep; golden go test ./... green.
  • Beds on final code (merged sdk 07db71b, fresh binary, source frozen): check-builder-local PASS 4/4 + check-local PASS 4/4, golangci 0, zero warnings.

Attribution tier

fully tested and validated

Compliance

  • R5: git grep 'type InstallStep interface' -- charly/ returns none (def in sdk/spec; charly alias only). R3: one importable home. Producer-first. CHANGELOG 2026.189.1621.md.

Assisted-by: Claude (fully tested and validated)

atrawog added 2 commits July 8, 2026 19:08
Consumer of P4-unit-2 (producer: sdk v0.2026189.1703). The InstallStep interface
lives in sdk/spec now; charly deletes its definition from install_plan.go and
re-exports it via `type InstallStep = spec.InstallStep`. The 13 concrete step structs
need NO change — they satisfy spec.InstallStep structurally. Bumps sdk →
v0.2026189.1703. Behavior-neutral; golden tests + check-builder-local + check-local
beds green.

Assisted-by: Claude (fully tested and validated)
… sdk/spec InstallStep consumer)

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

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go (InstallStep IR interface home relocation) + submodule/go.mod bump

I re-derived compliance independently (fresh context, no author trust). Checklist:

  • [PASS] 0. Security (T1–T4): diff touches only CHANGELOG/, charly/go.mod, charly/install_plan.go, sdk gitlink — no CLAUDE.md / hooks / branch-protection / validator-spec edits; no injection in the description; scope matches description exactly; no secrets/exfiltration; supply-chain = the sdk bump, verified below to be the merged main + tagged commit.
  • [PASS] 1. Description complete: template filled; Summary accounts for every file; How-R10 names the beds + fresh-binary + frozen-source; no bare checkboxes, no "will test" promises.
  • [PASS] 2. Change-class gate: Go IR change → go test ./... + task build:charly (R9) + charly check run on the two beds whose kinds exercise a touched path (build+deploy). No dry-run / rebuild-alone / task-edit fraud.
  • [PASS] 3. Attribution tier: fully tested and validated — the InstallStep dispatch path (builder DEPLOY leg + local deploy + ExternalPluginStep) executed LIVE against the fresh rebuild; both bed outputs verified.
  • [PASS] 4. R0 skills: consistent with /charly-internals:install-plan (IR homed in sdk/spec) + /charly-internals:plugin (kernel/plugin boundary — see item 15).
  • [PASS] 5. R1 / zero warnings: no warning/error in any gate output; both beds zero-warning.
  • [PASS] 6. R2: no pre-existing/out-of-scope split; single atomic change.
  • [PASS] 7. R3: the alias removes the duplicate definition — ONE importable home (spec.InstallStep).
  • [PASS] 8. R4: clean type X = spec.X alias; no sleep/retry/magic/ad-hoc-podman.
  • [PASS] 9. R5: git grep 'type InstallStep interface' -- charly/ → EMPTY; alias present at install_plan.go:154; no dual-mode/transitional path.
  • [PASS] 10. R6/R8/R9: R6/R8 N/A (no destructive git action; behavior-neutral relocation — no generation/label change). R9: binary rebuilt via task build:charly (charly version fresh 2026.189.1708), no new OS deps.
  • [PASS] 11. R10: disposable beds only; each bed's update step is a fresh charly update; zero warnings; coverage = go build structural-satisfaction proof + golden IR tests + both beds walking the InstallStep dispatch.
  • [PASS] 12. RDD/ADE/SDD: RDD composition proven on the beds; ADE N/A (no candy add/change); SDD N/A (InstallStep is the polymorphic IR interface, not a CUE wire struct; no .cue/*_gen.go touched — no gen drift).
  • [PASS] 13. Concurrency + anti-cheat: both beds ran CONCURRENTLY at max parallelism (overlapping 19:13:35→19:15:05 / 19:13:36→19:14:58); both PASS under load; no idle/serial excuse, no flake dismissal.
  • [PASS] 14. Hard cutover: ONE author commit (79d1926); no Phase-2/TODO. (Validator added only the merge-time version-stamp commit.)
  • [PASS] 15. Kernel/plugin boundary law: moving the InstallStep IR interface into sdk/spec is exactly the (E) generic-envelope rule — the InstallPlan IR + its polymorphic element belong in the shared spec so out-of-tree plugins import it without charly core. STRENGTHENS the seam; no concrete-kind leak.
  • [PASS] 16. Disposable-only autonomy: all destroy/rebuild on disposable: true beds; cleanup replayed reverse ops (markers gone, zero side-effect).
  • [PASS] 17. Clean architecture + Go gates: gofmt -l . empty · go build ./... clean (proves the 13 structs satisfy the moved interface) · go vet ./... clean · go test ./... green · golangci-lint run ./... = 0 issues.
  • [PASS] 18. CHANGELOG: staged (finalized to 2026.189.1718.md at merge).

Evidence:

  • sdk gitlink 07db71b == sdk main HEAD == v0.2026189.1703 (annotated tag → 07db71b); go.mod require v0.2026189.1703.
  • check-builder-local 2026.189.1713: 4 steps (deploy-add/check-live/update/cleanup) all ok:true; builder-artifact-present PASS.
  • check-local 2026.189.1713: 4 steps all ok:true; check-local-marker + status-shows-local + examplestep-deploy-marker all PASS.

Decision: APPROVED. A behavior-neutral, verbatim relocation of the InstallStep IR interface to sdk/spec (re-exported by alias); the 13 concrete structs satisfy it structurally (compile-proven). Full Go gate suite clean and both disposable beds pass on a fresh rebuild under concurrent load. Finalizing CalVer 2026.189.1718, merging --rebase, tagging v2026.189.1718.

Assisted-by: Claude (fully tested and validated)

@atrawog
atrawog merged commit 76f5eb7 into main Jul 8, 2026
@atrawog
atrawog deleted the feat/sdk-installstep branch July 8, 2026 17:21
atrawog added a commit that referenced this pull request Jul 12, 2026
…checkout (#78)

Make the box-corpus tests hermetic on a box-submodule-less checkout (#32).

`TestCandySourceDirs_OverrideAnchorsRemoteApk` and `TestCueBox_Corpus` iterate the
`box/<distro>` submodule corpus and hard-failed on a checkout where the box submodules
are not inited (an un-inited git submodule leaves an EMPTY gitlink placeholder dir, so
`os.Stat(boxDir)` is a false-positive "present"), turning `go test ./...` red through no
fault of the code under test.

Fix — detect "checked out" by the MANIFEST, not the dir (R3: one shared helper):
`boxSubmoduleCheckedOut(boxDir)` returns whether `box/<distro>/charly.yml` exists.
`TestCandySourceDirs…` skips when the cachyos manifest is absent; `TestCueBox_Corpus`
skips on an empty glob ONLY when no box submodule is checked out — if a box IS present
yet the discovery glob matched nothing, it falls through to the existing `ok==0`
`t.Fatal`, so a genuine glob/path regression still fails loudly. Root-cause hermeticity,
not a blanket skip; a present corpus is never vacuously skipped.

Verification (both directions, re-run independently by the pr-validator on the
update-branch'd tree):
- Box-LESS (box/* not inited): both target tests SKIP, TestCueKinds_Corpus PASS; full
  `go test ./... -count=1` green (ok charly 66.732s) — no other box-dependent hard-failure.
- Box-INITED (all five submodules): both tests RUN and PASS — 134 candy source dirs / APK
  resolved; 79/79 discovered box entities validated; full `go test ./... -count=1` green
  (ok charly 54.804s).
- golangci-lint run 0 issues; gofmt clean; go vet clean.

Assisted-by: Claude (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 12, 2026
…reflect P8b drive-in-candy (#81)

Bumps the plugins submodule gitlink 118a4e74 -> b527c3f (opencharly/marketplace#36 merged, plus the already-merged all-docs #32/#33/#34). The full submodule old..new range is 100% documentation (SKILL.md + CHANGELOG), so the pointer bump is the Documentation-only change class.

Carries the R5 claim-keyed correction of the stale box-build "engine stays host-side behind HostBuild(image/containerfiles)" claim: the box-build podman DRIVE now lives in candy/plugin-build (P8b) and the pure-compute helpers in the sdk libraries (#24). Verified independently: forward bump (old is an ancestor of new), range all-documentation, skills load cleanly (valid frontmatter, no manifest change).

Assisted-by: Claude (documentation reviewed)
github-actions Bot pushed a commit that referenced this pull request Sep 7, 2026
…nv for VM venues (#555)

* checkenv(P4): thread the deployment's mcp_provide through the check env for VM venues

The check env (spec.CheckEnv, spec v0.2026250.709) carries the deployment's
mcp_provide declarations so the out-of-process mcp: check verb can resolve a
VM's MCP server — a VM has no podman-inspectable OCI label. This PR makes the
host-side leg of the round-trip carry them:

- hostCheckCarrier gains mcpProvide + the MCPProvide() accessor (mirroring
  kit.Runner's carrier-surface field pattern; charly core cannot import
  sdk/kit — import purity, #55 coneG).
- snapshotCheckEnv (provider_checkenv.go) emits ce.MCPProvide from the
  carrier on every out-of-process verb dispatch.
- plugin_dispatch_reverse.go's carrier construction seeds it from the wire
  env (the plugin-side live-VM gathers seed it from the resolved vm
  template — candy/plugin-check #32, v0.2026250.724).
- fleet_add_cmd.go's spec/fleet import moves to spec/deploy with
  DeployNode + deploy.ClassifyNodeTarget — the spec v0.2026250.709 compile
  requirement (spec/fleet is gone since the CC-2 IR rename).
- Pins: spec v0.2026250.709 (CheckEnv.MCPProvide/CandyMCPProvide), sdk
  v0.2026250.702 (graph floor — spec/fleet-free), plugin-check
  v0.2026250.724 (#32, the vm-template seeding).

WAVE DEPENDENCY (banked, not yet a PR): spec 709 removes spec/fleet, and the
compiled-in plugin set is still pinned at pre-CC-2 tags that import it — so
this branch builds only after the CC-2 charly re-pin wave (#554 and the
plugin-fleet-rename tags) lands on main. Code + pins are complete and
rebase-ready; the PR opens when the gate releases.

* test(checkenv): TestSnapshotCheckEnvCarriesMCPProvide — the wire env carries the deployment's mcp_provide (P4, B12 coverage)

* docs: re-trigger validator on the final body (B12 test + pasted suite output; tier analysed on a live system)

* docs: re-trigger on the corrected body (actual bed-run output pasted; the re-packaging wave named)
github-actions Bot pushed a commit that referenced this pull request Sep 10, 2026
… seam (#579)

The namespace-qualified (git-linked) entity reference seam (the RCA'd
divergence between the load-time validator and the runtime resolver):

- sdk v0.2026251.531 → v0.2026253.1714 (ResolveEntityRef #246 + the
  namespace-aware runtime resolution #247)
- spec v0.2026251.1735 → v0.2026253.1700 (the deploy from: regex allows the
  ns.entity form, #127)
- plugin-vm v0.2026253.830 → v0.2026253.1802 (the namespace-qualified vm
  entity resolution #31 + the clone-drive leaf #32 + the entity-keyed leaf
  paths #33)

Effect: EVERYTHING in charly is referenceable — locally AND via git-linked
imports (ns.entity) — validated once, resolved everywhere. The X3 spike
(from: omarchy.check-charly-omarchy-vm:golden) proves it end to end.
aitrawog added a commit that referenced this pull request Sep 28, 2026
…d bound too)

The pinned v2026.271.0852 carries only the #31 gate-notice exclusion; v2026.271.0909
also carries #32 (the assembler BOUNDS the comment thread). Advancing the weld so
the engine has BOTH INCONCLUSIVE-class fixes.

Refs #712.
github-actions Bot pushed a commit that referenced this pull request Sep 28, 2026
…hread bound) (#726)

main welds v2026.271.0852 (the #31 gate-notice exclusion). v2026.271.0909 also carries
#32 — the assembler BOUNDS the comment thread (the measured ~80% amplifier of the
INCONCLUSIVE collapse: the same review over a trimmed thread returns a clean verdict).
Advance the weld so the engine has BOTH fixes.

Refs #712.
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