Repository navigation
packaging: weld plugin-mcp + ship the systemd units and /etc/charly config - #556
Conversation
…g (plan 3.1 + 3.4) The systemd-started charly mcp serve needs the mcp word resolvable on a bare package install and a local project to resolve (no --repo network fallback). This change set is sections 3.1 (prerequisite) + 3.4 (declarations) of the charly-mcp-systemd-config plan: - scripts/host-command-plugins.txt: weld [email protected] (the welded set is SINGLE SOURCE (R3); the release-binary workflow reads it and the per-distro CI bakes /usr/lib/charly/plugins). 9 -> 10 plugins. - packaging/charly.yml: plugin-mcp joins the default + full variant plugin sets (minimal stays the 3-core doctor/clean/settings); new systemd: section (two non-autostarting charly-mcp units, system + user scope, exec /usr/bin/charly mcp serve --listen 127.0.0.1:18765, restart on-failure, working_directory /etc/charly, the system unit with after/wants network-online.target) + config: section (path /etc/charly/charly.yml, version 2026.249.2125 == the repo's current schema version, plugins [@github.com/opencharly/plugin-mcp/candy/plugin-mcp:v2026.250.0635]). - charly/packaging_test.go: welded-set comments 9 -> 10 (the union test self-adjusts via scripts/host-command-plugins.txt); new TestPackagingSystemdDeclarations (2 units, one system one user, exec binds 127.0.0.1:18765) and TestPackagingConfigDeclared (path /etc/charly/charly.yml + non-empty plugins). - charly/go.mod: spec v0.2026250.200 -> v0.2026250.632 (Packaging Systemd/Config fields), sdk v0.2026250.417 -> v0.2026250.650 (packagekit renderer). The 632 pin REQUIRES the CC-2-swept charly module (spec v0.2026250.523 retired the fleet vocabulary: FleetNode -> DeployNode, spec/fleet -> spec/deploy); the CC-2 charly sweep lands as its own PR first (feat/cc2-fleet-vocab-retire), then this branch rebases onto merged main and the full module gates (go test ./..., go vet, TestPackaging) run green. PARKED per supervisory sequencing (one PR = one cutover). Verified against spec 632 before parking: the real packaging test functions (TestPackagingSectionWellFormed / TestPackagingVariantsCoverWeldedPlugins / TestPackagingSystemdDeclarations / TestPackagingConfigDeclared) run green in a throwaway module against these files (spec/fleet blocks the module-wide build until CC-2).
Review — BLOCKHead SHA: Change class: config/code (packaging metadata + welded plugin set + tests) Security screen: PASS — no secrets, exfiltration, guardrail weakening, or scope mismatch. The Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…pped to analysed on a live system — the package-install R10 gate runs in the release wave)
Review — PASSHead SHA: Security screen: PASS — no secrets, exfiltration, guardrail weakening, or scope mismatch. The Checklist: All applicable rules PASS or NA. Prior comment disposition: the sole Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, exfiltration, guardrail weakening, or scope mismatch. The Checklist: All applicable rules PASS or NA. Prior comment disposition: the single Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
The charly release side of the systemd-units + /etc/charly config plan (plan/charly-mcp-systemd-config.md §3.1 + §3.4), rebased onto the merged CC-2 main (the FleetNode→DeployNode sweep, PR #554). Three changes:
scripts/host-command-plugins.txt — [email protected] added to the welded command-plugin set (9 → 10). The release-binary workflow builds + publishes it; the per-distro package repos bake it into /usr/lib/charly/plugins/ so charly mcp serve resolves on any host with the package installed (the prerequisite without which the systemd units start a dead server).
packaging/charly.yml — the packaging: section gains:
charly/packaging_test.go — TestPackagingSystemdDeclarations + TestPackagingConfigDeclared (the systemd/config sections parse with the right shape); the welded-plugin union coverage auto-adjusts to the 10-plugin list.
The sdk renderer (packagekit) + the layered config stack (loaderkit) shipped in sdk #230; the spec Packaging schema in spec #112; plugin-mcp P2/P3 in plugin-mcp #5. Pins: spec v0.2026250.709, sdk v0.2026250.758 (the rebased main's — supersets carrying the Packaging fields + the renderer).
How tested
go build ./... — exit 0. go test -run TestPackaging ./... — ok (both packages). The four packaging tests (TestPackagingSectionWellFormed, TestPackagingVariantsCoverWeldedPlugins 10/10, TestPackagingSystemdDeclarations, TestPackagingConfigDeclared) were also verified PASS against spec 632 in a throwaway module during the park (the module-wide gates ran at rebase). The package-install R10 gate (the CachyOS VM bed + the per-distro install-tests: units present, is-enabled disabled, /etc/charly/charly.yml validates, mcp: checks) runs after this release.
Rulebook compliance
Change classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)