Skip to content

feat(spec): the system-package teardown delta — #Format.present_template + SystemPackagesStep.Installed - #191

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/pkg-teardown-ledger
Oct 3, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/pkg-teardown-ledger

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Summary

charly deploy del removes the packages a deploy declared, not the ones it installed, so a teardown asks the package manager to remove packages the venue's base image already provides. This is the contract half of the fix; the tracked issue is opencharly/charly#771, and this is part 1 of 3 (part 2 is the plugin-installstep delta that computes it at execution time; part 3 is the charly leg that supplies the per-format query and runs the bed).

Root cause, measured (full RCA table with file:line on the issue): (*SystemPackagesStep).Reverse() recorded Targets: s.Packages — the DECLARED list — while the install runs with --needed, so a base-provided package is SKIPPED at install and still named at teardown. pac then refuses the whole transaction, and kit.RunReverseOps logs and continues, so the packages charly did install are left behind:

:: removing curl breaks dependency 'curl' required by pacman / gettext / libelf / tpm2-tss
:: removing iptables breaks dependency 'libxtables.so=12-64' required by iproute2
error: failed to prepare transaction (could not satisfy dependencies)
reverse: package-remove failed: exit status 1

apt/dnf are worse than pac here — apt-get purge / dnf remove of a base package succeeds and cascade-removes its dependents.

What lands

  • schema/distro.cue — #Format.present_template?: string (plus the regenerated Go): a command rendered for the format whose stdout lists, one per line, the packages from the rendered set that the venue ALREADY has (already installed or already satisfied). The per-format query belongs in config, not Go: deploykit.RenderHostPackageCommand's documented contract forbids hardcoded dnf/apt/pacman dispatch.
  • spec/install_step_vocab.go — SystemPackagesStep.Installed []string, execution-time state set by the step executor, and Reverse() prefers it:
    • nil = not determined → fall back to Packages (prior behaviour, unchanged for every existing consumer);
    • non-nil and EMPTY = authoritative → no package-remove op at all (every declared package was already present);
    • non-empty → exactly that delta is recorded.
  • spec/install_step_vocab_test.go — TestSystemPackagesStepReverseInstalledDelta, covering all four cases (nil / non-empty / empty-non-nil / non-install phase).

Deliberately NOT on the wire: Installed is not added to InstallStepView/StepFromView or any other serialized shape. It is execution-time state the executor sets on the step immediately before calling Reverse(), not plan data, so it must not travel on the wire.

No #SchemaVersion bump, deliberately: this is a purely additive optional def, the shape schema/llm.cue:17 documents as needing no bump ("the same shape as the iso VmSource arm, #DiskLayout, and the desktop kinds (spec PR #74)").

How tested

Everything below was run by me on this head, 14f1b2a, in the session worktree .worktrees/readme-truth/spec-ledger (branch feat/pkg-teardown-ledger, off origin/main, 0 commits behind).

The repo's CI gates were discovered from the current workflow file (.github/workflows/ci.yml), not assumed, and each was run locally:

$ gofmt -l schema spec
(empty — no drift)

$ GOWORK=off go build ./...
build_exit=0                    # no output

$ GOWORK=off go vet ./...
vet_exit=0                      # no output

$ GOWORK=off go test ./spec/ -run TestSystemPackagesStepReverseInstalledDelta -v
=== RUN   TestSystemPackagesStepReverseInstalledDelta
=== RUN   TestSystemPackagesStepReverseInstalledDelta/nil_Installed_falls_back_to_Packages
=== RUN   TestSystemPackagesStepReverseInstalledDelta/non-empty_Installed_wins_over_Packages
=== RUN   TestSystemPackagesStepReverseInstalledDelta/empty_non-nil_Installed_records_nothing
=== RUN   TestSystemPackagesStepReverseInstalledDelta/non-install_phase_is_unaffected_by_Installed
--- PASS: TestSystemPackagesStepReverseInstalledDelta (0.00s)
    --- PASS: TestSystemPackagesStepReverseInstalledDelta/nil_Installed_falls_back_to_Packages (0.00s)
    --- PASS: TestSystemPackagesStepReverseInstalledDelta/non-empty_Installed_wins_over_Packages (0.00s)
    --- PASS: TestSystemPackagesStepReverseInstalledDelta/empty_non-nil_Installed_records_nothing (0.00s)
    --- PASS: TestSystemPackagesStepReverseInstalledDelta/non-install_phase_is_unaffected_by_Installed (0.00s)
