Repository navigation
fix(dsh): replace the retired plugin.source: builtin and gate it in-repo - #8
Conversation
RCA (roster): `plugin.source: builtin` was RETIRED from the schema
(spec/schema/candy.cue #GithubRef — "The former `source: builtin` form was
retired"), but this candy still authored it. Any `charly box build`/`box validate`
whose candy closure includes plugin-dsh then failed CUE validation
("plugin.source: invalid value \"builtin\" (out of bound =~\"^github\\.com/...\")"),
aborting before any podman step — the dominant image-build failure in a
check-all-beds roster.
Fix: name the module path (the git-ref form every current plugin candy uses).
`charly box validate` exit 0 with this change.
Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
…hema The `source: builtin` sentinel was retired by opencharly/spec#163 (`plugin.source` is now `#GithubRef`), so the repo's own manifest gate must run a charly that carries that spec. - candy/plugin-dsh/charly.yml: `source: builtin` -> `source: github.com/opencharly/plugin-dsh/candy/plugin-dsh` (the go.mod module path of record; pluginsgen reads it for the compiled-in wiring). - charly.yml: migrate the root schema 2026.232.0520 -> 2026.261.1747 so a post-spec#163 charly accepts the project. - .github/workflows/deploy.yml: pin charly v2026.238.1242 (pre-spec#163, cannot reject `builtin`) -> v2026.269.0131, making the repo's own `charly box validate` gate fail-without / pass-with the change. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no embedded directives, no scope mismatch, no secrets/egress, no guardrail weakening (the CI-pin bump tightens the manifest gate; the new Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
… source-fixed tags (#59) The charly-marketplace closure still pinned the two plugin candies at the tags that declare the `source: builtin` sentinel retired by opencharly/spec#163. A charly carrying spec#163 hard-errors on that value, so this closure failed CUE validation. - plugin-agentteams/candy/plugin-agentteams: v2026.237.1414 -> v2026.269.2113 - plugin-dsh/candy/plugin-dsh: v2026.239.1623 -> v2026.269.2116 Both new tags are the merged HEADs of opencharly/plugin-agentteams#5 and opencharly/plugin-dsh#8, which replace `source: builtin` with the module ref. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
Replace the retired
plugin.source: builtinwith the module ref in this candy, and make the repo's own manifest gate actually exercise it.opencharly/spec#163retired thesource: builtinsentinel —plugin.sourceis nowsource: #GithubRef(no default). A post-spec#163 charly hard-errors on the old value, so the repo's owncharly box validatestep could not fail on the change while it ran a pre-spec#163 pin (v2026.238.1242). This PR replaces the retired value, migrates the root schema to the post-spec#163 floor, and pins the repo's CI charly to a release that carries the retirement — making the repo's own gate fail-without / pass-with the change.The exact change
candy/plugin-dsh/charly.ymlsource: builtinsource: github.com/opencharly/plugin-dsh/candy/plugin-dshcharly.yml(root schema)version: 2026.232.0520version: 2026.261.1747(charly migrate).github/workflows/deploy.yml(CI charly pin)v2026.238.1242v2026.269.0131The new
sourceis the candy's own Go module path of record (head -1 candy/plugin-dsh/go.mod→module github.com/opencharly/plugin-dsh/candy/plugin-dsh). It is behaviour-bearing, not cosmetic:charly/internal/pluginsgen/main.go:185-233(pluginModulePath/readPluginSource) readsplugin.sourceas the compiled-in plugin's module path, andcharly/plugin_loader.go:1206-1264skipsbuiltinwhile serving the compiled-in provider for the external ref via theoriginBuiltincoexist-switch. The value therefore must name a resolvable module path — and it does:The root migration and the CI-pin bump are coupled: a
2026.261.1747root is rejected by the oldv2026.238.1242charly ("config newer than supported"), so the pin moves with the root.How tested
The repo's own gate now exercises the change — charly
v2026.269.0131Old value (origin/main +
charly migrate), the exact#GithubRefrejection (exit 1):This branch (exit 0):
That is exactly the CI step
.github/workflows/deploy.yml("The candy manifest validates at the pinned charly"), now run atv2026.269.0131against a gate that genuinely fails onbuiltin.R10 — the composing bed
check-dsh-pod(disposable: true) — PASS on the shipped charlycheck-dsh-podis the R10 bed that composes the dsh stack and drives the compiled-indsh:verb andcharly dsh statuscommand live (it lives at its artifact owneropencharly/pod-dshsincepod-dsh#4). Run end-to-end on the shippedv2026.269.0131release binary:Every step is present with no failed step. The bed is
disposable: true(kind:pod,check-dsh-pod), and the fresh-rebuild confirmation is the[update]→[rebuild-ready]→[check-live-rebuild]sequence (the deployed artifact is rebuilt and re-evaluated live). Thecheck-live/check-live-rebuildsteps dispatch the fourdsh:verb methods in-box and the compiled-incharly dsh statuscommand over the reverse channel — the provider this candy declares.One non-fatal pre-run note: the run emitted
could not clean charly.yml ... schema 2026.261.1747 is required (found 2026.249.2125)while reconciling a stale leftover temp bed-config from an earlier run (/tmp/charly-bed-cfg-check-dsh-pod-3968226086/charly.yml). The current run generated its own temp config at2026.261.1747(/tmp/charly-bed-cfg-check-dsh-pod-1630775627/charly.yml) and completed; charly's own diagnostics count it as 0 warnings.RCA — the earlier
deploy-add/configfailure (no parking split)An earlier run surfaced a
configfailure in this bed:RCA: the out-of-process
plugin-deploy-podservingconfig-setupwas a stale cached build (spec 249 era). It self-loads the project config throughloaderkit, whoseGateSchemaVersionrejects the NEWER project and degrades the deploy key to the image name — the exact symptomresolve_ref.godocuments. The mergedopencharly/plugin-deploy-pod#12(v2026.266.1057) fixes it. This re-run resolvesplugin-deploy-pod v2026.269.1234and[config]PASSES (above). This is not a defect in this repo's manifest and it is not deferred; this PR advancesopencharly/charly#672(the pin bump that consumes the retired-sentinel fixes).R5 sweep — no live
source: builtinremainsThe single remaining hit is historical CHANGELOG narrative, not a live manifest value.
Rulebook compliance
root-cause-analyzer,strict-policy,cutover-policy,plugin,git-workflowloaded first.#GithubRefschema rejection, the earlierconfigfailure, and the stale-temp-config warning were each root-caused before remediation (theconfigfailure to the staleplugin-deploy-pod, fixed by the mergedplugin-deploy-pod#12).configfailure is fixed by a named merged PR, not parked.sourceequals the singlego.modmodule path.feat/branch, PR-only, no force-push.charly box validatevalidates the emitted manifest; the bed validates the live stack.v2026.269.0131.check-dsh-pod(disposable: true): PASS (steps=14),ok: true, 0 errors, 0 warnings.Change classification
charly box validateatv2026.269.0131(fail-without / pass-with) + the composing bedcheck-dsh-pod(disposable: true) — PASS (steps=14),ok: true.fully tested and validated.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)