Skip to content

fix(dsh): replace the retired plugin.source: builtin and gate it in-repo - #8

Merged
github-actions[bot] merged 6 commits into
mainfrom
fix/retired-source-builtin-gated
Sep 26, 2026
Merged

github-actions[bot] merged 6 commits into
mainfrom
fix/retired-source-builtin-gated

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Supersedes opencharly/plugin-dsh#7, which the validator auto-closed at the 5-BLOCK threshold. This branch carries the same manifest fix plus the in-repo gate (root-schema migration + CI pin) and a green R10 on the shipped charly.

Summary

Replace the retired plugin.source: builtin with the module ref in this candy, and make the repo's own manifest gate actually exercise it.

opencharly/spec#163 retired the source: builtin sentinel — plugin.source is now source: #GithubRef (no default). A post-spec#163 charly hard-errors on the old value, so the repo's own charly box validate step 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

file before after
candy/plugin-dsh/charly.yml source: builtin source: github.com/opencharly/plugin-dsh/candy/plugin-dsh
charly.yml (root schema) version: 2026.232.0520 version: 2026.261.1747 (charly migrate)
.github/workflows/deploy.yml (CI charly pin) v2026.238.1242 v2026.269.0131

The new source is 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) reads plugin.source as the compiled-in plugin's module path, and charly/plugin_loader.go:1206-1264 skips builtin while serving the compiled-in provider for the external ref via the originBuiltin coexist-switch. The value therefore must name a resolvable module path — and it does:

$ go list -m -versions github.com/opencharly/plugin-dsh/candy/plugin-dsh
github.com/opencharly/plugin-dsh/candy/plugin-dsh v0.2026237.1419 v0.2026239.1623 v0.2026242.505 v0.2026242.528 v0.2026266.2321 v0.2026268.1605

The root migration and the CI-pin bump are coupled: a 2026.261.1747 root is rejected by the old v2026.238.1242 charly ("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.0131

Old value (origin/main + charly migrate), the exact #GithubRef rejection (exit 1):

$ charly -C dsh-old box validate
charly: error: command "validate": validation error: candy "plugin-dsh": CUE schema: .../candy/plugin-dsh/charly.yml: candy "plugin-dsh": 2 errors in empty disjunction:
               plugin: field not allowed:
                   .../candy/plugin-dsh/charly.yml: plugin-dsh:25:1
               plugin.source: invalid value "builtin" (out of bound =~"^github\\.com/[^/]+/[^/]+(/.+)?$"):
                   2330:22
                   .../candy/plugin-dsh/charly.yml: plugin-dsh:29:13
                   2307:10
$ echo $?
1

This branch (exit 0):

$ charly -C . box validate
charly box validate: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors
$ echo $?
0

That is exactly the CI step .github/workflows/deploy.yml ("The candy manifest validates at the pinned charly"), now run at v2026.269.0131 against a gate that genuinely fails on builtin.

R10 — the composing bed check-dsh-pod (disposable: true) — PASS on the shipped charly

check-dsh-pod is the R10 bed that composes the dsh stack and drives the compiled-in dsh: verb and charly dsh status command live (it lives at its artifact owner opencharly/pod-dsh since pod-dsh#4). Run end-to-end on the shipped v2026.269.0131 release binary:

$ /tmp/opencode/charly269/charly-linux-amd64 -C pod-dsh check run check-dsh-pod
Resolved @github.com/opencharly/plugin-deploy-pod -> v2026.269.1234 (latest tag)
Resolved @github.com/opencharly/plugin-vm -> v2026.269.2025 (latest tag)
plugin github.com/opencharly/plugin-deploy-pod/candy/plugin-deploy-pod: served from ...-855b8808779ccbf6 (build stamp 00068d540469c2f3); source .../[email protected]...
Removed /home/atrawog/.config/containers/systemd/charly-check-dsh-pod.container
charly check run check-dsh-pod: [image-build] START (charly box build; log: .check/check-dsh-pod/2026.269.2046/image-build.log)
charly check run check-dsh-pod: [image-build] PASS after 8m45.505s [allowlisted=1 cache=9/150]
charly check run check-dsh-pod: [check-image] START (charly check box; log: .check/check-dsh-pod/2026.269.2046/check-image.log)
charly check run check-dsh-pod: [check-image] PASS after 56.245s [allowlisted=1]
charly check run check-dsh-pod: [deploy-add] START (charly deploy add; log: .check/check-dsh-pod/2026.269.2046/deploy-add.log)
charly check run check-dsh-pod: [deploy-add] PASS after 5.6s [allowlisted=1]
charly check run check-dsh-pod: [config] START (charly config; log: .check/check-dsh-pod/2026.269.2046/config.log)
charly check run check-dsh-pod: [config] PASS after 6.447s [allowlisted=1]
charly check run check-dsh-pod: [start] START (charly start; log: .check/check-dsh-pod/2026.269.2046/start.log)
charly check run check-dsh-pod: [start] PASS after 5.114s [allowlisted=1]
charly check run check-dsh-pod: [bring-up-members] START
charly check run check-dsh-pod: [bring-up-members] PASS after 113ms
charly check run check-dsh-pod: [check-live] START (charly check live; log: .check/check-dsh-pod/2026.269.2046/check-live.log)
charly check run check-dsh-pod: [check-live] PASS after 1m13.358s [allowlisted=1]
charly check run check-dsh-pod: [feature-run] START (charly check feature; log: .check/check-dsh-pod/2026.269.2046/feature-run.log)
charly check run check-dsh-pod: [feature-run] PASS after 32.91s [allowlisted=1]
charly check run check-dsh-pod: [update] START (charly update; log: .check/check-dsh-pod/2026.269.2046/update.log)
charly check run check-dsh-pod: [update] PASS after 25.611s [allowlisted=5]
charly check run check-dsh-pod: [rebuild-ready] START
charly check run check-dsh-pod: [rebuild-ready] PASS after 3.292s
charly check run check-dsh-pod: [check-live-rebuild] START (charly check live; log: .check/check-dsh-pod/2026.269.2046/check-live-rebuild.log)
charly check run check-dsh-pod: [check-live-rebuild] PASS after 1m12.461s [allowlisted=1]
charly check run check-dsh-pod: [feature-run-rebuild] START (charly check feature; log: .check/check-dsh-pod/2026.269.2046/feature-run-rebuild.log)
charly check run check-dsh-pod: [feature-run-rebuild] PASS after 32.122s [allowlisted=1]
charly check run check-dsh-pod: [cleanup] START (charly remove; log: .check/check-dsh-pod/2026.269.2046/cleanup.log)
charly check run check-dsh-pod: [cleanup] PASS after 46.804s [allowlisted=1]
charly check run check-dsh-pod: [cleanup-members] START
charly check run check-dsh-pod: [cleanup-members] PASS after 0s
charly check run check-dsh-pod: PASS (steps=14)
$ echo $?
0
$ grep -E '^ok:|errors:|warnings:' pod-dsh/.check/check-dsh-pod/2026.269.2046/summary.yml
ok: true
  errors: 0
  warnings: 0

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). The check-live / check-live-rebuild steps dispatch the four dsh: verb methods in-box and the compiled-in charly dsh status command 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 at 2026.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 / config failure (no parking split)

An earlier run surfaced a config failure in this bed:

[deploy-add] PASS ... Overlay image ready: dsh-app:check-dsh-pod-<calver>
[config]     FAIL ... deploy:pod config: InvokeProvider deploy:pod op=config-setup:
                    rpc error: code = Unknown desc = image not found in local storage:
                    <key>:<key>-<calver>

RCA: the out-of-process plugin-deploy-pod serving config-setup was a stale cached build (spec 249 era). It self-loads the project config through loaderkit, whose GateSchemaVersion rejects the NEWER project and degrades the deploy key to the image name — the exact symptom resolve_ref.go documents. The merged opencharly/plugin-deploy-pod#12 (v2026.266.1057) fixes it. This re-run resolves plugin-deploy-pod v2026.269.1234 and [config] PASSES (above). This is not a defect in this repo's manifest and it is not deferred; this PR advances opencharly/charly#672 (the pin bump that consumes the retired-sentinel fixes).

R5 sweep — no live source: builtin remains

$ grep -rn "source: builtin" . --exclude-dir=.git
./CHANGELOG/2026.268.1605.md:30: ... (historical prose describing the RETIRED form — permitted per R5)

The single remaining hit is historical CHANGELOG narrative, not a live manifest value.

Rulebook compliance

  • R0 — root-cause-analyzer, strict-policy, cutover-policy, plugin, git-workflow loaded first.
  • R1 — the #GithubRef schema rejection, the earlier config failure, and the stale-temp-config warning were each root-caused before remediation (the config failure to the stale plugin-deploy-pod, fixed by the merged plugin-deploy-pod#12).
  • R2 — the manifest, root-schema migration, and CI pin are one atomic in-tree fix; the surfaced config failure is fixed by a named merged PR, not parked.
  • R3 — one canonical ref form; the source equals the single go.mod module path.
  • R4 — no workaround; the retired sentinel is replaced by the schema-required form, and the repo's gate is made real rather than bypassed.
  • R5 — the sweep above finds only historical CHANGELOG prose.
  • R6 — append-only commits on a feat/ branch, PR-only, no force-push.
  • R7 — the repo's own gate fails on the old value and passes on the new (pasted above).
  • R8 — charly box validate validates the emitted manifest; the bed validates the live stack.
  • R9 — the bed ran on the shipped release binary v2026.269.0131.
  • R10 — check-dsh-pod (disposable: true): PASS (steps=14), ok: true, 0 errors, 0 warnings.

Change classification

  • Change class: candy config (one manifest value) + repo config (root schema migration, CI charly pin).
  • Verification gate: the repo's own charly box validate at v2026.269.0131 (fail-without / pass-with) + the composing bed check-dsh-pod (disposable: true) — PASS (steps=14), ok: true.
  • Attribution tier: fully tested and validated.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

atrawog and others added 6 commits September 26, 2026 08:16
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)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 61cd30f2dbc4c1a98556509653406fb4ce1b4941 (branch: fix/retired-source-builtin-gated)

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 source points at the repo's own module, no new dependency).
Checklist: All applicable rules PASS or NA — body accounts for all 3 files, ends with the *Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)* footer; diff↔body table matches line-for-line; fail-without (builtin rejected at the pinned charly) / pass-with (box validate OK) reproduces the R7 claim; R10 composing bed check-dsh-pod (disposable: true, ok: true, 0/0, steps=14) is internally consistent (step list, calver, resolved refs); the earlier config FAIL is RCA'd to a stale plugin-deploy-pod and closed by the named merged plugin-deploy-pod#12, not parked; the lone source: builtin sweep hit is historical CHANGELOG prose; placement is CORRECT (manifest value stays in the candy, no core/sdk movement); no Go/SDD/generation surfaces touched.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 26, 2026 21:16
@github-actions
github-actions Bot merged commit 3c87f9c into main Sep 26, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 26, 2026
github-actions Bot pushed a commit to opencharly/distro-fedora that referenced this pull request Sep 26, 2026
… 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]>
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