Repository navigation
feat(packagekit): package the shared plugin host + symlinks (hard cutover) - #258
Conversation
…over) The packaging staged one ~21 MB binary per plugin, re-linking the whole shared SDK/spec closure into each /usr/lib/charly/plugins/plugin-<word>. Replace that layout with the shared multi-call host (#256): - stage the `charly-lib` host ONCE at /usr/lib/charly/plugins/charly-lib; - ship every variant plugin as a `plugin-<word>` SYMLINK to it (nFPM TypeSymlink); - HARD-ERROR when a plugin entry is a regular file, or when a plugin is present without the host — the per-plugin-binary layout is retired (hard-cutover policy), never silently shipped. The distro repos that still pass per-plugin binaries migrate to the shared host in their own packaging PRs. Verified end-to-end: the generate-packages plugin built against this sdk emits an archlinux package whose /usr/lib/charly/plugins holds charly-lib once + N symlinks (34.9 MB compressed for an unstripped-charly fixture), and HARD-ERRORS on a plain-file fixture. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (fully tested and validated)
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. The review plan produced no Verdict line, and this log carries NONE of the recognised signatures: no completed turn 1, no stall marker, and no HTTP rejection. The gate therefore REPORTS the class instead of inventing a cause. Durable remedy.
A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Diagnostics (tail of the review log) |
Review — BLOCKHead SHA: Change class: Go code + tests in Blocks
Comments considered: one Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: Go code + tests in Blocks
Comments considered: one Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/eval, no guardrail, CI, branch-protection, or rulebook-spec edit; no embedded directives; nothing outside the stated packaging scope ( Prior comments (re-derived against this head/body, not carried forward):
Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — no secrets/egress/eval, no guardrail, CI, branch-protection, or rulebook-spec edit; no embedded directives; nothing outside the stated packaging scope ( Prior comments (re-derived against this head/body, not carried forward):
Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: Go code + tests in Comments (all re-derived against the CURRENT body/diff, not carried forward):
Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: Go code + tests in Comments (all re-derived against the CURRENT body/diff, not carried forward):
Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
…12) * chore(deps): bump the sdk to v0.2026256.1220 (shared-host packaging) Adopt the packagekit hard cutover (opencharly/sdk#258): the plugin's e2e fixture moves to the shared-host layout (one charly-lib host + plugin-<word> symlinks -> charly-lib), and the sdk require is bumped to the release carrying the change. Releasing this plugin is what makes the shared-host packaging available to the distro repos (charly-arch#5 and siblings). Assisted-by: opencode opencode-go/deepseek-v4.1-flash (fully tested and validated) * test(e2e): assert every plugin symlink targets charly-lib + all providers Strengthen the shared-host e2e assertions: both plugin-a and plugin-b must be symlinks to charly-lib, and both .providers manifests must be packaged (readPkg now also returns the tar symlink targets). Assisted-by: opencode opencode-go/deepseek-v4.1-flash (fully tested and validated)
* feat: package the charly-lib shared plugin host + symlinks Consume the charly-lib release (opencharly/sdk#256, packagekit hard cutover opencharly/sdk#258) instead of the per-plugin binaries: - download the charly-lib host (amd64+arm64) + the .providers manifests; - arrange the plugins dir as `charly-lib` + `plugin-<word>` symlinks -> charly-lib; - install the host + symlinks under /usr/lib/charly/plugins for the local charly; - the packaging (charly generate-packages, packagekit hard cutover) 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) * fix: pin the charly-lib fetch + fix the .providers destination paths - pin the charly-lib download to an explicit tag (new charly_lib_version input, default v2026.256.1131) instead of the moving latest; - use `gh release download <tag>` (positional) — there is no --tag flag; - copy each .providers manifest to its BASENAME (plugins/<arch>/<n>.providers), not the full source path, which nested it under .charly-lib/ and, via install -D, under /usr/lib/charly/plugins/plugins/amd64/. Assisted-by: opencode opencode-go/deepseek-v4.1-flash (analysed on a live system)
* feat: package the charly-lib shared plugin host + symlinks 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) * test(install-test): assert the shared-host layout; drop the host-health 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) * fix(install-test): use double quotes inside the bash -c block 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) * fix(install-test): drop apostrophes that broke the bash -c block 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) * fix(install-test): capture the mcp-serve status without tripping set -e 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) * test(install-test): assert the shared host LOADS a baked plugin; clean .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) * test(install-test): serve-assert EVERY installed plugin; drop the hidden 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) * fix(install-test): portable serve probe (openwrt has no timeout) 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) * test(install-test): pace the serve probe on the handshake, not a sleep 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) * test(install-test): assert the explicit welded set + a charly discovery 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)
* feat: package the charly-lib shared plugin host + symlinks 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) * test(install-test): assert the shared-host layout; drop the host-health 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) * fix(install-test): use double quotes inside the bash -c block 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) * fix(install-test): drop apostrophes that broke the bash -c block 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) * test(install-test): assert the shared host LOADS a baked plugin; clean .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) * test(install-test): serve-assert EVERY installed plugin; drop the hidden 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) * fix(install-test): portable serve probe (openwrt has no timeout) 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) * test(install-test): pace the serve probe on the handshake, not a sleep 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) * test(install-test): assert the explicit welded set + a charly discovery 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)
* feat: package the charly-lib shared plugin host + symlinks 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) * test(install-test): assert the shared-host layout; drop the host-health 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) * fix(install-test): use double quotes inside the bash -c block 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) * fix(install-test): drop apostrophes that broke the bash -c block 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) * test(install-test): assert the shared host LOADS a baked plugin; clean .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) * test(install-test): serve-assert EVERY installed plugin; drop the hidden 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) * fix(install-test): portable serve probe (openwrt has no timeout) 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) * test(install-test): pace the serve probe on the handshake, not a sleep 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) * test(install-test): assert the explicit welded set + a charly discovery 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)
* feat: package the charly-lib shared plugin host + symlinks 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) * test(install-test): assert the shared-host layout; drop the host-health 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) * fix(install-test): use double quotes inside the bash -c block 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) * fix(install-test): drop apostrophes that broke the bash -c block 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) * test(install-test): assert the shared host LOADS a baked plugin; clean .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) * test(install-test): serve-assert EVERY installed plugin; drop the hidden 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) * fix(install-test): portable serve probe (openwrt has no timeout) 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) * test(install-test): pace the serve probe on the handshake, not a sleep 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) * test(install-test): assert the explicit welded set + a charly discovery 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) * ci: install the org pr-validator + tag-on-merge dispatchers 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)
* feat: package the charly-lib shared plugin host + symlinks 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) * test(install-test): assert the shared-host layout; drop the host-health 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) * fix(install-test): use double quotes inside the bash -c block 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) * test(install-test): assert the shared host LOADS a baked plugin; clean .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) * test(install-test): serve-assert EVERY installed plugin; drop the hidden 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) * fix(install-test): portable serve probe (openwrt has no timeout) 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) * test(install-test): pace the serve probe on the handshake, not a sleep 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) * test(install-test): assert the explicit welded set + a charly discovery 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) * ci: install the org pr-validator + tag-on-merge dispatchers 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)
Summary
Hard cutover of the packaging plugin layout (#256).
sdk/packagekitnowsupports exactly ONE layout:
charly-libmulti-call host is staged once at/usr/lib/charly/plugins/charly-lib;plugin-<word>symlink to it (nFPMTypeSymlink);the per-plugin binary layout (one re-linked copy of the shared SDK/spec closure per plugin,
~21 MB apiece) is retired, never silently shipped.
The distro repos that still pass per-plugin binaries migrate to the shared host in their own
packaging PRs — each named:
charly-arch#5,charly-fedora#3,charly-debian#3,charly-ubuntu#4,charly-alpine#1,charly-openwrt#1.How tested
Full SDK gate — fresh (non-cached)
The tests AT THIS HEAD (verbose, non-cached)
nfpm_config_sharedhost_test.gois a NEW file; it contains the shared-host staging test + the twoerror-path tests. No test in the tree pins the retired layout (it never existed on
main).Sweep — no per-plugin-binary staging site survives
The only two
Mode: 0o755file stagings are/usr/bin/charlyand thecharly-libhost; everyplugin is staged as
TypeSymlinkor errors.End-to-end — a real archlinux package from the
charly-libreleaseBuilt the
generate-packagesplugin against THIS sdk (replace github.com/opencharly/sdk => …),then packaged the fixture (release
charly-libhost + 10plugin-<word>symlinks +.providers,default variant):
The retired layout now fails loudly
(The fixture used an UNSTRIPPED charly, hence 34.9 MB compressed; the real stripped tree is ~24 MB
vs the current 95.6 MB.)
Rulebook compliance
plugin+go+git-workflowloaded.charly-arch#5,charly-fedora#3,charly-debian#3,charly-ubuntu#4,charly-alpine#1,charly-openwrt#1).packagekit) is fixed; no docs route around it..pkg.tar.zstwas inspected at its boundary (host file, 10 symlinks, providers).go test -count=1 ./...+go vet ./...on the final tree, plus the live package build. The distro-repo packaging beds are the six named batches above (charly-arch#5 is the arch one).Change classification
go test -count=1 ./...+go vet ./..., the verbose per-test run at this head, a live end-to-end archlinux package build inspected withbsdtar, and the retired-layout error.fully tested and validated.Assisted-by: opencode opencode-go/deepseek-v4.1-flash (fully tested and validated)