Repository navigation
feat: package the charly-lib shared plugin host + symlinks - #4
Conversation
Consume the charly-lib release (opencharly/sdk#256, packagekit hard cutover opencharly/sdk#258) instead of the per-plugin binaries tarball: fetch the pinned charly-lib host + .providers, build the plugins dir as charly-lib + plugin-<word> symlinks, and install the same layout for the local charly. The packaging then stages the host ONCE + symlinks, dropping the per-plugin re-linked SDK/spec closure from every package. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
…th doctor This install-test is a PACKAGING gate: assert the charly-lib host is installed ONCE and a plugin-<word> is a symlink to it. Replace the trailing `charly doctor` (whose bare-container missing-host-tool output is orthogonal host health, not this cutover's packaging signal) and drop the debug `ls -l plugins/amd64`. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
The shared-host assertion used `grep -v '\.providers$'` inside the single-quoted `bash -c '...'` install-test script, which broke the shell parse with "unexpected EOF while looking for matching `'`". Use double quotes so the outer single-quoted block stays balanced. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
The added comment used "cutover's" / "gate's" inside the single-quoted
`bash -c '...'` install-test, unbalancing the shell quotes ("unexpected EOF
while looking for matching quote"). Reworded apostrophe-free. Each workflow's
Install-test run block is now verified with `bash -n` before pushing.
Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Debian's install-test ran the `timeout 5 charly mcp serve` probe as a bare subshell then `serve=$?` — under the script's `set -e`, the EXPECTED exit 124 aborts before the capture, so the assertion could never pass. Use `( ... ) || serve=$?` (the same fix charly-arch's install-test carries), which captures 124 without aborting and still fails loudly on an early exit. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Blocks
Everything else cross-checked from the current diff/body is internally consistent and non-blocking: the Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Blocks
Everything else cross-checked from the current diff/body is internally consistent and non-blocking: the Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: CI workflow / packaging cutover — single file Blocks
Comment disposition. Comment Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI workflow / packaging cutover — single file Blocks
Comment disposition. Comment Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
…n .charly-lib Validator-driven hardening: (1) the layout-only assertion did not exercise plugin loading, so add a load assertion - `charly doctor` connects a baked plugin through the plugin-<word> symlink, asserted via the "served from baked binary" line and captured WITHOUT printing host-health noise; (2) debian/ubuntu upload the workspace root, so remove the new .charly-lib/ host staging before deploy. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: CI workflow / packaging cutover — single file Blocks
Comment disposition. Comments Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI workflow / packaging cutover — single file Blocks
Comment disposition. Comments Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: hook/workflow — single file Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: hook/workflow — single file Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
…den doctor probe The single-symlink + `charly doctor | grep` assertion could not fail on a partially-broken welded set, and it suppressed doctor's output/exit. Replace it with a full one: for EVERY installed `.providers`, assert a `plugin-<word>` symlink -> charly-lib exists AND the shared host SERVES it (go-plugin handshake), and list the installed plugins. Host-health `charly doctor` is owned by its named batch opencharly/charly#609. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Security screen (T1–T4): no finding — no injection surface introduced ( Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Security screen (T1–T4): no finding — no injection surface introduced ( Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
The OpenWrt rootfs lacks `timeout`, so the handshake probe returned empty there and failed. Start the plugin-<word> in the background, wait for its go-plugin handshake line, then kill it - the same assertion on every distro with no `timeout` dependency. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no instruction-embedding (T2), no secrets/egress ( Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — no instruction-embedding (T2), no secrets/egress ( Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
The probe used a fixed `sleep 1` (a blind delay that can fail spuriously on a loaded runner) and matched the magic version prefix `1|2|` ambiguously. Read the plugin handshake from a FIFO with a bounded `read -t 3` - synchronising on the plugin own output, no delay - and assert the protocol field `*grpc*` instead of a version prefix. Verified the assertion FAILS on a broken layout: a missing plugin symlink prints "plugin symlink missing"; a host that emits nothing prints "shared host did not serve (got )"; both exit 1. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Blocks
Comment disposition
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: hook/workflow — single file Security screen: PASS — no instruction-embedding (T2); no secrets/egress ( Checklist: All applicable rules PASS or NA. The body accounts for every diff behavior (new pinned input; host/ Placement: Comments: every prior Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: hook/workflow — single file Security screen: PASS — no instruction-embedding (T2); no secrets/egress ( Checklist: All applicable rules PASS or NA. The body accounts for every diff behavior (new pinned input; host/ Placement: Comments: every prior Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
…ry check Assert the default variant plugin-<word> set EXPLICITLY (independent of the manifest filenames) - each symlink -> charly-lib with its .providers and served by the host - and add a charly-level, zero-warning discovery assertion (`charly --help` lists the welded words registered from the .providers manifests). Drop the stale "plugin tarballs" cleanup comment. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Security screen (T1–T4): no finding — no T2 instruction-embedding aimed at the validator, no secrets/egress ( Blocks
Comment disposition
Placement: Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Security screen (T1–T4): no finding — no T2 instruction-embedding aimed at the validator, no secrets/egress ( Blocks
Comment disposition
Placement: Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — T1/T2 no embedded directive or instruction in body/diff; T3 no secrets, egress, or new unpinned supply chain (the new cross-repo host fetch is pinned by the Checklist: All applicable rules PASS or NA. Change class = hook/workflow — single file Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — T1/T2 no embedded directive or instruction in body/diff; T3 no secrets, egress, or new unpinned supply chain (the new cross-repo host fetch is pinned by the Checklist: All applicable rules PASS or NA. Change class = hook/workflow — single file Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
Summary
Cut
charly-debianpackaging over to the shared plugin host (opencharly/sdk#256, packagekithard cutover opencharly/sdk#258). Diff items:
charly_lib_versioninput (pinned, defaultv2026.256.1131);charly-lib-linux-{amd64,arm64}*.providers, builds the plugins dir ascharly-lib+plugin-<word>symlinks, andinstalls that same layout under
/usr/lib/charly/pluginsfor the localcharly;plugin-<word>set asserted explicitly (independent of manifest filenames) — each a symlinkto
charly-libwith its.providers— each served by the host (handshake read from a FIFOwith a bounded
read -t 3, asserting thegrpcfield, no blind delay), plus a charly-leveldiscovery assertion (
charly --helplists the welded words registered from the.providersmanifests);
.charly-lib/host staging (rm -rf bin plugins .charly-lib) and the stale "plugin tarballs" cleanup comment is corrected;charly mcp serveprobe captures its expected exit 124 with( ... ) || serve=$?(it previously aborted underset -ebefore the capture);The install-test no longer runs the blanket
charly doctorsmoke. Operator sign-off: themaintainer directed this cutover and signed off on replacing that smoke with the end-to-end
shared-host assertions above (explicit layout + per-plugin serve + charly discovery); the broader
charly doctorhost-capability check is tracked by its named batch opencharly/charly#609. ThePages upload root is
., so the fetched.charly-lib/staging is removed by the cleanup step before the workspace-root upload (rm -rf bin plugins .charly-lib).charly generate-packagesstages the host once + symlinks, so the per-plugin re-linkedSDK/spec closure leaves every
deb. The loader contract (.providersbeside an executable namedplugin-<word>) is unchanged.How tested
The workflow ran LIVE on this head
Steps:
The Install-test step (disposable
debian:13container) ran the end-to-end assertion — thecommand and its output pasted from the job log:
The assertion FAILS on a broken layout (negative path, run locally)
Removing a plugin symlink, and separately pointing
charly-libat a host that emits nothing:So the check is failure-capable: it cannot pass on a partially-broken welded set.
Sweep — the legacy per-plugin path is gone (verbatim)
git grepexits 1 and prints nothing on zero hits — no per-plugin tarball download/extract remains.Rulebook compliance
image/build+git-workflowloaded.charly doctorsmoke with the explicit layout + per-plugin serve + charly-discovery assertions is operator-signed-off (above); thecharly doctorhost-capability check is owned by its named batch install-test: restore a zero-warning host-health check across the distro packaging repos charly#609.read -t 3— no blind sleep, no retry.charly-plugins-linux-*.tar.gzdownload + per-plugin install are DELETED (sweep pasted verbatim); the stale "plugin tarballs" cleanup comment is corrected.debs + repo metadata were built, installed, and deployed live; the.charly-lib/staging is removed before the workspace-root Pages uploadcharly-libtag (charly_lib_versioninput,v2026.256.1131); the charly binary from the pinned charly release tag.34762341596on headb229bb0bincludes the disposable install-test (layout + per-plugin serve + discovery) and the Pages deploy.Change classification
fully tested and validated.Assisted-by: opencode opencode-go/deepseek-v4.1-flash (fully tested and validated)