Repository navigation
refactor(core)!: #55 step-4 — charly + in-tree candies off sdk/deploykit for the InstallStep IR - #198
Conversation
…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)
pr-validator — APPROVED ✅Change class: charly Go + in-tree candy repoints + go.mod require-bumps + submodule gitlink bumps (runtime). Independent re-derivation (fresh context; trusted no author claim). Every rule re-run against the assembled tree at the merged producers (spec Checklist
Architecture (item 15) — per-item trace
R10 — runtime-neutrality (independently verified, not taken on faith)The two beds ran at calver Bed evidence on disk (genuine, internally consistent):
Gitlinks / requires
Comments considered: none (PR carried no comments). 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)
pr-validator — LANDED ✅
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
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)
…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)
…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)
…, 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)
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)
#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
speccontract instead of importingsdk/deploykit. Consumes merged spec v0.2026210.2308 + sdk v0.2026210.2318 (producer-first B2).What lands
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-unusedsdk/deploykitimport where no behaviour symbol remains.sdk/deploykit46 → 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.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.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).
deploykitkeeps 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 validate0 · gofmt clean · go.work canonical regen NO-OP · no go.sum/go.work.sum churn.deploykit.{moved struct}refs in charly/candy (all 14 moved names incl ShellSnippetStep); retained aliases are additive.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)