PASS
ok  	github.com/opencharly/spec/spec	0.009s

$ GOWORK=off go test ./...
ok  	github.com/opencharly/spec/calver	(cached)
ok  	github.com/opencharly/spec/checkstep	(cached)
ok  	github.com/opencharly/spec/climodel	(cached)
ok  	github.com/opencharly/spec/container	(cached)
ok  	github.com/opencharly/spec/deploy	(cached)
ok  	github.com/opencharly/spec/exec	(cached)
ok  	github.com/opencharly/spec/exitcode	(cached)
ok  	github.com/opencharly/spec/hostenv	(cached)
ok  	github.com/opencharly/spec/internal/wiregen	(cached)
ok  	github.com/opencharly/spec/lock	(cached)
ok  	github.com/opencharly/spec/matchers	(cached)
ok  	github.com/opencharly/spec/merge	(cached)
ok  	github.com/opencharly/spec/ops	(cached)
ok  	github.com/opencharly/spec/phase	(cached)
ok  	github.com/opencharly/spec/poll	(cached)
ok  	github.com/opencharly/spec/proc	(cached)
ok  	github.com/opencharly/spec/refs	(cached)
ok  	github.com/opencharly/spec/schema	(cached)
ok  	github.com/opencharly/spec/spec	(cached)
ok  	github.com/opencharly/spec/transport	(cached)
test_exit=0                     # no FAIL, no panic

# the CI gofmt, which lints the WHOLE repo (the command ci.yml runs)
$ out=$(gofmt -l .); if [ -n "$out" ]; then echo "DRIFT:"; echo "$out"; else echo "(empty — no drift)"; fi
(empty — no drift)

# the EXACT linter binary CI pins by module version, installed and run the same way
$ go install github.com/golangci/golangci-lint/v2/cmd/[email protected]
install_exit=0
$ "$(go env GOPATH)/bin/golangci-lint" run ./...
lint_exit=0
0 issues.

