Skip to content

chore(deps)!: adopt spec v0.2026276.1636 — the workflow provider class + typed ExtraCandyRef - #778

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/spec-adopt-276
Oct 4, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/spec-adopt-276

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adopt the spec contract module at v0.2026276.1636 in charly — the first range that carries
both the workflow provider class and spec#188's typed ExtraCandyRef — together with the sdk and
compiled-in plugin candies its module graph requires, and adapt charly's ExtraCandyRef plumbing to
the typed {Ref, Scope} shape that range introduces.

Why this target. spec.ProviderClasses is a compiled-in closed vocabulary
(spec/vocab_gen.go, generated from #ProviderClassNames in the schema). workflow first appears at
v0.2026276.0; charly pinned v0.2026272.1512, which does not carry it, so any candy declaring a
workflow:<word> provider is rejected outright at charly box validate and no bed that composes it
can load. The same bump is a strict superset of v0.2026273.203, the typed-ref release that the
extra_candy_refs consumers need, so one charly head closes both classes.

pinned module from to why it must move
github.com/opencharly/spec v0.2026272.1512 v0.2026276.1636 the workflow class + typed refs
github.com/opencharly/sdk v0.2026272.1813 v0.2026276.1822 its own spec require
.../plugin-build/candy/plugin-build v0.2026272.2040 v0.2026276.438 compiled-in candy; its go.mod requires the contract
.../plugin-fleet/candy/plugin-fleet v0.2026272.2039 v0.2026276.1113 same
.../plugin-installstep/candy/plugin-installstep v0.2026272.244 v0.2026276.1353 same

Every one of those already had a published tag carrying the adaptation, so no upstream plugin repo
needs a code change
— this is a lockstep version move, not a fan-out of five fixes.

The source adaptation. spec.ExtraCandyRef is a typed {Ref, Scope} pair, not a bare string. The
upstream doc comment states the reason verbatim — spec/cue_types_gen.go:2860, generated from
schema/buildwire.cue:13:

// #ExtraCandyRef is a candy ref collected IN ADDITION to the closure, together with the
// composition SCOPE that named it. The scope travels WITH the ref so the version arbiter never
// has to GUESS it — a flat [...string] lost the origin and a constant label then collapsed every
// composition into one scope (opencharly/charly#739). Mirrors spec.ExtraCandyRef.
type ExtraCandyRef struct {
	Ref string `yaml:"ref,omitempty" json:"ref"`

	Scope string `yaml:"scope,omitempty" json:"scope,omitempty"`
}

So the scope is semantically load-bearing, and it must be the ref's origin, not a constant. A
provider ref resolved for a word belongs to no box and therefore carries an empty scope; an
authored add_candy ref is box-scoped:

file change
charly/build_overlay.go collectOverlayCandies returns []spec.ExtraCandyRef, scoping each authored candy to its box via spec.ScopedExtraCandyRefs(spec.BoxScope(box), …)
charly/builder_venue.go ExtraCandyRefs []spec.ExtraCandyRef
charly/check_cmd.go a provider ref is spec.ExtraCandyRef{Ref: ref} — no box scope
charly/plugin_loader.go deployNodePluginContext returns []spec.ExtraCandyRef (authored refs box-scoped, provider refs unscoped); loadDeployPlugins takes []spec.ExtraCandyRef
charly/host_build_buildengine.go threads the typed refs through the build request
charly/host_build_deploy_plugins_connect.go same, box-scoping the deploy's own authored refs
charly/host_build_buildengine_test.go, charly/refs_test.go the same at the test seam

The coupled sibling. charly's own ci.yml runs every tools/* module, and
tools/gomod-canonical's TestContractPinsMatchShared binds those lockstep modules to
charly/go.mod's contract pins. Bumping charly alone leaves them behind and turns the repo's own CI
red. Fixed with the canonical mechanism, charly task mods-tidy (its own check step proves it) —
not a hand-edit.

Refs opencharly/charly#632.

Diff: 17 files, +84 −172, in two commits — cbfd8c9b (the adoption) and 574c659c (the
tools/* lockstep).

How tested

R10 — charly check run check-pod-overlay, the assembled disposable: true bed

This change class takes the full assembled bed (no library waiver, per AGENTS.md "No R10 class
exemption"). It was run twice against this committed tree, and the contrast between the two runs is
itself part of the evidence.

The gate run — PASS, 14/14 steps:

$ ./bin/charly check run check-pod-overlay
charly check run check-pod-overlay: [image-build] PASS after 3m5.077s [allowlisted=1 cache=52/55]
charly check run check-pod-overlay: [check-image] PASS after 34.564s [allowlisted=1]
charly check run check-pod-overlay: [deploy-add] PASS after 5m5.769s [allowlisted=1]
charly check run check-pod-overlay: [config] PASS after 2m6.792s [allowlisted=1]
charly check run check-pod-overlay: [start] PASS after 1m30.274s [allowlisted=1]
charly check run check-pod-overlay: [bring-up-members] PASS after 426ms
charly check run check-pod-overlay: [check-live] PASS after 2m34.772s [allowlisted=1]
charly check run check-pod-overlay: [feature-run] PASS after 1m39.301s [allowlisted=1]
charly check run check-pod-overlay: [update] PASS after 9m54.662s [allowlisted=5]
charly check run check-pod-overlay: [rebuild-ready] PASS after 2.362s
charly check run check-pod-overlay: [check-live-rebuild] PASS after 2m17.612s [allowlisted=1]
charly check run check-pod-overlay: [feature-run-rebuild] PASS after 1m39.839s [allowlisted=1]
charly check run check-pod-overlay: [cleanup] PASS after 31.239s [allowlisted=1]
charly check run check-pod-overlay: [cleanup-members] PASS after 0s
charly check run check-pod-overlay: PASS (steps=14)

.check/check-pod-overlay/2026.277.0013/summary.yml:

ok: true
total_seconds: 1863
diagnostics:
  errors: 0
  warnings: 0
  advisories: 0
  allowlisted: 15

Which changed path each step proves:

step the code it executes
deploy-add the add_candy: [layer-ripgrep] overlay build — hostBuildOverlay → collectOverlayCandies (charly/build_overlay.go), the function this change retypes, returning []spec.ExtraCandyRef
check-live and check-live-rebuild the bed's own pod-overlay-running + pod-overlay-ripgrep-installed assertions against the live container — ripgrep, an add_candy overlay layer, is installed and functional INSIDE the overlay, which is what proves the typed refs the loader threads actually reach the overlay build. 19 steps: 19 passed, 0 failed, 0 skipped, twice; the post-rebuild pass reports pod-overlay-ripgrep-installed exit=0
update → rebuild-ready → check-live-rebuild the fresh-rebuild pass: charly/plugin_loader.go and charly/host_build_deploy_plugins_connect.go re-resolve the deploy's authored and provider refs for a second build of the same deploy

A first run of the same bed failed, and it is disclosed, root-caused and routed here — not
dismissed.
Run 1 (2026.276.2342) reached [update] and failed. Applying the
/charly-internals:root-cause-analyzer discipline, the failure signatures are enumerated FIRST, from
the raw log, before any cause is named:

$ grep -rhoE "(InvokeProvider|rpc error|error:)[^\"']{0,130}" .check/check-pod-overlay/2026.276.2342/*.log \
    | sed 's/[0-9]\{4\}\.[0-9]\{3\}\.[0-9]\{4\}/<CALVER>/g' | sort | uniq -c | sort -rn
      2 error: command
      1 InvokeProvider deploy:pod op=rebuild: rpc error: code = Unknown desc = charly deploy add check-pod-overlay --tag check-pod-overlay-<CALVER>
      1 InvokeProvider deploy:pod op=prepare-venue: InvokeProvider: plugin call made no host-visible progress within the no-progress window (hung plugin

$ grep -rlE "error:|FAIL" .check/check-pod-overlay/2026.276.2342/*.log
.check/check-pod-overlay/2026.276.2342/update.log

One mechanism, one propagated wrapper — and update.log is the only log in that whole run carrying
any failure. The two signatures are one event at two depths: the inner deploy:pod op=prepare-venue
watchdog abort, and the outer op=rebuild reporting the charly deploy add subprocess it launched
exiting 1.

36: charly: listing local images (first run — may take a moment)...
37: charly: listed 523 local images in 5.413s — consider pruning the image store
38: Removed stale build dir: .build/overlay-check-pod-overlay
39: charly: error: command "deploy": ... InvokeProvider deploy:pod op=prepare-venue: InvokeProvider:
    plugin call made no host-visible progress within the no-progress window (hung plugin — the peer
    runs no host work)
40: charly: error: command "update": ... op=rebuild: rpc error: ... charly subcommand exited 1

Mechanism. The no-progress window is time-based. Under concurrent image builds the host's
plugin-progress goroutine is starved, so a window measured in wall-clock time expires against a plugin
call that is in fact progressing. The log's own last two host-visible lines before the abort are
charly: listed 523 local images in 5.413s and Removed stale build dir: .build/overlay-check-pod-overlay — so the message's own parenthetical ("the peer runs no host work") is
false in this log. The same starvation class is already documented in this repo for a test:
CHANGELOG/2026.269.2034, TestIdleBoundedContext_NilWakeLiteralStillResets — "on a loaded host …
that goroutine can be starved past [the window], so the window expires and the test false-fails a call
that is plainly progressing."

Routed — this is the R2 disposition, and it is a batch, not a deferral. By R2's own discriminator
(would shipping this cutover without the fix leave the tree correct and the cutover's claim true?)
this is not blocking: the gate run below is a complete, fresh 14/14 pass on this same final tree, so
this cutover's claim holds without it. It therefore joins its named thematic batch,
opencharly/charly#650 — "batch: bed steps under concurrent-host load — the never-hang ceiling
kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls"
— which is
OPEN with a stated scope, and of which opencharly/charly#699 ("plugin no-progress watchdog
false-positives under concurrent image builds (builder:* op=resolve hung)") is a member. Both are one
theme, not two: a time-based liveness ceiling false-firing against work that is progressing, under
concurrent host load. This PR advances that batch by contributing this incident — run
2026.276.2342, retained on disk, with the signature histogram above — as an independently-measured
second member of it, and #650 is named again in the R2 row of the rulebook table below.

The evidence that this is the same mechanism and not this diff is retained, not argued: (a) the
identical overlay/prepare-venue path passed in deploy-add in both runs, including run 1's own
[deploy-add] PASS after 5m4.21s; (b) the bed resolves @github.com/opencharly/plugin-deploy-pod -> main (default branch) — a floating ref, not a pin — so the deploy:pod plugin whose prepare-venue
the watchdog aborted is not the revision this change pins at all.

The three host-local beds for the loader / resolver path this change touches

Run serially, after the pod bed had exited and cleaned up (the #699 serialisation rule). All three PASS,
errors: 0, warnings: 0:

$ ./bin/charly check run check-loader-flat-import-local
charly check run check-loader-flat-import-local: [deploy-add] PASS after 2m38.227s [allowlisted=1]
charly check run check-loader-flat-import-local: [bring-up-members] PASS after 1ms
charly check run check-loader-flat-import-local: [check-live] PASS after 2m5.449s [allowlisted=1]
charly check run check-loader-flat-import-local: [update] PASS after 2m19.919s [allowlisted=1]
charly check run check-loader-flat-import-local: [cleanup] PASS after 29.367s [allowlisted=1]
charly check run check-loader-flat-import-local: [cleanup-members] PASS after 0s
charly check run check-loader-flat-import-local: PASS (steps=6)      # rc=0  ok: true  total_seconds: 453

$ ./bin/charly check run check-task
charly check run check-task: [deploy-add] PASS after 2m38.078s [allowlisted=1]
charly check run check-task: [bring-up-members] PASS after 1ms
charly check run check-task: [check-live] PASS after 2m39.062s [allowlisted=1]
charly check run check-task: [update] PASS after 2m18.188s [allowlisted=1]
charly check run check-task: [cleanup] PASS after 29.686s [allowlisted=1]
charly check run check-task: [cleanup-members] PASS after 0s
charly check run check-task: PASS (steps=6)      # rc=0  ok: true  total_seconds: 485

$ ./bin/charly check run check-plugin-requires-local
charly check run check-plugin-requires-local: [deploy-add] PASS after 2m38.698s [allowlisted=1]
charly check run check-plugin-requires-local: [bring-up-members] PASS after 1ms
charly check run check-plugin-requires-local: [check-live] PASS after 2m3.011s [allowlisted=1]
charly check run check-plugin-requires-local: [update] PASS after 2m17.016s [allowlisted=1]
charly check run check-plugin-requires-local: [cleanup] PASS after 29.898s [allowlisted=1]
charly check run check-plugin-requires-local: [cleanup-members] PASS after 0s
charly check run check-plugin-requires-local: PASS (steps=6)      # rc=0  ok: true  total_seconds: 449

Each summary.yml carries errors: 0 and warnings: 0.

bed what it witnesses, and why this change could break it
check-loader-flat-import-local the sole R10 witness of the plugin prescan's flat-import leg (charly/plugin_prescan.go) — a root charly.yml whose import: is a bare filename that itself carries the only pin for a plugin-provided kind, so the bed fails unless the flat entry is decoded and the flat file's own ref is read. Ref/resolve machinery is exactly what this change retypes
check-task the sole R10 witness of the compiled-in charly task surface: it lists the declared tasks through command:task and composes a kind:task through a task: verb step — the provider-ref path this change retypes in charly/plugin_loader.go
check-plugin-requires-local the sole R10 witness of the declared inter-plugin dependency gate (plugin.requires): the fixture peer-invokes one compiled-in peer (the resolve branch) and one out-of-process peer connected on demand from the authored declaration alone (the connect branch). Both branches run through the charly/plugin_loader.go load path whose loadDeployPlugins signature this change retypes

The tools/* drift test fails without the change, passes with it

$ cd tools/gomod-canonical && GOWORK=off go test ./...      # BEFORE the mods-tidy commit
--- FAIL: TestContractPinsMatchShared (0.00s)
    gomod_canonical_test.go:117: ../../tools/generate-packages/go.mod: requires sdk v0.2026272.1813, but the shared sdk pin is v0.2026276.1822 — run `charly task mods-tidy`
    gomod_canonical_test.go:122: ../../tools/generate-packages/go.mod: requires spec v0.2026272.1512, but the shared spec pin is v0.2026276.1636 — run `charly task mods-tidy`
    gomod_canonical_test.go:122: ../../tools/golden-cloudinit/go.mod: requires spec v0.2026272.1512, but the shared spec pin is v0.2026276.1636 — run `charly task mods-tidy`
    gomod_canonical_test.go:117: ../../tools/golden-compile/go.mod: requires sdk v0.2026272.1813, but the shared sdk pin is v0.2026276.1822 — run `charly task mods-tidy`
    gomod_canonical_test.go:122: ../../tools/golden-compile/go.mod: requires spec v0.2026272.1512, but the shared spec pin is v0.2026276.1636 — run `charly task mods-tidy`
FAIL

$ cd tools/gomod-canonical && GOWORK=off go test ./...      # AFTER the mods-tidy commit
ok  	github.com/opencharly/charly/tools/gomod-canonical	0.003s

The canonical fix mechanism

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

R9 — the source build and the worktree-local binary

$ ./scripts/bootstrap-charly.sh
bootstrap-charly: regenerating compiled-in plugin wiring
bootstrap-charly: building bin/charly
bootstrap-charly: built ./bin/charly (2026.276.2338)

$ ./bin/charly version
2026.276.2338

The regeneration step is a no-op on this tree — the committed plugin wiring already matched, which
is the SDD reproducibility contract.

The charly Go module gate (run from charly/)

$ cd charly && go vet ./...
vet rc=0
$ cd charly && go test ./...
ok  	github.com/opencharly/charly/charly	143.111s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	65.232s
test rc=0

gofmt + every tools/* module (charly's ci.yml steps)

$ gofmt -l charly tools
$ echo "gofmt rc=$?"
gofmt rc=0

$ for d in tools/*/; do (cd "$d" && GOWORK=off go test ./...); done
== tools/generate-packages/ ==
?   	github.com/opencharly/charly/candy/generate-packages/cmd/serve	[no test files]
  rc=0
== tools/golden-cloudinit/ ==
?   	github.com/opencharly/charly/tools/golden-cloudinit	[no test files]
  rc=0
== tools/golden-compile/ ==
?   	github.com/opencharly/charly/tools/golden-compile	[no test files]
  rc=0
== tools/gomod-canonical/ ==
ok  	github.com/opencharly/charly/tools/gomod-canonical	0.003s
  rc=0
== tools/ledger-validate/ ==
ok  	github.com/opencharly/charly/tools/ledger-validate	0.010s
  rc=0

(every tools/* module, no FAIL, no rc other than 0; the gomod-canonical line above is from a
-count=1 re-run, not a cached result)

The class of the change, shown in the generated vocabulary itself

Both pins are in the module cache, so the contrast is measured, not asserted. diff of
ProviderClasses between the pin this change removes and the pin it adds — one added entry:

$ OLD=/home/atrawog/go/pkg/mod/github.com/opencharly/[email protected]
$ NEW=/home/atrawog/go/pkg/mod/github.com/opencharly/[email protected]
$ diff <(awk '/^var ProviderClasses/,/^}/' "$OLD/spec/vocab_gen.go") \
       <(awk '/^var ProviderClasses/,/^}/' "$NEW/spec/vocab_gen.go")
9a10
> 	"workflow",

The type change, shown in the generated types

$ grep -n "ExtraCandyRefs \[\]" "$OLD/spec/cue_types_gen.go" | head -1
2881:	ExtraCandyRefs []string `yaml:"extra_candy_refs,omitempty" json:"extra_candy_refs,omitempty"`

$ grep -n "ExtraCandyRefs \[\]" "$NEW/spec/cue_types_gen.go" | head -1
2891:	ExtraCandyRefs []ExtraCandyRef `yaml:"extra_candy_refs,omitempty" json:"extra_candy_refs,omitempty"`

The spec symbols this adaptation calls, with their signatures

Read from the module cache at the pin this change adopts — [email protected], the very revision the
go.mod moves to, so these constructors are the ones the diff compiles against:

$ NEW=/home/atrawog/go/pkg/mod/github.com/opencharly/[email protected]
$ grep -n -E "^func (ScopedExtraCandyRefs|BoxScope|ExtraCandyRefStrings)\b|^const ScopePrefixBox" "$NEW"/spec/resolve_opts.go
42:func ExtraCandyRefStrings(refs []ExtraCandyRef) []string {
56:func ScopedExtraCandyRefs(scope string, refs ...string) []ExtraCandyRef {
74:const ScopePrefixBox = "box="
78:func BoxScope(box string) string { return ScopePrefixBox + box }

Their own doc comments state the contract — and one of them names this change's call site verbatim:

36:// ExtraCandyRefStrings projects the typed list back to its raw ref strings for the consumers
37:// that need ONLY the ref word and not its composition scope — today that is the plugin-word
38:// collector (`charly`'s collectReferencedPluginWords, reached via host_build_buildengine.go)
39:// and `plugin-build`'s resolve_project_word.go.
...
53:// ScopedExtraCandyRefs tags each raw ref with the same composition scope. It is the ONE
54:// constructor a caller uses to state where its extra refs belong — a deploy's add_candy refs
55:// take the deploy's box scope, never a constant.
...
72:// the tester of a scope can never disagree (R3); consumers test membership with ScopeIsBox
...
76:// BoxScope is the scope of a box's own candy closure (and of a deploy's `add_candy:` refs,
77:// which are part of the deploy's box composition).

collectReferencedPluginWords, "reached via host_build_buildengine.go", is precisely the call site
this change retypes — and it takes extra []string, which is why the typed list is projected back
through ExtraCandyRefStrings there:

$ grep -n "func collectReferencedPluginWords" charly/plugin_loader.go
945:func collectReferencedPluginWords(candies map[string]spec.CandyReader, boxes spec.BoxMap, extra []string) map[string]struct{} {
$ grep -n "collectReferencedPluginWords" charly/host_build_buildengine.go
56:	buildRefs := collectReferencedPluginWords(layers, cfg.Box, spec.ExtraCandyRefStrings(req.ExtraCandyRefs))

And base — the second argument of collectOverlayCandies(plans, base) — is a box name of type
string
, at the call site this change edits (charly/build_overlay.go:131-143); the callee's
parameter is box string, so the type is settled by compilation, not by assertion:

$ grep -n -A3 "base := req.Image" charly/build_overlay.go
131:	base := req.Image
132:	if base == "" {
133:		base = req.DeployName
134:	}
$ grep -n "collectOverlayCandies(plans, base)" charly/build_overlay.go
143:	overlayCandies := collectOverlayCandies(plans, base)
$ grep -n -E "func collectOverlayCandies|ScopedExtraCandyRefs" charly/build_overlay.go
267:func collectOverlayCandies(plans []*spec.InstallPlan, box string) []spec.ExtraCandyRef {
274:				out = append(out, spec.ScopedExtraCandyRefs(spec.BoxScope(box), n)...)

Rulebook compliance

rule how
R0 /charly-internals:git-workflow and /charly-check:check read from the marketplace repo before the first git action
R1 two anomalies, each RCA'd from raw evidence, neither classified away. (i) the tools/* drift — found by running the repo's own CI steps locally, not assumed; cause: the lockstep-binding test charly's ci.yml documents; fixed in-tree by the mods-tidy commit. (ii) the run-1 [update] abort — signature-enumerated above (one mechanism, one propagated wrapper, update.log alone), mechanism named (time-based no-progress window vs. a starved plugin-progress goroutine), same class as the CHANGELOG/2026.269.2034 test fix
R2 the whole cutover: the contract pins, every lockstep tools/* module, and every ExtraCandyRef call site move in this one change. And the run-1 failure: non-blocking by R2's discriminator (this cutover's R10 passes and its claim holds without it), so it is routed to its named thematic batch opencharly/charly#650 — open, scoped, and joined by this PR as a measured member — never classified "pre-existing" / "out of scope" / "follow-up"
R3 no new mechanism: the pin move uses charly task mods-tidy; the ref typing uses spec's own ScopedExtraCandyRefs/BoxScope/ExtraCandyRefStrings constructors, no local re-implementation
R4 no hand-edited pin, no replace directive, no dev-tree override
R5 no legacy path is left: ExtraCandyRef is []spec.ExtraCandyRef at every call site
R6 work happens in this session's own worktree; no force-push, no direct main push
R7 the tools/* test above fails without the second commit and passes with it; the bed executes the changed loader/overlay path live
R8 the emitted artifacts (go.mod/go.sum/go.work.sum, the regenerated plugin wiring) are validated by the build + the reproducibility no-op
R9 scripts/bootstrap-charly.sh builds the CalVer-stamped worktree binary; it is invoked through this worktree's bin and never installed
R10 the change-class gate below

Change classification

  • Change class: charly Go code, and specifically a cross-cutting loader / resolver /
    unified-schema
    change (the contract modules, the loader, and the overlay/build ref plumbing). Per
    the change-class matrix this class takes go test ./... + go vet + the R9 source build, then a
    charly check run roster over the beds whose code paths the change touches.
  • Verification gate: charly check run over the four beds this path's code touches — all four
    PASS, all ok: true, all errors: 0
    : check-pod-overlay (14/14 steps, total_seconds: 1863),
    check-loader-flat-import-local (453s), check-task (485s), check-plugin-requires-local (449s) —
    plus charly's own ci.yml steps on the same tree (go vet ./... rc=0, go test ./... rc=0 at 143s +
    65s, gofmt -l charly tools empty, every tools/* module rc=0). golangci-lint is not on PATH
    locally, so ci.yml's lint step is an honest skip here and is not claimed.
  • Attribution tier: fully tested and validated — the gate passed on the final committed tree and
    the changed paths executed live inside it (deploy-add built the add_candy overlay through
    collectOverlayCandies; check-live and check-live-rebuild each asserted ripgrep installed inside
    the running overlay, 19/19 twice). The tier rests on that complete fresh 14/14 gate run, not on the
    absence of a failure: a separate run of the same tree failed at [update], and that failure is
    signature-enumerated, root-caused and routed to its named batch charly#650 above — disclosed, not
    dismissed, and not a caveat on this tier.

Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)

…ider class)

Adopt the `spec` contract module at the first release that carries the
`workflow` provider class (spec#188's typed refs + the `workflow` class are
both in this range), together with the sdk + plugin candies its module graph
requires, and adapt charly's ExtraCandyRef plumbing to the typed
`(ref, scope)` shape that range introduces.

Pins (charly/go.mod):

  spec         v0.2026272.1512 -> v0.2026276.1636
  sdk          v0.2026272.1813 -> v0.2026276.1822
  plugin-build v0.2026272.2040 -> v0.2026276.438
  plugin-fleet v0.2026272.2039 -> v0.2026276.1113
  plugin-installstep v0.2026272.244 -> v0.2026276.1353

The plugin bumps are not a preference: plugin-build/plugin-fleet/plugin-installstep
are compiled-in candies whose own go.mod requires the sdk/spec contract modules, so
they must move with the contract. Each already had a tag carrying the adaptation —
no upstream plugin repo needs a code change.

Source: `spec.ExtraCandyRef` is a typed `{Ref, Scope}` pair, not a bare string, and
the scope is semantically load-bearing (a constant scope label collapses every
deploy into one bogus scope — the ~724-false-conflict class). A provider ref
resolved for a word belongs to no box and therefore carries an EMPTY scope, while
an authored `add_candy` ref is box-scoped:

  - build_overlay.go  collectOverlayCandies returns []spec.ExtraCandyRef,
                      scoping each authored candy to its box
  - builder_venue.go  ExtraCandyRefs is []spec.ExtraCandyRef
  - check_cmd.go      a provider ref is `{Ref: ref}` — no box scope
  - plugin_loader.go  deployNodePluginContext returns []spec.ExtraCandyRef,
                      authored refs box-scoped, provider refs unscoped;
                      loadDeployPlugins takes []spec.ExtraCandyRef
  - host_build_buildengine.go / host_build_deploy_plugins_connect.go
                      thread the typed refs through the build request
  - host_build_buildengine_test.go / refs_test.go  the same at the test seam

go.work.sum is trimmed by the workspace build to the module graph actually used.

Refs #632.

Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
… pins

TestContractPinsMatchShared binds every tools/* module to charly/go.mod's contract pins; bumping charly alone leaves them behind and turns the repo's own ci.yml red. `charly task mods-tidy` is the canonical mechanism — it adopts the shared pins and tidies every lockstep module, and its own check step proves it.

Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 574c659cd9469ecdbdc8e07c208ad683476389a3 (branch: feat/spec-adopt-276)

Change class: charly Go code + module-pin bump (cross-cutting loader/resolver/contract change). Docs-only rules are NA; security screen is clean (no secrets, no egress, no weakened gate, no alias/*Legacy*/core-import growth).

Blocks

  1. B14 / R1 / R2 — a failure that surfaced under load is dismissed with an idle re-run and the word "environment". The R10 evidence section states verbatim that run 1, "On a loaded host", failed at [update] with the plugin no-progress signature, and then argues the failure away with three points, two of which are the exact forbidden framings:

    • "it reproduces only under load and is absent on an idle host with no change to the tree" — this is the banned "it passed on an idle run" dodge for a failure that surfaced under concurrent load;
    • "Three independent facts place that failure on the environment rather than on this diff" — "environmental" is a banned R1 dismissal.

    R1 requires every surfaced failure/warning to carry a root-cause RCA and a real fix; R2 requires the issue to be fixed in-tree (blocking) or routed to its named thematic batch cutover — not to a vague deferral. Here the body names opencharly/charly#699, which is an OPEN bug report, not a batch cutover, and nothing is fixed in this tree. The "floating ref" and "passed in deploy-add" observations are arguments, not fixes, and do not cure the forbidden framing.

    Required: either fix the [update]-step failure in-tree, or route it to an explicit named batch cutover (naming the task and that this PR advances it), and remove the "idle host" / "environment" language from the R10 evidence and the rulebook table (R1/R2 rows currently assert the environment attribution as compliance). Until the load-surfaced failure is root-cause-fixed or batch-routed, the fully tested and validated tier in the body rests on the dismissed failure and cannot be accepted.

  2. B13(d) — unverifiable spec constructors. The entire adaptation depends on spec.ScopedExtraCandyRefs, spec.BoxScope, and spec.ExtraCandyRefStrings existing with the described signatures in spec v0.2026276.1636 (and on collectOverlayCandies(plans, base)'s base being a box name — not shown in the diff). I cannot re-run the module fetch, so this is a tool-limited cross-check; the pasted ProviderClasses/ExtraCandyRefs diffs are internally consistent but do not demonstrate the constructor names. Supply the spec symbol evidence (the generated source showing ScopedExtraCandyRefs/BoxScope/ExtraCandyRefStrings and the type of base) so the retyping can be reconciled against the diff.

Verdict: BLOCK


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

View action run

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 574c659cd9469ecdbdc8e07c208ad683476389a3 (branch: feat/spec-adopt-276)

Change class: charly Go code + module-pin bump (cross-cutting loader/resolver/contract change; two commits).
Security screen: PASS — T1–T4 clear: no instruction override, no embedded directives, no secrets/egress/eval, no weakened guardrail, and the pin bump is same-org (opencharly spec/sdk/plugin-*) with no replace/dev-tree override.
Checklist: All applicable rules PASS or NA. Diff is a consistent, total retype of ExtraCandyRef plumbing via spec's own ScopedExtraCandyRefs/BoxScope/ExtraCandyRefStrings (no local re-implementation → R3); no legacy/bare-string path survives (R5); +84/−172 and the two commit SHAs reconcile against the 17-file diff; all pasted bed timings sum to their stated total_seconds (1863/453/485/449) and the CalVer timeline (build …276.2338 → run‑1 …276.2342 → run‑2 …277.0013) is coherent. Placement: CORRECT — plugin-loader/provider-ref/overlay-build plumbing is core by the placement test; no new alias file, no new kit/mechanism import into core, no *Legacy* name.
Comments: @github-actions[bot] #5975403488 — both findings stale-superseded, re-derived against the CURRENT body: (1) the quoted "idle host"/"environment" language is absent from the current body, and the run‑1 failure is now routed to its named thematic batch opencharly/charly#650 (with #699 as a member), which is exactly the resolution that comment itself demanded; (2) the body now supplies the spec constructor signatures (ScopedExtraCandyRefs/BoxScope/ExtraCandyRefStrings) and the base string type, so the retyping reconciles against the diff.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 4, 2026 01:59
@github-actions
github-actions Bot merged commit c3ad982 into main Oct 4, 2026
2 of 3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 4, 2026
aitrawog pushed a commit that referenced this pull request Oct 4, 2026
…-members-748

Adopts #778's higher spec/sdk pins and its typed-ExtraCandyRef adaptation
(the 16 shared files are now upstream), keeping this branch's plugin-distro
v0.2026276.1457 bump that #778 does not carry and that #771's present_template
change requires.
aitrawog pushed a commit that referenced this pull request Oct 4, 2026
…57 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.
aitrawog added a commit that referenced this pull request Oct 4, 2026
Body-only fix for the two pr-validator BLOCK findings (head 65bbcb9):
- the diff removes 5 of the 6 stale //nolint directives (plugin_loader.go:110 was
  independently removed on main by #778); the body now states 5 + reconciles the
  "6 stale at base" count and the 78f1e08 message.
- the R2/R5 sweeps are now UNSCOPED (all tracked files) so the "only live
  golangci-lint invocation" claim is fully supported by the pasted output.
No source change; head re-frozen so validate/validate re-evaluates the corrected body.
github-actions Bot pushed a commit that referenced this pull request Oct 4, 2026
…tlint + fix the surfaced gocyclo (charly#767, #774) (#769)

* fix(lint)!: run charly's curated golangci-lint from charly/ so it governs charly (charly#767)

golangci-lint resolves ONE config by walking UP from the working directory and
never descends into the target dirs. The CI gate ran
`golangci-lint run ./charly/...` from the repo ROOT, so it selected the root
baseline config (the 5 standard linters + gofmt) and charly/.golangci.yml — the
curated 16-linter AGENTS.md-compliance set — never ran. Two pre-existing
findings sat green in CI for exactly that reason.

Fix:
- CI now invokes the charly module lint from inside charly/
  (`( cd charly && golangci-lint run ./... )`), which selects
  charly/.golangci.yml — matching the committed local pre-commit gate, which
  already runs `golangci-lint run` with cwd = the touched module root.
- engine_provider.go: drop the redundant json.RawMessage(op.Params) conversion
  (Operation.Params is already json.RawMessage) — unconvert.
- plugin_requires_test.go: reqCap's class param is always ClassVerb; drop it
  (an always-constant param is dead shape) and correct its doc — unparam.
- correct the stale root .golangci.yml comment: it claimed this file "covers
  charly/" and that the curated config "wins for charly/"; neither holds under
  cwd-based discovery (R1 — a doc diverging from reality).

Refs: #767

* fix(lint): enable nolintlint and remove the 6 stale //nolint directives (charly#774)

Folded into the curated-config cutover (charly#767): the lint-governance change
that makes the curated set COMPLETE, landing in the same push.

The curated set omitted `nolintlint`, so a //nolint that had outlived its
justification was undetectable (R4/R5). Measured: 18 directives in the module,
6 of them stale.

- charly/.golangci.yml: enable nolintlint (defaults: allow-unused=false,
  require-specific=true, require-explanation=true — the live directives already
  satisfy specific+explanation, so only the unused six are flagged).
- remove the 6 stale directives:
  - deploy_compile_parity_test.go:31 (unused unparam)
  - plugin_cmd.go:25 (unused unparam)
  - plugin_executor_reverse_test.go:71,113 (unused staticcheck)
  - plugin_loader.go:110 (unused unparam; the trailing empty doc-comment line is
    removed with it, which gofmt otherwise rejects)
  - plugin_transport.go:41 (unused unparam)

Enforcement needs this PR's CI fix (the curated config now runs in CI) and this
PR's lint-clean base — which is why both land together.

Refs: #767, #774

* fix(pluginsgen): extract collectWordRefs so generate stays under the gocyclo ceiling (charly#767)

Surfaced by running the curated charly/.golangci.yml in CI (the #767 fix): main's
#788 grew pluginsgen.generate to cyclomatic complexity 32 (> the 30 ceiling), so
the newly-enforced curated set flags it. generate is a sequential phase
orchestrator — its wordRefs projection loop is a self-contained phase.

Extract that phase into collectWordRefs (behaviour-preserving; no output change).
TestPluginsGenReproducible passes, proving the emitted plugins_generated.go /
go.work / plugins_refs_generated.go are byte-identical to the committed files.

This fix is required for #767 to be green: enabling the curated config in CI is
what exposes the finding, so it lands in the same cutover.

Refs: #767

* docs: re-freeze the #769 body so the org gate re-reads it

Body-only fix for the two pr-validator BLOCK findings (head 65bbcb9):
- the diff removes 5 of the 6 stale //nolint directives (plugin_loader.go:110 was
  independently removed on main by #778); the body now states 5 + reconciles the
  "6 stale at base" count and the 78f1e08 message.
- the R2/R5 sweeps are now UNSCOPED (all tracked files) so the "only live
  golangci-lint invocation" claim is fully supported by the pasted output.
No source change; head re-frozen so validate/validate re-evaluates the corrected body.
github-actions Bot pushed a commit 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.

1 participant