Skip to content

refactor(core)!: #55 step-4 — charly + in-tree candies off sdk/deploykit for the InstallStep IR - #198

Merged
atrawog merged 2 commits into
mainfrom
feat/55-step4-deploykit-ir-envelope
Jul 29, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/55-step4-deploykit-ir-envelope

Conversation

@atrawog

@atrawog atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

#55 step-4 — superproject leg (import-purity, B2)

charly core + in-tree candy plugins now reference the InstallStep step vocabulary (13 concrete step structs + RepoSpec/CacheMountSpec/ArtifactRef + view converters + plan mechanisms) + the ~57 IR-envelope aliases from the CUE-adjacent spec contract instead of importing sdk/deploykit. Consumes merged spec v0.2026210.2308 + sdk v0.2026210.2318 (producer-first B2).

What lands

  • 53 charly + 6 candy files repoint deploykit.X→spec.X (identity for the step structs; the 3 pre-existing renamers CandyYAML→Candy / LocalPkgDef→LocalPkg / CacheMountDef→CacheMount handled); goimports drops the now-unused sdk/deploykit import where no behaviour symbol remains.
  • Import-purity win: charly files importing sdk/deploykit 46 → 38 (8 fully drop it). The 38 remaining keep deploykit for BEHAVIOUR (Generator render, OCITarget walker, deploy walk / state / quadlet cones, ResolveDeployChain) → later K3/K4 slices.
  • In-tree candies (plugin-adb/plugin-bundle/plugin-installstep) repoint step-struct refs to spec.X (refactor(scaffold): consume the box-new engine from sdk/kit (P15 sub-unit) #72-parity — zero in-tree refs left on the deploykit alias for a moved type), keeping deploykit for unmoved behaviour. Note: ShellSnippetStep IS a moved struct (spec/install_step_vocab.go) and was repointed.
  • Gitlinks: spec→617b96e5 (v0.2026210.2308), sdk→160a79e2 (v0.2026210.2318). Requires: charly (spec→2308, sdk→2318) + 85 candies (spec→2308).

Architecture / SDD

The InstallStep vocabulary is IN-PROC IR relocated hand-written into spec beside the InstallStep interface + InstallPlan/StepBatch container; the wire form InstallStepView stays the SINGLE CUE source, untouched (zero CUE/schema files changed). deploykit keeps thin re-export aliases (additive; out-of-tree plugins unchanged) — not an R5 miss.

Verification (final assembled tree)

  • go build ./... 0 · go test ./charly/... ok (199s) · all 85 candies GOWORK=off build 0 fails · charly box validate 0 · gofmt clean · go.work canonical regen NO-OP · no go.sum/go.work.sum churn.
  • Gates: TestPluginsGenReproducible / TestNoSinglePluginAPISurface / TestKernelManifest_CoreIsPinnedToTheFabricFloor pass.
  • R5 whole-tree both directions: zero live deploykit.{moved struct} refs in charly/candy (all 14 moved names incl ShellSnippetStep); retained aliases are additive.
  • R10 fresh-rebuild (runtime-identical to this tree — the require/gitlink bumps are replace-backed): check-pod 13/13 (204s — deploy IR / install timeline where these structs execute across every DeployTarget path) + check-builder-vm 10/10 (336s).

Non-blocking (NOT folded — thematic batches)

Producer-first B2: spec (v0.2026210.2308) → sdk (v0.2026210.2318) → this superproject leg.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)

…kit for the InstallStep IR