The schema→generated-code pipeline gate (this repo's own recipe: edit CUE, regenerate, a clean regen must be a no-op):

$ charly task cue-gen
task wire-gen: 1 step(s), 0 failed
  [pass] run — render the proto IDL from CUE and compile the Go stubs
      exit=0
task cue-gen: 2 step(s), 0 failed
  [pass] run — gengotypes + schemagen the generated Go
      exit=0
  [pass] check — regen is reproducible — TestGenReproducible passes on the committed tree
      exit=0

$ git status --short
(empty — the regenerated tree is byte-identical to the committed one)

The regenerated diff is exactly the one new field, correctly spaced, with its comment carried through — the generated Go is not hand-edited:

@@ -5435,11 +5435,12 @@ type Format struct {
 	UninstallTemplate string `yaml:"uninstall_template,omitempty" json:"uninstall_template,omitempty"`

-	// installed_template is a command rendered for this format whose stdout lists
-	// the names of currently-installed packages, one per line. It is used to
-	// compute a deploy's teardown delta, so a declared package the venue already
-	// provides is never recorded for removal.
-	InstalledTemplate string `yaml:"installed_template,omitempty" json:"installed_template,omitempty"`
+	// present_template is a command rendered for this format whose stdout lists,
+	// one per line, the packages from the rendered set that the venue ALREADY has
+	// (already installed or already satisfied). The step executor subtracts it from
+	// the declared Packages to get the teardown delta, so a package the venue
+	// already provided is never recorded for removal.
+	PresentTemplate string `yaml:"present_template,omitempty" json:"present_template,omitempty"`
 
 	Phases *PhaseSet `yaml:"phase,omitempty" json:"phase,omitempty"`

Diff, from the merge-base with current origin/main (classt from the diff, never from intent):

$ git diff --stat "$(git merge-base origin/main HEAD)..HEAD"
 schema/distro.cue               |  6 ++++
 spec/cue_types_gen.go           |  7 ++++
 spec/install_step_vocab.go      | 33 ++++++++++++-------
 spec/install_step_vocab_test.go | 72 ++++++++++++++++++++++++++++++++++++++++-
 4 files changed, 106 insertions(+), 12 deletions(-)

Scope limit, stated plainly: this leg carries no standalone bed — it is the contract, and the live observation of the delta on the assembled disposable chain lands in the charly consumer leg (part 3 of opencharly/charly#771), whose bed output is pasted there.

Rulebook compliance

  • Rule 1 (all change lands by PR to the owning repo; never edit a submodule's tracked checkout): this PR is the owning repo, from a session worktree off origin/main; the umbrella's tracked checkout is untouched.
  • Rule 5 (pin only merged refs): no pin is written here. The consumer legs pin this repo's tag after it merges — no PR branch is ever pinned.
  • Rule 7 (read the subrepo rulebook): spec/AGENTS.md was read, and its schema-change recipe followed — authored CUE first, regenerate, clean regen is a no-op, no hand-transcribed wire struct.
  • R1 (root-cause every anomaly): the defect was root-caused to the recording site before any remediation; the RCA table with file:line is on bug: deploy del teardown removes the packages a deploy DECLARED, not the ones it INSTALLED (pac refuses the transaction; apt/dnf cascade-remove dependents) charly#771. No "pre-existing / out of scope / follow-up" framing anywhere.
  • R3 (one canonical implementation per behaviour): the delta is computed in exactly ONE place, Reverse(); the venue query lives in per-format config rather than being hardcoded in Go (which RenderHostPackageCommand's contract forbids); PkgName in sdk/buildkit remains the one version-strip implementation, so no second normalizer is introduced.
  • R4 (no workarounds): no allowlist of the pac symptom, no template guard, no sleep, no blind retry.
  • R5 (delete legacy completely): the field name never shipped under its first spelling — the rename happened before the first push, in this same change, and grep -rn 'installed_template\|InstalledTemplate' <worktree> exits 1 with empty output (no survivor).
  • R6 (git safety): no force-push, no hook bypass, no direct push to main; one branch, PR-only.
  • R10 (fresh proof from the final committed tree): every gate above was run on the committed head 14f1b2a, not on an edited state, and the regeneration gate proves the committed tree reproduces itself.
  • Check-coverage (part of R10): the change ships the test that proves it — TestSystemPackagesStepReverseInstalledDelta fails without the Reverse() change and passes with it, covering both directions.
  • Rule 9 (search → file ONE issue → claim → branch): the org was searched for an existing issue/PR (none), the issue was filed as bug: deploy del teardown removes the packages a deploy DECLARED, not the ones it INSTALLED (pac refuses the transaction; apt/dnf cascade-remove dependents) charly#771 with the full RCA and evidence, and claimed before branching. This PR references it. The issue is not closed by this PR — it is resolved when the consumer legs land, and it will be closed then.

Change classification

  • Change class: additive CUE schema plus its regenerated Go types, plus one behaviour change in the InstallPlan IR's Reverse() covered by a new test. Not documentation-only; not a schema-version cutover (no #SchemaVersion bump — additive optional def, per schema/llm.cue:17 and spec PR feat(desktop): the theme, session, displaymanager and desktopentry kinds #74).
  • Verification gate: gofmt -l ., go build ./..., go vet ./..., go test ./..., and golangci-lint v2.13.2 (the exact binary ci.yml pins by module version) — all zero on the final head — plus charly task cue-gen's reproducibility check and a byte-identical clean regen.
  • Attribution tier: fully tested and validated — the changed behaviour is exercised in both directions by the four new subtests on this head, and the repo's full authoritative gate passes on the same head. The scope limit is stated above rather than glossed: this leg alone carries no bed, and the live end-to-end observation is pasted in the charly consumer leg.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (fully tested and validated)

A per-format command whose stdout lists currently-installed package names,
one per line. The step executor queries it at execution time to compute a
deploy's teardown delta, so a declared package the venue already provides is
never recorded for removal (opencharly/charly#771).

Regenerated with the repo's documented pipeline (charly task cue-gen):
spec/cue_types_gen.go gains only the InstalledTemplate field.
Add an execution-time Installed field: the subset of Packages a deploy
ACTUALLY installed, set by the step executor after it queries the venue via
the format's installed_template. Reverse() prefers it over Packages.

nil = not determined -> Packages is the removal target (prior behaviour).
non-nil EMPTY = authoritative -> every declared package was already present,
so NO package-remove op is recorded. That nil-vs-empty distinction is what
stops a venue-provided package (curl, iptables) from being torn down.

Not serialized on the wire: it is execution-time state the executor sets
locally before calling Reverse(), never plan data.

Covers all four cases with TestSystemPackagesStepReverseInstalledDelta
(opencharly/charly#771).
Format.InstalledTemplate and SystemPackagesStep.Installed are disjoint sets
that shared a root word: Installed on the step is the packages THIS deploy
will install (the delta), while the format field is the query for what is on
the venue BEFORE the deploy. The near-identical names invite setting
st.Installed to the template's output — the already-present set — which would
record for removal exactly the packages that must not be removed.

Rename the FORMAT field to present_template / PresentTemplate so the direction
is unambiguous; the step field keeps Installed (issue #771's wording).

Regenerated with charly task cue-gen (reproducibility check passes).
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 14f1b2a4cf11d1f4113029b88c9afa68f732c681 (branch: feat/pkg-teardown-ledger)

Security screen: PASS — T1/T2 clean (no embedded directives; PR does not touch the validator spec, rulebook, or any gate); T3 no scope mismatch (diff adds exactly the described #Format.present_template, SystemPackagesStep.Installed, the Reverse() delta, and its test), no secrets/egress, no weakened guardrails, no supply-chain change; T4 N/A.

Checklist: All applicable rules PASS or NA.

  • A1 body accounts for all 4 files; git diff --stat (+106/−12) and per-file hunks cross-check exactly; ends with Assisted-by: last. A2/A3: contract/library class — changed branch (s.Installed != nil) executed fresh via the named test; no spec-repo bed exists, and the live observation is routed to the NAMED part 3 of bug: deploy del teardown removes the packages a deploy DECLARED, not the ones it INSTALLED (pac refuses the transaction; apt/dnf cascade-remove dependents) charly#771 (legitimate named batch, not a vague deferral). B4–B10, B13: CUE-first satisfied (distro.cue + regenerated cue_types_gen.go co-changed, no hand-edited generated file, no banned @go(-)/exception type); ADE/RDD N/A (no candy); R3 delta in one site; R5 rename has no survivor in the final tree. B12: TestSystemPackagesStepReverseInstalledDelta covers all four cases (nil / non-empty / empty-non-nil / non-install). B16 placement CORRECT (schema def → spec/CUE-first wire shape; IR + Reverse() → spec shared contract; no alias growth, no new core→sdk import). B17 N/A. B18 no diff-visible lint defect; the two-group field alignment is internally consistent with gofmt (tool-limited cross-check). B15: 3 non-changelog commits will squash to one atomic leg — no partial/deferred work pattern; flagged, not blocking.

Comment thread: 0 comments — nothing to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 3, 2026 13:36
@github-actions
github-actions Bot merged commit 96903c2 into main Oct 3, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 3, 2026
aitrawog pushed a commit to opencharly/charly that referenced this pull request Oct 4, 2026
… the teardown delta (charly#771 leg 3)

Leg 3 of #771: the per-format `present_template` queries
(pac/deb/rpm — never apk, see #772) as siblings of `uninstall_template:` in
charly/charly.yml, plus the R10 fixture's declared-minus-installed witness
(`curl`, present on the eval-host-vm guest by cloud-init; `charly` is not).
Each query emits STRIPPED names on stdout and exits 0 by construction.

go.mod pins: spec v0.2026272.1512 -> v0.2026276.1337 (leg 1,
opencharly/spec#191), plugin-installstep v0.2026272.244 -> v0.2026276.1353
(leg 2, opencharly/plugin-installstep#8); `go mod tidy` also advanced the
indirect sdk pin to v0.2026276.48, forced by spec 1337.

BLOCKED — this tree does not build or validate standalone, on two
dependencies the brief did not anticipate (root-caused, see hand-back report):
  1. spec >= v0.2026273.203 (which 1337 includes) carries the breaking typed
     ExtraCandyRef change; charly cannot compile until the adoption in the
     open PR #762 (head 9588d18) lands.
  2. plugin-distro's self-contained schema/distro.cue `#DistroInput`/`#DsFormat`
     does not declare `present_template`; no released plugin-distro version
     (newest v0.2026272.29) accepts it, so `charly box validate` rejects the
     field. A plugin-distro schema release is required.

(cherry picked from commit d71569c45f30861d749296c5aceae88c4a0186f6)
github-actions Bot pushed a commit to opencharly/charly that referenced this pull request Oct 5, 2026
…eploy-del twin and the #771 teardown delta (#762)

* fix(beds): nest intended in-guest members inside the vm kind body (#748)

Members authored as a sibling of the vm: kind key are deploy-level
(alongside) per sdk/loaderkit BuildResourceMemberChildren, so
BringUpMembers deployed them on the host running charly instead of
inside the disposable guest. Move each member whose stated intent is
"inside the guest" into the kind body (in-substrate). Indentation only.

Refs #748

Assisted-by: Claude Code Anthropic Claude Opus 5.5 (syntax check only)

* fix(charly): gate the node's own kind value via EntityBodyJSON (#748)

The closed #<Kind>Value gate (validateKindValueCUE) read the RAW authored body —
the one body consumer that does not strip the parser-classified member children.
Its siblings (discValue / EntityBodyJSON) both delete the pn.Children names, so
the member path and this gate disagreed about the same node: an in-body member
key survived into the value the closed CUE schema was unified against, and the
rejection was the symptom reported as #748.

Read the stripped body here too. R3 single-codepath form: the gate now consumes
exactly what its siblings consume, with no new mechanism.

* fix(deps)!: adopt the typed ExtraCandyRef across charly core (spec#188 consumer)

spec#188 made an ExtraCandyRef carry its SCOPE, so every ExtraCandyRefs field is
[]spec.ExtraCandyRef{Ref, Scope}, not []string. The sdk main charly now pins
consumed it (sdk#325), so charly's OWN core has to follow — the pin bump alone
does NOT build (measured: 5 build errors in github.com/opencharly/charly/charly,
plus 3 test-only sites that only the test compile reaches, since `go build` does
not compile test files).

The PIN and the ADOPTION are one commit, because neither half stands alone:

- github.com/opencharly/sdk  v0.2026272.1813 -> v0.2026276.48  (the leg-1 tag)
- github.com/opencharly/spec v0.2026272.1512 -> v0.2026273.203 (forced by that
  sdk's own go.mod:16, which requires the spec release carrying the type change)
- the three compiled-in plugin candies, which charly resolves as module pins from
  the proxy, so the same type change lands in them too. Measured: with ONLY the
  sdk+spec pins moved, the build fails in 7 sites across all three —
    [email protected]  plugin.go:320, :397
    [email protected]       resolve_project_word.go:174
    [email protected]       compile.go:109, :231; dispatch.go:139, :159
  so they move in the SAME commit:
    plugin-build/candy/plugin-build             v0.2026272.2040 -> v0.2026276.438
    plugin-fleet/candy/plugin-fleet             v0.2026272.2039 -> v0.2026276.526
    plugin-installstep/candy/plugin-installstep v0.2026272.244  -> v0.2026276.440

Every ExtraCandyRefs site now states WHERE its refs belong, through the spec's own
constructors:

- collectOverlayCandies tags each add_candy ref with the overlay's BOX
  (spec.ScopedExtraCandyRefs(spec.BoxScope(box))), and takes the box as a parameter.
- deployNodePluginContext tags a deploy node's authored add_candy refs with the
  DEPLOY's box — the deploy IS the box (update_deploy_dispatch.go's
  "deployName := c.Box") — and gives an injected PROVIDER ref the EMPTY scope: a
  capability connect, not a composition, which the arbiter treats as silent.
- hostBuildDeployPluginsConnect converts the wire's authored []string ONCE, at the
  boundary, with the same box scope.
- connectPluginByWordRef's capability-connect scan: empty scope, same reason.

None of them is a CONSTANT. A constant label is exactly the #739 defect (~724 false
conflicts across the project); a bare string cannot carry a scope at all, which is
why the field is typed rather than re-derived at the consumer.

The plugin-word collector KEEPS its []string signature: it needs only the ref WORD
for perf-scoping, so it is fed spec.ExtraCandyRefStrings(...) — the projection
spec/resolve_opts.go names for this very consumer.

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

The leg-3 pin bump moved the SHARED sdk/spec pins in `charly/go.mod`
(sdk v0.2026272.1813 -> v0.2026276.48, spec v0.2026272.1512 -> v0.2026273.203),
but the in-repo `tools/*` modules carry their own `go.mod` and were left on the
old pair. `tools/gomod-canonical`'s `TestContractPinsMatchShared` anchors on
core's requires and asserts every lockstep module matches, so the CI `go` job's
"Test tools modules" step failed on the pushed head:

  gomod_canonical_test.go:117: ../../tools/generate-packages/go.mod: requires sdk
  v0.2026272.1813, but the shared sdk pin is v0.2026276.48 - run `charly task mods-tidy`
  (likewise spec, and tools/golden-cloudinit + tools/golden-compile)

Root cause: `tools/*` are separate GOWORK=off modules that are not workspace
members, so `go test ./charly/...` - and a local `go test ./...` inside the
charly module - never reach them. That is the exact detection hole ci.yml's
"Test tools modules" comment records for `main`.

Fixed with the sanctioned task rather than a hand-edit:

  $ ./bin/charly task mods-tidy
  task mods-tidy: 2 step(s), 0 failed
    [pass] run - adopt the shared pins and tidy every lockstep module
    [pass] check - every lockstep module now carries the shared pins

Six files: the three `tools/*/go.mod` requires and their `go.sum` hashes.
`charly/go.mod` is untouched - it is the anchor the task reads.

* fix(charly): the teardown of a nested member keeps its venue (charly#765)

`charly deploy del <root>.<member>` lost the member's venue. The del dispatch
shipped the node but no ancestor context, so runDeployNodeDelDispatch resolved
the target and called Del with nothing to re-derive the parent executor chain
from — the plugin's resolveRootExecutor fell through to
specexec.RootExecutorForDeployNode(node), THE OPERATOR'S HOST for an
in-substrate member with no `host:` field, and replayed the member's reversible
ops (`pacman -R` for a `package:` list) on the workstation while its `add` had
landed correctly in the guest.

This is the del twin of runResolveTargetAdd, and it is deliberately the same
move: reconstruct the ancestor chain host-side with spec.ReconstructParentExec
over the registry-coupled deriveChildExecutorForPath, then hand the resulting
executor to the target as its venue. A live executor still never crosses the
wire — only the root-first ancestor path/node lists do, and this half re-derives
from them.

applyDelParentExec writes t.exec AND t.venueJSON, sharing venueJSONFor with
applyParentExecOverride so the two halves can never disagree about what a venue
IS (that extraction is a pure refactor — the add path's observable behaviour,
including its nil-on-undescribable return, is unchanged). It carries the same
hasLifecycle guard for the same reason: a vm/pod composes its own nested venue
inside PrepareVenue and reports it back on the teardown-executor op.

Del's channel differs from Add's, and that is why this one must WRITE
t.venueJSON rather than return a descriptor: Del builds its request from
spec.DeployTargetDelOpts, which carries no venue, so t.venueJSON is the only
place dispatch can pick one up.

An empty ancestor list (a top-level or synthetic target) leaves the previous
RootExecutorForDeployNode behaviour exactly as it was.

The third variant of the #627/#680 mechanism. A check bed's cleanup step forks a
FRESH `charly deploy del` process, so the in-process venue carry between add and
del never applied there either.

Refs #765

* feat(charly)!: supply the per-format present_template queries + prove the teardown delta (charly#771 leg 3)

Leg 3 of #771: the per-format `present_template` queries
(pac/deb/rpm — never apk, see #772) as siblings of `uninstall_template:` in
charly/charly.yml, plus the R10 fixture's declared-minus-installed witness
(`curl`, present on the eval-host-vm guest by cloud-init; `charly` is not).
Each query emits STRIPPED names on stdout and exits 0 by construction.

go.mod pins: spec v0.2026272.1512 -> v0.2026276.1337 (leg 1,
opencharly/spec#191), plugin-installstep v0.2026272.244 -> v0.2026276.1353
(leg 2, opencharly/plugin-installstep#8); `go mod tidy` also advanced the
indirect sdk pin to v0.2026276.48, forced by spec 1337.

BLOCKED — this tree does not build or validate standalone, on two
dependencies the brief did not anticipate (root-caused, see hand-back report):
  1. spec >= v0.2026273.203 (which 1337 includes) carries the breaking typed
     ExtraCandyRef change; charly cannot compile until the adoption in the
     open PR #762 (head 9588d18) lands.
  2. plugin-distro's self-contained schema/distro.cue `#DistroInput`/`#DsFormat`
     does not declare `present_template`; no released plugin-distro version
     (newest v0.2026272.29) accepts it, so `charly box validate` rejects the
     field. A plugin-distro schema release is required.

(cherry picked from commit d71569c45f30861d749296c5aceae88c4a0186f6)

* chore(charly)!: bump the compiled-in plugin-distro pin to the present_template release (charly#771)

plugin-distro v2026.276.1457 mirrors spec's #Format.present_template, which charly's embedded
defaults already declare. Without it the compiled-in provider rejected EVERY project load:
  #DistroInput.format.pac.present_template: field not allowed
The tools/* lockstep modules move with the shared pins (charly task mods-tidy).

* build(#762): record the checksums for the plugin-distro v0.2026276.1457 bump

The conflict resolution kept this branch's plugin-distro pin (required by
#771's present_template change, which #778 does not carry) while adopting
#778's spec v0.2026276.1636 / sdk v0.2026276.1822. The module checksum was
left behind by that resolution: charly/go.mod required .1457 while
charly/go.sum still held only .29, so the CI build mode (GOWORK=off, ci.yml)
failed with 'missing go.sum entry for module providing package
github.com/opencharly/plugin-distro/candy/plugin-distro'.

charly task mods-tidy does not repair this: it ran green (2/2 steps) with
GOWORK=off in the environment and left charly/go.sum untouched, because it
tidies with the workspace on. The two checksum files were therefore brought
in step with the standard Go toolchain in CI's own mode:
  cd charly && GOWORK=off go mod tidy
  cd charly && GOWORK=off go build ./...   # exit=0
The workspace checksum follows from the same build.

* fix(#762): tidy charly/go.sum — drop the two superseded pin pairs

`go mod tidy` on this branch's tree deletes exactly four lines and nothing
else:

  plugin-command/candy/plugin-command v0.2026272.26 (h1: + /go.mod)
    superseded by v0.2026277.738, which main's #786 pinned and tidied;
    this branch's merge of origin/main unioned the old pair back in.

  plugin-distro/candy/plugin-distro v0.2026272.29 (h1: + /go.mod)
    the version this PR's own plugin-distro bump (to v0.2026276.1457)
    replaced — the bump added the new pair without removing the old one.

Neither version resolves: neither appears in go.mod or go.work, and tidy's
module graph reports no use of either.

Verified: `go mod tidy -diff` prints exactly these four deletions and no
other change; applying `go mod tidy` yields exactly this diff (4 deletions,
1 file).

---------

Co-authored-by: atrawog <[email protected]>
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.

2 participants