Skip to content

build: pick up the plugin-box bake_plugin dedupe fix - #431

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/pick-up-bake-plugin-dedupe
Aug 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/pick-up-bake-plugin-dedupe

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Picks up opencharly/plugin-box#3, which made the bake_plugin dedupe symmetric.

validateRemoteCandies compares every remote candy against every other, so it visits a clashing
pair twice — (A,B) and (B,A) — but the bake relationship is one-directional: only the
baking repo holds the sibling carrying the ref. Testing one direction let the mirrored visit
through, so every baked plugin reported the identical conflict twice, in opposite orders.

Bumps the compiled plugin-box module to v0.2026241.5.

How tested

$ go test . -count=1
ok  github.com/opencharly/charly/charly  78.656s

$ golangci-lint run
0 issues.

The fix is verified present in the built binary, not merely in go.mod — plugin-box is a
compiled_plugins: entry, so a stale build would silently keep the old rule:

$ strings bin/charly | grep -c reportRemoteNameConflicts
2

That is the function the fix extracted; it is absent from the previous build.

Honest scope: this does NOT yet clear the conflicts downstream

Measured on distro-cachyos with this binary, the four plugin-mcp/plugin-record conflicts
still report. So the symmetric dedupe is necessary but not sufficient here, and I am not
claiming otherwise.

The likely reason, offered as a hypothesis rather than a finding: the dedupe needs the baking
sibling
(charly/candy/charly-mcp, which carries the bake_plugin: ref) to be present in the
scanned candy set. In that project charly itself does not resolve —

candy "charly-marketplace" candy: unknown candy "github.com/opencharly/charly"

— because candy/charly-marketplace references the charly repo root (@github.com/opencharly/ charly:vTAG) rather than a candy inside it. If charly's candies only partially load, the phantom
plugin-mcp provider appears without the sibling that would dedupe it. Both the marketplace's
canonical copy of that candy and distro-cachyos's use the same repo-root form, so this is a
question about that candy's intended shape, not a local mistake — which is why I have not changed
it here.

Rulebook compliance

  • R0 — /charly-internals:git-workflow loaded.
  • R1 — the persistence of the conflicts after the bump was investigated rather than assumed
    fixed; the binary was checked for the new symbol so "it didn't work" could be distinguished
    from "it wasn't built in".
  • R2 — nothing deferred; the remaining member is named above with what is known and what is
    only hypothesised, explicitly separated.
  • R4 — a dependency bump, not a local re-implementation of the rule.
  • R6 — git status checked. A stray box/cachyos gitlink change (from initialising that
    submodule while investigating) was explicitly excluded from the commit; the diff is
    go.mod + go.sum only.
  • R7 — suite, lint, and the binary-symbol check pasted.
  • R9/R10 — no bed exercises this; the module suite plus the symbol check is the honest gate.
    check-selkies-labwc-pod still cannot complete, for the reasons in the paired PRs.

Change classification

  • Class: dependency bump (one compiled plugin module).
  • Verification gate: module suite + lint + a binary-symbol check proving the new code shipped.
  • Attribution tier: analysed on a live system — the rebuilt binary was run against a real
    project with retained output, which is also how I established the bump is not sufficient alone.

Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)

opencharly/plugin-box#3 made the bake_plugin dedupe symmetric. The conflict loop
in validateRemoteCandies visits every clashing pair twice, but the bake
relationship is one-directional, so a baked plugin reported the identical
conflict twice in opposite orders.

Bumps the compiled plugin-box module to v0.2026241.5, which carries that fix.

Verified the fix is actually in the built binary, not merely in go.mod:

    strings bin/charly | grep -c reportRemoteNameConflicts
    2

(the function the fix extracted, absent from the previous build).
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: ea50948c904831b0a7a5b0c0ff49258eafd84eec

Security screen: PASS — diff is exactly go.mod/go.sum (2 files, 3+/1−), matching the description. No secrets, no exfiltration, no weakened guardrails, no unexpected refs. The plugin-box version pin moves to a newer tag of the same module; go.sum hashes are internally consistent (new h1 + unchanged go.mod hash).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body is complete: summary accounts for the full diff, How tested pastes go test . -count=1 (ok), golangci-lint run (0 issues), and a strings bin/charly | grep -c reportRemoteNameConflicts → 2 symbol check. Attribution tier analysed on a live system is honest and not inflated (the body explicitly does NOT claim the fix cleared the conflicts). Footer *Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)* is in the required form.
  • B5/R1 — No warnings in gate output; the persistence of the downstream conflicts is investigated (binary symbol check distinguishes "didn't work" from "wasn't built in"), with known vs hypothesized explicitly separated. No forbidden framing.
  • B6/R2 — The remaining member is named and analyzed, not parked as a vague follow-up; the reason for not changing the candy shape is given.
  • B10/R5 — Binary-symbol grep self-test pasted and consistent with the diff.
  • B11/R6 — git status checked; stray gitlink change explicitly excluded; diff is go.mod+go.sum only.
  • B12/R10 — Honest gate: no bed exercises this compiled-plugin bump; module suite + symbol check is appropriate. No bed claimed.
  • B16 — placement: CORRECT (dependency version bump in charly/go.mod; no code placement).
  • R3/R4/R4a/R8/R9/R13/R14/R15/R17/R18 — NA (no new code, no candy/schema/generated changes, no concurrency failures, no autonomous destroy, no Go code edits).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 00:18
@github-actions
github-actions Bot merged commit 4216a64 into main Aug 29, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@aitrawog
aitrawog deleted the fix/pick-up-bake-plugin-dedupe branch September 25, 2026 19:06
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