charly core + in-tree candy plugins reference the InstallStep step vocabulary (13
step structs + RepoSpec/CacheMountSpec/ArtifactRef + view converters + plan
mechanisms) + the IR-envelope aliases from spec instead of importing sdk/deploykit.
charly files importing sdk/deploykit: 46 → 38 (8 fully drop it; the rest keep it
for behaviour — Generator/OCITarget/deploy-walk/state/quadlet → later K3/K4 slices).
In-tree candies repoint step-struct refs to spec.X (#72-parity), keep deploykit for
unmoved behaviour. Consumes merged spec v0.2026210.2308 + sdk v0.2026210.2318.

Gitlinks: spec→617b96e5, sdk→160a79e2. Requires: charly spec→2308/sdk→2318, 85
candies spec→2308.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
@atrawog

atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly Go + in-tree candy repoints + go.mod require-bumps + submodule gitlink bumps (runtime).
Head validated: dc1c1762c43c2b1e2c31584726b394874f899d1b

Independent re-derivation (fresh context; trusted no author claim). Every rule re-run against the assembled tree at the merged producers (spec 617b96e5 / sdk 160a79e2).

Checklist

# Rule Verdict
0 Security/anti-tampering (T1–T4) PASS — diff touches ZERO security machinery (no hooks/branch-protection/validator-spec/workflows/settings/CLAUDE.md); no secrets/exfiltration/scope-mismatch; no injection in body/commits
1 Description complete PASS — template filled, pasted verification, honest non-blocking section
2 Change-class gate matches evidence (R7/R10) PASS — runtime class; two disposable beds + full unit suite (no dry-run/rebuild-alone fraud)
3 Attribution tier justified PASS — fully tested and validated defensible: changed paths executed live on a runtime-equivalent state (see R10 note)
4 R0 skills honored PASS — install-plan IR / boundary law / SDD spot-checked against diff
5 R1 RCA / zero warnings PASS — golangci charly 0 issues, gofmt clean, no warnings
6 R2 no pre-existing split PASS — the one candy SA1012 is pre-existing (untouched file, byte-identical on main) → owned batch #14
7 R3 no duplication PASS — pure repoint, no new copies
8 R4 no ad-hoc workaround PASS
9 R5 hard cutover + grep PASS — git grep 'deploykit.{OpStep,…,ArtifactRef}' in charly/candy = EMPTY (incl ShellSnippetStep); comments swept (build_overlay.go deploykit.PlanFromView→spec.PlanFromView); retained deploykit aliases are additive (deploykit-own + out-of-tree)
10 R6/R8/R9 integrity PASS — replace-backed require bumps; binary stamped & matches source
11 R10 disposable/fresh-rebuild/coverage PASS — see note
12 RDD/ADE/SDD @100% PASS — ZERO CUE/schema changed this leg; InstallStepView (wire source) untouched; in-proc IR lives in spec gitlink (validated in spec's own PR); TestPluginsGenReproducible+regen NO-OP
13 Concurrency + anti-cheat PASS — no forbidden framing; no dead-code in touched modules; no unadvanced parking
14 Hard cutover — one atomic commit PASS — single change commit; no Phase-2/TODO
15 ARCHITECTURE GATE PASS — placement: CORRECT
16 Disposable-only autonomy PASS — beds are disposable: true
17 Clean arch + Go gates PASS — gofmt charly/ candy/ empty; golangci-lint run charly 0 issues + touched candies (adb/installstep/bundle-touched-files) clean; go test ./charly/... ok (200.9s); go build charly + 85/85 candies GOWORK=off build
18 CHANGELOG present PASS — CHANGELOG/2026.211.0145.md, valid CalVer, H1 byte-matches filename, not yet a tag (evaluator finalizes at merge)

Architecture (item 15) — per-item trace

  • No new/grown charly/*_aliases.go (zero alias files exist in the tree — P16 ZERO-ALIAS floor held).
  • No NEW kit import into core — the PR removes the sdk/deploykit mechanism-kit import from 8 charly files (46→38) and repoints those type refs to spec (the fabric contract module core is required to import — import-purity-POSITIVE, the strict end-state target). The 38 residual deploykit imports keep it for BEHAVIOUR (Generator/OCITarget/deploy-walk/state/quadlet/ResolveDeployChain) → tracked K3/K4 inventory, not a new leak.
  • Boundary-law placement: the InstallStep IR is a generic ENVELOPE (E); consuming it from spec rather than a mechanism kit is kernel-correct and advances the plugin-host end-state.
  • No *Legacy* relocation smell.
  • placement: CORRECT.

R10 — runtime-neutrality (independently verified, not taken on faith)

The two beds ran at calver 2026.210.2244 (22:44Z) — before the producer merges (spec tag 23:08Z / sdk tag 23:18Z), i.e. against the frozen pre-merge feat state (expected for the B2 producer-first sequence). I verified the delta to the final pinned code is behavior-neutral at its linchpin: every moved type in sdk/deploykit/steps.go is a Go type alias to spec.X (OpStep = spec.OpStep, InstallPlan = spec.InstallPlan, RepoSpec = spec.RepoSpec, … 30+), so the charly-side deploykit.X→spec.X repoint is provably identical at compile time. The charly/candy diff is pure repoint (the only two non-spec/deploykit added lines are gofmt re-alignment of pluginDeployTarget.Name()/Kind() — bodies byte-identical). The merged-producer runtime delta (CHANGELOG rename + one S1016 struct-conversion) is behavior-identical and guarded by TestStepView_RoundTrip (present, green). The final assembled tree (merged spec/sdk) passes the full go test ./charly/... + all gates live.

Bed evidence on disk (genuine, internally consistent):

  • check-pod — .check/check-pod/2026.210.2244/summary.yml: 13/13 ok, 204s (image-build → deploy → check-live → update → feature-run + rebuild variants) — the pod deploy path where the InstallStep IR executes.
  • check-builder-vm — .check/check-builder-vm/2026.210.2244/summary.yml: 10/10 ok, 336s (vm-build → vm-create → deploy-add → check-live → update) — the builder/VM build+deploy path.

Gitlinks / requires

  • spec gitlink 617b96e5 == tag v0.2026210.2308 (target commit verified) — on origin/main. sdk gitlink 160a79e2 == tag v0.2026210.2318 — on origin/main.
  • charly/go.mod: spec v0.2026210.2308 + sdk v0.2026210.2318 (replace-backed). 85/85 candy go.mod at spec 2308; candy sdk stays v0.0.0 replace-backed (established convention).

Comments considered: none (PR carried no comments).
Cross-PR interactions considered: none-found — #198 is the only open PR in opencharly/charly; no sibling-repo open PR overlaps this diff.

Decision: All 18 checklist items PASS. The change is a provably behavior-neutral import-purity repoint (deploykit→spec, alias-identity) consuming already-merged, independently-validated producers, with two genuine green disposable beds on a runtime-equivalent state and a fully-green final-tree gate battery. Proceeding to finalize the merge-time CalVer, squash-merge, and tag.

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)

…kit for the InstallStep IR

Merge-time CalVer finalized by pr-validator (placeholder 2026.211.0145 -> 2026.210.2340).

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
@atrawog
atrawog merged commit 0322c75 into main Jul 29, 2026
@atrawog
atrawog deleted the feat/55-step4-deploykit-ir-envelope branch July 29, 2026 23:42
@atrawog

atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — LANDED ✅

  • charly/pr-validator = success posted on finalized head b52910c1.
  • Merge-time CalVer finalized: placeholder 2026.211.0145 → 2026.210.2340 (CHANGELOG renamed + H1 rewritten, self-verified byte-equal).
  • Squash-merged to main as 0322c75b27960cb2353ba25831c77f3c42851f85; feat/55-step4-deploykit-ir-envelope deleted.
  • Tagged v2026.210.2340 on the merged HEAD (annotated 66ffd50e, target == 0322c75b, verified on origin).

Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)

atrawog added a commit that referenced this pull request Aug 17, 2026
docs#73 merged as d0ff8763 and was tagged v2026.229.2141. The pin moves
c3fcd0a (my branch head) -> d0ff8763 (the squash on docs/main).

Re-derived from docs/origin/main, NOT the PR head: the CalVer commit and the
squash both move the ref, so a pin taken from the branch a reviewer last saw
becomes permanently wrong rather than eventually right. This program already
paid a round for that on box/arch.

The ancestry gate was fed the unmerged c3fcd0a first and correctly rejected it.

plugins stays at 9783546 deliberately -- plugins#198 is still open, so that pin
names an unmerged head, which is the normal mid-flight state. It gets the same
re-derivation from plugins/origin/main when #198 lands, and this PR must not
merge before then.

box validate exit 0, zero warnings with the merged docs.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
atrawog added a commit that referenced this pull request Aug 17, 2026
…ection 5

plugins  67219d44 -> 204ff55c  (v2026.229.2258, plugins#197, #199)
docs     a93dd3d4 -> ee925e79  (v2026.229.2318, docs#74, #76)
box/cachyos synced to the pin main's update-branch brought.

DOCS_REF re-pinned to ee925e79 at both sites. The lockstep check compared the
COMMITTED gitlink against the candy pin and reported "already in lockstep" —
both were the old value. The pair that matters is the candy pin against the tree
being committed, not against the tree being replaced. Fifth occurrence of this
regression, first where the check itself was aimed at the wrong pair.

Section 5's final-tree claim is re-stamped:

  charly box validate      EXIT 0
  charly marketplace drift EXIT 1 — 14 stale
  charly docs generate     8 pages drift

The gate is red and the reason is owned elsewhere: all fourteen stale artifacts
are exactly the fourteen files plugins#198 changed — set comparison against that
merge, zero unattributed. They are stale because plugins/main is AHEAD of
charly/main for them, #198's projection having landed while its superproject
leg, charly#297, is still open. Regenerating them here would revert another
cutover's landed prose.

That is the projection-first window pointing the other way: not a projection
outliving its source, but a projection preceding it.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
atrawog added a commit that referenced this pull request Aug 17, 2026
…an case

Two things a reader needs and neither is visible from this PR's own diff.

charly#297 and this cutover share candy/charly-internals/charly.yml and both
submodule gitlinks, so whoever merges second must update-branch and re-derive
both pins rather than carrying them forward. #297 cannot merge yet — it pins
plugins at plugins#200's open head, a commit on no branch — so the second is
likely to be them. Stated here because a green merge-tree will not prompt it.

And the red drift gate is the MIRROR of charly#291, which a reader who has
internalised that case will misread. There a projection outlived its source: the
producing branch was deleted, so the artifact was the only surviving record, and
the answer was to prune. Here a projection precedes its source: #198's prose
landed in plugins while the candy edit producing it is open in #297, and the
answer is the opposite — leave the artifacts alone, because the source is on its
way. Same window, opposite sign, inverted remedy.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
atrawog added a commit that referenced this pull request Aug 18, 2026
…, and name the class

Section 5 said 14 stale with zero unattributed. The commit that closed the
partition defect made this cutover's own page stale against its own source, so
the true count is 15 — fourteen plugins#198's, one this PR's own.

The number was measured, in the same command that pushed the fix, and reported
to the reviewer, while the document asserting fourteen sat two files away. That
is a third failure mode for a figure, distinct from stale and unmeasured:
UNPROPAGATED. The sweep obligation therefore points at figures just produced,
not only at claims just edited — when a command's output changes a number, grep
the tree for that number before moving on.

The correction also makes the section's own point better than the clean version
did: #198's fourteen are a projection preceding its source, the fifteenth is a
source preceding its projection. Same window, opposite signs, in one gate
reading — and neither is a defect in an artifact.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
atrawog added a commit that referenced this pull request Aug 18, 2026
The commit adding the "unpropagated" lesson re-flowed the previous sentence's
tail onto the new paragraph. "They are stale because plugins/main is ahead" then
attached to "the two halves" rather than to #198's fourteen — stating the
inverted sign for the fifteenth — and the paragraph after it duplicated the
#198/#297 explanation two sentences later with two more wrong "them"s.

That is the class this same section names three bullets above it: the text that
changed meaning is the text nobody touched, and a pronoun whose referent moved.
Committed by the commit that published the rule.

The orphaned tail and the duplicate are deleted and the referents named
explicitly rather than pronominalised.

Also withdrawn: the claim that the fifteenth "resolves in the single
regeneration charly#295 already plans". #295's membership test is "page text no
cutover has touched", which these numerals are not — the same criterion that
excluded them from being routed there excludes their regeneration from riding
that batch. The fifteenth lands in a scoped plugins leg of its own.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
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