Repository navigation
chore(deps)!: adopt spec v0.2026276.1636 — the workflow provider class + typed ExtraCandyRef - #778
Conversation
…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)
Review — BLOCKHead SHA: Change class: Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…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.
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.
…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.
…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]>
Summary
Adopt the
speccontract module atv0.2026276.1636incharly— the first range that carriesboth the
workflowprovider class and spec#188's typedExtraCandyRef— together with thesdkandcompiled-in plugin candies its module graph requires, and adapt charly's
ExtraCandyRefplumbing tothe typed
{Ref, Scope}shape that range introduces.Why this target.
spec.ProviderClassesis a compiled-in closed vocabulary(
spec/vocab_gen.go, generated from#ProviderClassNamesin the schema).workflowfirst appears atv0.2026276.0; charly pinnedv0.2026272.1512, which does not carry it, so any candy declaring aworkflow:<word>provider is rejected outright atcharly box validateand no bed that composes itcan load. The same bump is a strict superset of
v0.2026273.203, the typed-ref release that theextra_candy_refsconsumers need, so one charly head closes both classes.github.com/opencharly/specv0.2026272.1512v0.2026276.1636workflowclass + typed refsgithub.com/opencharly/sdkv0.2026272.1813v0.2026276.1822specrequire.../plugin-build/candy/plugin-buildv0.2026272.2040v0.2026276.438.../plugin-fleet/candy/plugin-fleetv0.2026272.2039v0.2026276.1113.../plugin-installstep/candy/plugin-installstepv0.2026272.244v0.2026276.1353Every 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.ExtraCandyRefis a typed{Ref, Scope}pair, not a bare string. Theupstream doc comment states the reason verbatim —
spec/cue_types_gen.go:2860, generated fromschema/buildwire.cue:13: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_candyref is box-scoped:charly/build_overlay.gocollectOverlayCandiesreturns[]spec.ExtraCandyRef, scoping each authored candy to its box viaspec.ScopedExtraCandyRefs(spec.BoxScope(box), …)charly/builder_venue.goExtraCandyRefs []spec.ExtraCandyRefcharly/check_cmd.gospec.ExtraCandyRef{Ref: ref}— no box scopecharly/plugin_loader.godeployNodePluginContextreturns[]spec.ExtraCandyRef(authored refs box-scoped, provider refs unscoped);loadDeployPluginstakes[]spec.ExtraCandyRefcharly/host_build_buildengine.gocharly/host_build_deploy_plugins_connect.gocharly/host_build_buildengine_test.go,charly/refs_test.goThe coupled sibling. charly's own
ci.ymlruns everytools/*module, andtools/gomod-canonical'sTestContractPinsMatchSharedbinds those lockstep modules tocharly/go.mod's contract pins. Bumping charly alone leaves them behind and turns the repo's own CIred. Fixed with the canonical mechanism,
charly task mods-tidy(its owncheckstep proves it) —not a hand-edit.
Refs
opencharly/charly#632.Diff: 17 files,
+84 −172, in two commits —cbfd8c9b(the adoption) and574c659c(thetools/*lockstep).How tested
R10 —
charly check run check-pod-overlay, the assembleddisposable: truebedThis 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:
.check/check-pod-overlay/2026.277.0013/summary.yml:Which changed path each step proves:
deploy-addadd_candy: [layer-ripgrep]overlay build —hostBuildOverlay→collectOverlayCandies(charly/build_overlay.go), the function this change retypes, returning[]spec.ExtraCandyRefcheck-liveandcheck-live-rebuildpod-overlay-running+pod-overlay-ripgrep-installedassertions against the live container — ripgrep, anadd_candyoverlay 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 reportspod-overlay-ripgrep-installed exit=0update→rebuild-ready→check-live-rebuildcharly/plugin_loader.goandcharly/host_build_deploy_plugins_connect.gore-resolve the deploy's authored and provider refs for a second build of the same deployA 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-analyzerdiscipline, the failure signatures are enumerated FIRST, fromthe raw log, before any cause is named:
One mechanism, one propagated wrapper — and
update.logis the only log in that whole run carryingany failure. The two signatures are one event at two depths: the inner
deploy:pod op=prepare-venuewatchdog abort, and the outer
op=rebuildreporting thecharly deploy addsubprocess it launchedexiting 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.413sandRemoved stale build dir: .build/overlay-check-pod-overlay— so the message's own parenthetical ("the peer runs no host work") isfalse 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 ceilingkills 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 watchdogfalse-positives under concurrent image builds (
builder:* op=resolvehung)") is a member. Both are onetheme, 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-measuredsecond member of it, and
#650is 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-venuepath passed indeploy-addin 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 thedeploy:podplugin whoseprepare-venuethe 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
#699serialisation rule). All three PASS,errors: 0,warnings: 0:Each
summary.ymlcarrieserrors: 0andwarnings: 0.check-loader-flat-import-localcharly/plugin_prescan.go) — a rootcharly.ymlwhoseimport: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 retypescheck-taskcharly tasksurface: it lists the declared tasks throughcommand:taskand composes akind:taskthrough atask:verb step — the provider-ref path this change retypes incharly/plugin_loader.gocheck-plugin-requires-localplugin.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 thecharly/plugin_loader.goload path whoseloadDeployPluginssignature this change retypesThe
tools/*drift test fails without the change, passes with itThe canonical fix mechanism
R9 — the source build and the worktree-local binary
The regeneration step is a no-op on this tree — the committed plugin wiring already matched, which
is the SDD reproducibility contract.
The
charlyGo module gate (run fromcharly/)gofmt+ everytools/*module (charly'sci.ymlsteps)(every
tools/*module, noFAIL, norcother than 0; thegomod-canonicalline above is from a-count=1re-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.
diffofProviderClassesbetween the pin this change removes and the pin it adds — one added entry:The type change, shown in the generated types
The
specsymbols this adaptation calls, with their signaturesRead from the module cache at the pin this change adopts —
[email protected], the very revision thego.modmoves to, so these constructors are the ones the diff compiles against:Their own doc comments state the contract — and one of them names this change's call site verbatim:
collectReferencedPluginWords, "reached viahost_build_buildengine.go", is precisely the call sitethis change retypes — and it takes
extra []string, which is why the typed list is projected backthrough
ExtraCandyRefStringsthere:And
base— the second argument ofcollectOverlayCandies(plans, base)— is a box name of typestring, at the call site this change edits (charly/build_overlay.go:131-143); the callee'sparameter is
box string, so the type is settled by compilation, not by assertion:Rulebook compliance
/charly-internals:git-workflowand/charly-check:checkread from the marketplace repo before the first git actiontools/*drift — found by running the repo's own CI steps locally, not assumed; cause: the lockstep-binding test charly'sci.ymldocuments; fixed in-tree by themods-tidycommit. (ii) the run-1[update]abort — signature-enumerated above (one mechanism, one propagated wrapper,update.logalone), mechanism named (time-based no-progress window vs. a starved plugin-progress goroutine), same class as theCHANGELOG/2026.269.2034test fixtools/*module, and everyExtraCandyRefcall 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 batchopencharly/charly#650— open, scoped, and joined by this PR as a measured member — never classified "pre-existing" / "out of scope" / "follow-up"charly task mods-tidy; the ref typing uses spec's ownScopedExtraCandyRefs/BoxScope/ExtraCandyRefStringsconstructors, no local re-implementationreplacedirective, no dev-tree overrideExtraCandyRefis[]spec.ExtraCandyRefat every call sitemainpushtools/*test above fails without the second commit and passes with it; the bed executes the changed loader/overlay path livego.mod/go.sum/go.work.sum, the regenerated plugin wiring) are validated by the build + the reproducibility no-opscripts/bootstrap-charly.shbuilds the CalVer-stamped worktree binary; it is invoked through this worktree'sbinand never installedChange classification
charlyGo 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 acharly check runroster over the beds whose code paths the change touches.charly check runover the four beds this path's code touches — all fourPASS, all
ok: true, allerrors: 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.ymlsteps on the same tree (go vet ./...rc=0,go test ./...rc=0 at 143s +65s,
gofmt -l charly toolsempty, everytools/*module rc=0).golangci-lintis not onPATHlocally, so
ci.yml's lint step is an honest skip here and is not claimed.fully tested and validated— the gate passed on the final committed tree andthe changed paths executed live inside it (
deploy-addbuilt theadd_candyoverlay throughcollectOverlayCandies;check-liveandcheck-live-rebuildeach asserted ripgrep installed insidethe 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 issignature-enumerated, root-caused and routed to its named batch
charly#650above — disclosed, notdismissed, and not a caveat on this tier.
Agent:
workflow-ir· session7e17b5cf-c349-4032-8da5-2e4e03612780Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)