Repository navigation
feat: package the charly-lib shared plugin host + symlinks - #2
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)
…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)
…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)
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)
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)
…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)
This repo's main-branch ruleset requires the `validate / validate` check, but the org dispatchers were never installed, so NO PR could merge. Add the byte-identical org-standard dispatchers (the same files the sibling distro repos run). Assisted-by: opencode opencode-go/deepseek-v4.1-flash (documentation reviewed)
Review — BLOCKHead SHA: Change class: CI workflow / packaging (3 files, +172/-7) — but the diff is two changes in one: the packaging cutover described in the body, plus two new org-wide workflow dispatchers that the body never mentions. Comment intake: Blocks
Checked and not blocking: the Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI workflow / packaging (3 files, +172/-7) — but the diff is two changes in one: the packaging cutover described in the body, plus two new org-wide workflow dispatchers that the body never mentions. Comment intake: Blocks
Checked and not blocking: the Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Summary
Cut
charly-alpinepackaging 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);
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
repo/, so the fetched.charly-lib/staging is outside it (never published).charly generate-packagesstages the host once + symlinks, so the per-plugin re-linkedSDK/spec closure leaves every
apk. 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
alpine:latestcontainer) 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.apks + repo metadata were built, installed, and deployed live; the upload root isrepo/, so no staging cleanup is neededcharly-libtag (charly_lib_versioninput,v2026.256.1131); the charly binary from the pinned charly release tag.34762343921on head6eab7881includes 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)