Repository navigation
fix(loader): a dev/worktree charly must not load the installed package's plugins (#328) - #415
Conversation
…e's plugins (#328) A worktree-built charly reached into /usr/lib/charly/plugins — the FHS path belonging to the system-installed package — and loaded plugin binaries built against a different charly version (six weeks of API drift). bakedPluginDirs() now includes the FHS path only when the running binary is itself a packaged install (/usr/bin or /usr/local/bin); a dev/worktree binary skips it and emits a one-time loud warning when the installed package's plugins exist. Fixes #328
Review — BLOCKHead SHA: Change class: code change (Go core loader fix + tests) Security screen: PASS — no secrets, exfiltration, scope mismatch, weakened guardrails, or supply-chain changes. The change does exactly what the description claims. Blocks
Placement: CORRECT — the change lives in Tool-limited note (not a block): the diff introduces Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…e box/fedora submodule is absent The fixture is the box/fedora SUBMODULE — absent in a shallow clone or a fresh checkout before `git submodule update --init`. A fixture-dependent differential test must SKIP when its fixture is not present, not hard-fail on an uninitialized submodule (which reads as a spurious regression and misleads a fresh CI run). Addresses the pr-validator R2 finding on PR #415: the test is now fixed in-tree (it passes with the submodule initialized and skips without it) rather than dismissed as pre-existing.
Review — BLOCKHead SHA: Change class: code change (Go core loader fix + tests) Security screen: PASS — no secrets, exfiltration, scope mismatch, weakened guardrails, or supply-chain changes. The diff does exactly what the description claims. Blocks
Comment dispositions
Placement: CORRECT — the change lives in Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code change (Go core loader fix + tests) Security screen: PASS — no secrets, exfiltration, scope mismatch, weakened guardrails, or supply-chain changes. The diff does exactly what the description claims. Blocks
Comment dispositions
Placement: CORRECT — the change lives in Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code change (Go core loader fix + tests) Security screen: PASS — no secrets, exfiltration, scope mismatch, weakened guardrails, or supply-chain changes. The diff does exactly what the description claims. No embedded directives aimed at the reviewer. Blocks
Comment dispositions
Placement: CORRECT — the change lives in Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Maintainer signoff — R10 bed requirement waived for this changeChange: charly/plugin_loader.go — a dev/worktree charly must not silently load plugins from the installed package's FHS path (/usr/lib/charly/plugins). R10 bed attempted: Bed result: the bed reached check-live and the verdict/summary path executed (the repo-override line printed), but 3 of 8 checks FAILED on UNRELATED commands — Signoff basis: the changed path was exercised live via strace (the dev binary no longer opens /usr/lib/charly/plugins) plus unit tests (TestMaterializeSeam etc. — the diff adds the skip-guard fix for the box/fedora submodule). The R10 bed's unrelated failures (clean hang + status slowness) are tracked defects (clean-dry-run hang is a new finding; status slowness is #208), not regressions from this change. Waiver: per the Phase-4 distro-sweep block on the full bed roster, I sign off the disposable-target bed requirement for THIS change, contingent on the unrelated bed failures being tracked (they are: #208 in spec#62; the clean-dry-run hang is being filed). — atrawog (maintainer) |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no scope mismatch (diff matches description exactly), no weakened guardrails, no supply-chain changes, no embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Change class: code change (Go core loader fix + tests). Placement: CORRECT — the change lives in Comment dispositions:
Tool-limited note (not a block): the diff uses Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
The merge left a trailing comment line abutting the closing brace of the previous function; gofmt wants a blank line between them. CI's gofmt gate caught it. No behaviour change - whitespace only.
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no scope mismatch (diff matches description exactly), no weakened guardrails, no supply-chain changes, no embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Change class: code change (Go core loader fix + tests). Placement: CORRECT — the change lives in Comment dispositions:
Tool-limited note (not a block): the diff uses Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…hain's pins (#1230) * feat(plugins): publish the content kinds, and adopt the owned-skill chain's pins The host half of ops.OpContent (opencharly/sdk#598), and the five pins of the chain that installs a composed candy's owned skills. - buildCapMeta records ProvidedCapability.contents for a class:kind capability (capMeta.IsContentKind implements spec.ContentKindCarrier). The validate-word-sets leg publishes the declaring kind words, sorted, as content_kinds. They are read off each provider's own capability, never a per-kind branch. That set is what plugin-build's render-prep and plugin-box's validate ask. - The charly-skill-shelf's validate-satisfying no-op run: step is deleted: an owned skill node is install content now. - Pins, all merged and tagged: spec v0.2026325.913 (#415), sdk v0.2026325.921 (#607), plugin-box v0.2026325.928 (#92), plugin-build v0.2026325.959 (#62, #63), plugin-harness-kind v0.2026325.1012 (#13). They move together: the old plugin-box pin calls deploykit.CollectSkillBodies, which the new sdk deletes. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system) * fix(deps): adopt the shared sdk/spec pins in the tools modules The required go check failed TestContractPinsMatchShared: the tools/generate-packages, tools/golden-cloudinit and tools/golden-compile modules still required sdk v0.2026324.1928 / spec v0.2026324.1914 while charly/go.mod moved to sdk v0.2026325.921 / spec v0.2026325.913. The previous commit moved the pins with go get inside charly/ only. charly task mods-tidy adopts the shared pins in every lockstep module and tidies them. The whole ci.yml go job passes locally: go test ./charly/..., every tools/* module (GOWORK=off -count=1), gofmt over charly and tools, and golangci-lint over both. Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942 Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)
Summary
A worktree-built (dev) charly binary silently loaded plugin binaries from the installed package's
/usr/lib/charly/plugins— the FHS path belonging to a different charly install. When the two disagree on the plugin API version, the run emits an error pair per attempt and continues degraded (six weeks of API drift, issue #328).Fix:
bakedPluginDirs()now includes the FHS path only when the running binary is itself a packaged install (/usr/binor/usr/local/bin— where the charly candy's distro package places the binary and bakes plugins). A dev/worktree binary skips the FHS path entirely and emits a one-time loud warning when the installed package's plugins exist, so the skip is visible instead of silent.CHARLY_PLUGIN_DIRandCHARLY_PLUGIN_ONLY=1behavior is unchanged.How tested
Unit tests (new + updated, all pass):
Fixture test fixed in-tree (R2). The previously-dismissed
TestMaterializeSeam_RealFixtureDeterministicfailure was an uninitialized-submodule environment artifact, not a code defect. It now skips when thebox/fedorasubmodule is absent and passes when it is initialized:Live strace — BEFORE (baseline binary): the worktree-built charly opens the FHS path and reads the installed
.providersfiles (the dir + 10 providers):Live strace — AFTER (fixed binary): the FHS path is only stat'd for the warning check; NO
.providersfile is read, and the warning is emitted:R10 note: the disposable R10 bed run is blocked by the Phase-4 distro sweep — the check beds cannot resolve candies until the box-repo ref sweep lands (tracked: the Phase-4 box-repo track, charly #409; the sweep PRs are open). The changed path (plugin loading) is exercised live by the strace before/after above and by the unit tests. Tier downgraded accordingly.
R10 — disposable-target bed run (the blocking finding, now supplied)
The review blocked this for having no fresh-rebuild run on a
disposable: truetarget, androuted the bed to the Phase-4 track. That block is now resolvable, and here is the run.
Why it could not be supplied before:
charly box buildvalidates the WHOLE project beforebuilding any box, and charly's project carried 33 validation errors — so every bed in this repo
aborted during image-build without reaching its box.
charly#439fixed that class;charly box validatenow exits 0 on main, and beds run again.The changed code path fires live in this binary — this is the new
packagedInstall()branchdeciding not to load the FHS plugin dir:
A full disposable-pod bed, driven end to end by that binary — a Fedora pod fixture composing a
candy with four
download:install steps, so plugin resolution, image build, deploy, checks andthe destroy-and-rebuild leg all run through the changed loader:
The bed passing is the substantive result: with the FHS plugin dir deliberately skipped, the dev
binary still resolved every plugin verb the bed needs from its own search path. If the change had
over-pruned, resolution would fail here rather than warn.
Re-verified on the final pushed tree, worktree clean, after merging current
origin/main:Rulebook compliance
TestMaterializeSeam_RealFixtureDeterministicfailure is FIXED in-tree (skip-guard for the missing submodule fixture); not dismissedbakedPluginDirs) owns the behavior; the packaged-install check is a single helpergit statusclean before commit; no force-push; PR-only landingChange classification
analysed on a live system— the changed branch executes live (warningabove) and a disposable-target bed passes end to end against a fresh rebuild. I keep this tier
rather than raising it: the bed proves the DEV path, while the packaged-install path
(
/usr/bin/charlyloading/usr/lib/charly/plugins) is exercised only by the distro-packageVM beds, which this run did not include.
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)