Skip to content

packaging: weld plugin-mcp + ship the systemd units and /etc/charly config - #556

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/mcp-systemd-packaging
Sep 7, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/mcp-systemd-packaging

Conversation

@atrawog

@atrawog atrawog commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. 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).

  2. packaging/charly.yml — the packaging: section gains:

    • plugin-mcp in the default + full variant plugin lists (minimal stays the 3-core doctor/clean/settings);
    • systemd: — two NON-AUTOSTARTING charly-mcp units (system + user scope, exec 'charly mcp serve --listen 127.0.0.1:18765', restart on-failure, working_directory /etc/charly, the system unit after/wants network-online.target);
    • config: — /etc/charly/charly.yml, version = the current schema version (verified == spec 632 SchemaVersion == the repo root version), description, and the bake_plugin: plugin-mcp ref.
  3. 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

  • Change class: config/code (packaging metadata + welded set + tests).
  • Verification gate: go build + packaging tests; the R10 package-install gate in the release wave.
  • Attribution tier: analysed on a live system — the packaging-section parser is exercised by go test; the shipped units + /etc/charly config execute live in the package-install R10 gate (the named batch: the release wave).

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

…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).
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: c9af10dc4392 (branch: packaging)

Change class: config/code (packaging metadata + welded plugin set + tests)

Security screen: PASS — no secrets, exfiltration, guardrail weakening, or scope mismatch. The plugin-mcp pin (v2026.250.0635 in host-command-plugins.txt and the matching @github.com/opencharly/plugin-mcp/candy/plugin-mcp:v2026.250.0635 config ref) is a legitimate dependency pin to the plugin repo, consistent across both files.

Blocks

  1. A3 — attribution tier inflated. The body claims fully tested and validated, but the NEW/CHANGED code paths — the two charly-mcp systemd units and the /etc/charly/charly.yml config — have NOT executed live. The body itself states "The package-install R10 gate ... runs after this release" (in the release wave batch). Per A3, a change whose new/changed branches never ran live is at most analysed on a live system. The pasted proof (go build + go test -run TestPackaging) only exercises the packaging-section parser, not the shipped units/config on a real install. Downgrade the tier to analysed on a live system (and the footer's parenthetical accordingly), or supply live execution evidence of the systemd units + config against a fresh rebuild.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: a6d8043056e0 (branch: packaging)

Security screen: PASS — no secrets, exfiltration, guardrail weakening, or scope mismatch. The [email protected] pin is consistent across host-command-plugins.txt and the config.plugins ref (@github.com/opencharly/plugin-mcp/candy/plugin-mcp:v2026.250.0635). All 3 changed files are accounted for in the body's summary.

Checklist: All applicable rules PASS or NA.

Prior comment disposition: the sole github-actions[bot] BLOCK (A3 inflated tier fully tested and validated) is stale-superseded — the current body caps the tier at analysed on a live system (footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)*), which is exactly the A3 ceiling for a change whose new systemd units + /etc/charly config have not executed live. The package-install R10 gate is explicitly routed to the named batch (the release wave), which is R2-compliant routing, not a forbidden deferral. The new tests (TestPackagingSystemdDeclarations, TestPackagingConfigDeclared) match the yml declarations field-for-field and would fail without them; the 9→10 count is consistent across all three files; placement is CORRECT (packaging metadata in the packaging config, rendered by sdk/packagekit).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 7, 2026 08:54
@github-actions
github-actions Bot merged commit 2efd0b0 into main Sep 7, 2026
3 checks passed
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: a6d8043056e0 (branch: packaging)

Security screen: PASS — no secrets, exfiltration, guardrail weakening, or scope mismatch. The [email protected] pin is consistent across host-command-plugins.txt and the config.plugins[0] ref; no embedded directives aimed at the validator.

Checklist: All applicable rules PASS or NA.

Prior comment disposition: the single github-actions[bot] BLOCK (A3 — attribution tier inflated to fully tested and validated) is stale-superseded: the current body downgrades the tier to analysed on a live system (footer parenthetical matches), which is the correct ceiling since the shipped systemd units + /etc/charly config have not executed live — the body honestly routes the package-install R10 gate to the named release-wave batch. The diff (weld plugin-mcp 9→10, systemd/config sections, matching tests) is internally consistent with the body's accounting; the new tests would fail without the declarations; placement is CORRECT (charly's own packaging metadata consumed by the sdk renderer).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant