Skip to content

fix(deps): pin plugin-box v0.2026327.2335, the release that stops INFO diagnostics gating a build - #1267

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/plugin-box-pin
Nov 24, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/plugin-box-pin

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #1266. charly's compiled-in plugin-box was a day behind the release that
carries a shipped-behaviour fix:

module from to
github.com/opencharly/plugin-box/candy/plugin-box v0.2026326.938 v0.2026327.2335

v0.2026327.2335 (git tag v2026.327.2335, 8cef2effe) is opencharly/plugin-box#100: charly box validate no longer exits non-zero on an INFO-tier diagnostic. Before it, an already-arbitrated
candy-version skew — a diagnostic the schema model classifies as information, not an error — gated
a build with exit 1. The pinned version predated it, so the binary still carried the old severity
rule even though the fix had shipped and been tagged.

Nothing else changes: no charly source edit, no other module moves. Found by checking that every fix
from the per-host config session was actually reachable from a shipped binary — spec
v0.2026328.1115, sdk v0.2026328.1130 and charly v2026.328.1249 were landed and pinned; this one
was not.

How tested

$ git rev-parse HEAD
3c0c5554b7b96ccb7b9bd09915bbec2e029b0d61

$ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci GOTOOLCHAIN=go1.26.8 go test ./charly/...
ok  	github.com/opencharly/charly/charly	283.281s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	155.028s

$ for d in tools/*/; do [ -f "$d/go.mod" ] && ( cd "$d" && GOWORK=off go test -count=1 ./... ); done
ok  	github.com/opencharly/charly/tools/gomod-canonical	0.002s
ok  	github.com/opencharly/charly/tools/ledger-validate	0.002s
(the other three tools modules have no test files)

$ gofmt -l charly tools
(no output)

$ ( cd charly && golangci-lint run ./... )    # v2.13.2; then each tools/* module
0 issues.   (x6: charly/ + the five tools modules)
CI_REPRO_OK

$ ./scripts/bootstrap-charly.sh
check-generated-clean: NOTICE — charly/plugins_refs_generated.go differs because it was indexed from a source this checkout does not pin
bootstrap-charly: built ./bin/charly (2026.328.1249)

$ ./bin/charly version
2026.328.1249

The check-generated-clean NOTICE is upstream corpus drift, not this pin — and here is the proof.
plugins_refs_generated.go maps "<class>:<word>" to a candy REF (no versions), and
plugins.go is the compiled-in wiring. Regenerating both with the corpus the build uses, into a
scratch dir:

$ go run ./internal/pluginsgen -root .. -config charly/charly.yml -out .pg_tmp/plugins.go \
    -gowork .pg_tmp/go.work -gowork-dev .pg_tmp/go.work.dev \
    -outrefs .pg_tmp/refs.go -corpus charly/plugin_corpus.txt
$ diff .pg_tmp/refs.go charly/plugins_refs_generated.go
118d117
< 	"kind:os":                   "github.com/opencharly/plugin-distro/candy/plugin-distro",
125d123
< 	"kind:source":               "github.com/opencharly/plugin-distro/candy/plugin-distro"
$ diff .pg_tmp/plugins.go charly/plugins_generated.go
(no output)
$ diff .pg_tmp/refs.go charly/plugins_refs_generated.go | grep -c plugin-box
0
$ cd charly && git status --short
(no output)

The only difference is TWO plugin-distro rows the committed index lacks: pluginsgen indexes each
corpus repo at its DEFAULT BRANCH (the corpus is a repo list, not a pin list), so the index tracks
upstream tips, not module pins. Zero plugin-box lines differ and plugins.go is byte-identical,
so this pin provably does not touch either generated file; the build restores the tracked copy and
leaves the tree clean. The residual — the committed index lagging the corpus by those two rows — is
filed as #1268.

Attribution tier: analysed on a live system, not fully tested and validated. The pin, the whole
CI job and the R9 build all ran on this tree, but the BEHAVIOUR this pin carries — box validate
turning an INFO-tier diagnostic into a notice: line plus exit 0 — never executed against the fresh
build: three live two-tag fixtures were built and validated (a project naming two tags of the same
candy, which is the skew's shape), and the resolver produced no INFO diagnostic to exercise
(charly box validate: OK — checked 36 candies, 6 distros, 7 builders; 0 warnings, 0 errors,
rc=0, no notice: line). The behavioural proof therefore remains opencharly/plugin-box#100's own
test; what ran here is the resolution, the gate and the build.

The fix's own proof (a test that exits non-zero on INFO and zero on ERROR) is in
opencharly/plugin-box#100, whose CI gate ran there. What this PR proves is that the pin builds,
that the whole repo CI job passes on it, and that the rebuilt binary reports its own CalVer.

Rulebook compliance

  • R0 — /charly-internals:go, /charly-internals:git-workflow, /charly-internals:strict-policy.
  • R1 — the finding is filed (charly pins plugin-box a day behind the release that carries the INFO-tier box-validate fix #1266) and fixed here in the same change: the
    binary's pin is the defect, the bump is the remedy, and the gap was invisible until someone asked
    whether the fix shipped.
  • R2 — nothing duplicated: the severity rule lives in the plugin, and charly only needs to pin
    it.
  • R3 — no workaround: the version is a published tag, resolved from the module proxy.
  • R4 — no documented command changes; box validate keeps its documented contract and gains
    the correct severity handling.
  • R5 — nothing is superseded beyond the one pin.
  • R6 — no destructive action; branch off fresh origin/main.
  • R7 — the changed behaviour is proven by plugin-box#100's own tests; this PR proves the pin
    and the build.
  • R8 — N/A: no live-service boundary.
  • R9 — the R9 worktree build (scripts/bootstrap-charly.sh) produces the binary this pin
    describes, and bin/charly version reports it.
  • R10 — the change class is a module pin advance: the gate is the repo's go CI job (root
    go test ./charly/..., the tools/* GOWORK=off sweep, gofmt, per-module golangci-lint)
    reproduced verbatim on this tree, plus the R9 build.
  • R11 — no shape, field, kind, verb or capability change; the plugin's own schema is untouched.

Filed issues

Change classification

  • Class: dependency pin advance (one compiled-in plugin module) in charly/go.mod/go.sum.
  • Impact: charly box validate exits 0 on INFO-tier diagnostics and non-zero on ERROR-tier
    ones — the behaviour plugin-box#100 shipped.
  • Rollback: revert the commit; the binary returns to the previous severity rule.

Agent: ollama-vision-models · Claude Code session c765900b-523f-458a-b38f-a0f925f2a9b9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…O diagnostics gating a build

charly required github.com/opencharly/plugin-box/candy/plugin-box v0.2026326.938, but
opencharly/plugin-box#100 — `charly box validate` exits 0 on an INFO-tier diagnostic instead of
gating the build with exit 1 on an already-arbitrated candy-version skew — shipped as git tag
v2026.327.2335 / module v0.2026327.2335 (8cef2effe), the latest the proxy serves.

Found by checking that every fix from the per-host config session is reachable from a shipped
binary: spec v0.2026328.1115, sdk v0.2026328.1130 and charly v2026.328.1249 were landed and pinned
(#1265); this one was not, so the compiled-in plugin still carried the old
severity rule.

Gate on this tree: the repo's `go` CI job reproduced verbatim — root `go test ./charly/...`
(charly/ 283.3s, pluginsgen 155.0s), the `tools/*` GOWORK=off sweep, `gofmt -l charly tools`
empty, golangci-lint v2.13.2 0 issues over charly/ and all five tools modules — plus the R9
worktree build.

Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9`
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 3ec8d0a034e4daf56112c27c32f8e5fa0e178567 (branch: fix/plugin-box-pin)

Change class: code/config — dependency pin advance (2 files: charly/go.mod, charly/go.sum). Not docs-only.

Security screen: PASS — diff is exactly the described pin bump; no secrets, no guardrail weakening, no scope mismatch, no supply-chain surprise (published tag).

Blocks

  1. A3 (with A1) — attribution tier is inflated; the changed behaviour never executed against the fresh rebuild. The body claims *Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)*, but its own "How tested" section states: "What this PR proves is that the pin builds, that the whole repo CI job passes on it, and that the rebuilt binary reports its own CalVer." The behavioural change this pin carries (charly box validate exiting 0 on an INFO-tier diagnostic / non-zero on ERROR) was not run against the fresh ./bin/charly (2026.328.1249); only charly version executed. Per A3, fully tested and validated requires the NEW/CHANGED code path to have EXECUTED against the fresh rebuild — a change whose changed branch never ran live is at most analysed on a live system. The A1 "How tested" block is also missing the disposable target and the confirmation that the changed path executed live. Fix: run charly box validate on a candy that produces an INFO-tier diagnostic against the new pin and paste the exit-0 output (and an ERROR case for non-zero), or lower the tier to analysed on a live system. Also corroborate the provider/model name (ollama-cloud/deepseek-v4.1-flash) against the actual authoring runtime — a guessed/config-read name is itself an A3 defect.

  2. R1 / R10 — surviving NOTICE in the gate output, with no RCA and no filed issue. The pasted ./scripts/bootstrap-charly.sh output contains:
    check-generated-clean: NOTICE — charly/plugins_refs_generated.go differs because it was indexed from a source this checkout does not pin.
    This is a divergence of a generated file from its source, pasted as if benign. R10 requires the fresh rebuild to be at ZERO warnings, and R1 requires every failure/warning/divergence in the evidence to carry an RCA plus an in-tree fix or a filed issue under ## Filed issues. The body does neither: it neither confirms plugins_refs_generated.go is consistent with the new plugin-box pin (regenerating and committing it if it tracks the pin), nor gives an RCA, nor files an issue. This is the forbidden "paste-and-park" framing. Fix: determine whether plugins_refs_generated.go tracks the plugin-box pin; if so, regenerate and commit it in this change; otherwise paste a real RCA showing it is genuinely unaffected by this pin and file the residual under ## Filed issues with a <repo>#<n>.

Verdict: BLOCK


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

View action run

… code change

Round-1 review fixes.

- A3: the tier was `fully tested and validated`, which requires the changed BEHAVIOUR to execute
  against the fresh rebuild. It did not: `box validate` turning an INFO diagnostic into a
  `notice:` line plus exit 0 was never exercised, because three live two-tag fixtures (a project
  naming two tags of one candy — the skew's shape) resolved and validated without the resolver
  emitting any INFO diagnostic (rc=0, zero `notice:` lines). The behavioural proof stays
  opencharly/plugin-box#100's test; what ran here is the resolution, the whole CI go job and the R9
  build. Tier lowered to `analysed on a live system`, per the reviewer's stated ceiling.
- R1/R10: the `check-generated-clean` NOTICE is now RCA'd with a measurement rather than explained
  in prose. Regenerating both generated files with the build's own corpus into a scratch dir: the
  refs table differs by exactly TWO `plugin-distro` rows (`kind:os`, `kind:source`) because
  pluginsgen indexes corpus repos at their DEFAULT BRANCHES, `plugins.go` is byte-identical, and
  `diff | grep -c plugin-box` is 0 for both files — so this pin provably cannot have produced the
  divergence. The residual (the committed index lagging the corpus by those two rows) is filed as
  #1268 under `## Filed issues`.

Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9`
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

Round-2 RCA and fixes — both blocks fixed; no code changed, so the tree is unchanged and the head moved only by an empty tier-correction commit.

1. A3 — the tier was inflated, and the fix is a measurement (corrected)

You are right. fully tested and validated requires the changed BEHAVIOUR to run, and I only ever
ran charly version. The behaviour is box validate turning an INFO-tier diagnostic into a notice:
line plus exit 0; proving it needs a real INFO diagnostic, and I built the shape that produces one —
a project naming the same candy at two different tags inside one box scope:

$ cat candy/a1/charly.yml
a1:
    candy:
        require:
            - '@github.com/opencharly/layer-charly:v2026.327.0856'
        plan: [... run + check ...]
$ cat candy/a2/charly.yml          # same repo, a second tag
$ /…/bin/charly box validate
charly box validate: OK — checked 36 candies, 6 distros, 7 builders; 0 warnings, 0 errors
rc=0        # and: grep -c "notice:" → 0

Three fixtures (layer-gh tags, plugin-box tags, layer-charly tags) all resolved and validated; none
made the resolver emit the skew diagnostic, so the INFO branch still never ran. Per your instruction
the tier is now analysed on a live system, in both the body and this round's trailer, and the
body says exactly what ran (the pin resolves and downloads, the whole CI go job, the R9 build, the
live validation) and what did not (the INFO branch). The behavioural proof remains
opencharly/plugin-box#100's test.

Missed control: I let the tier follow the gate rather than the claim, and the body's own
sentence ("What this PR proves is … the pin builds … the CI job passes") already said so — the trailer
contradicted the evidence in the same document. The control: the tier must be derived from the
"How tested" block, sentence by sentence, not from the fact that a gate went green.

2. R1/R10 — the NOTICE is measured now, and the residual is filed

plugins_refs_generated.go carries no versions (it maps "<class>:<word>" → a candy ref) and
plugins.go is the compiled-in wiring. Regenerating both with the build's own corpus into a scratch
dir and diffing:

$ diff .pg_tmp/refs.go charly/plugins_refs_generated.go
118d117
< 	"kind:os":                   "github.com/opencharly/plugin-distro/candy/plugin-distro",
125d123
< 	"kind:source":               "github.com/opencharly/plugin-distro/candy/plugin-distro"
$ diff .pg_tmp/plugins.go charly/plugins_generated.go
(no output)
$ diff .pg_tmp/refs.go charly/plugins_refs_generated.go | grep -c plugin-box
0
$ git status --short
(no output)

So: pluginsgen indexes each corpus repo at its default branch, the committed index lags by
exactly two plugin-distro rows, and no plugin-box line differs in either file — this pin
cannot have produced the divergence. bootstrap-charly.sh restores the tracked copy (that is what
the NOTICE says), and the tree stays clean. The residual — the index needing its own regeneration —
is filed as #1268 and listed under ## Filed issues.

Missed control: I pasted build output containing a NOTICE and called the gate green. A NOTICE in
pasted evidence is a divergence to explain with a measurement, not to leave in the transcript.

Agent: ollama-vision-models · Claude Code session c765900b-523f-458a-b38f-a0f925f2a9b9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Agent: ollama-vision-models · Claude Code session c765900b-523f-458a-b38f-a0f925f2a9b9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 3c0c5554b7b96ccb7b9bd09915bbec2e029b0d61 (branch: fix/plugin-box-pin)

Security screen: PASS — diff is exactly the described pin bump (go.mod +1/-1, go.sum +2/-2); no secrets, no guardrail/DESIGN/validator-spec change, no scope mismatch, published tag.
Checklist: All applicable rules PASS or NA (change class: code/config dependency pin advance; ADE/SDD/R11 shape checks NA — no candy/schema/cue/proto/DESIGN change).

Comments considered:

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 24, 2026 15:15
@github-actions
github-actions Bot merged commit 3e259a5 into main Nov 24, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 24, 2026
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.

charly pins plugin-box a day behind the release that carries the INFO-tier box-validate fix

1 participant