Repository navigation
checkenv(P4): thread the deployment's mcp_provide through the check env for VM venues - #555
Conversation
…nv for VM venues The check env (spec.CheckEnv, spec v0.2026250.709) carries the deployment's mcp_provide declarations so the out-of-process mcp: check verb can resolve a VM's MCP server — a VM has no podman-inspectable OCI label. This PR makes the host-side leg of the round-trip carry them: - hostCheckCarrier gains mcpProvide + the MCPProvide() accessor (mirroring kit.Runner's carrier-surface field pattern; charly core cannot import sdk/kit — import purity, #55 coneG). - snapshotCheckEnv (provider_checkenv.go) emits ce.MCPProvide from the carrier on every out-of-process verb dispatch. - plugin_dispatch_reverse.go's carrier construction seeds it from the wire env (the plugin-side live-VM gathers seed it from the resolved vm template — candy/plugin-check #32, v0.2026250.724). - fleet_add_cmd.go's spec/fleet import moves to spec/deploy with DeployNode + deploy.ClassifyNodeTarget — the spec v0.2026250.709 compile requirement (spec/fleet is gone since the CC-2 IR rename). - Pins: spec v0.2026250.709 (CheckEnv.MCPProvide/CandyMCPProvide), sdk v0.2026250.702 (graph floor — spec/fleet-free), plugin-check v0.2026250.724 (#32, the vm-template seeding). WAVE DEPENDENCY (banked, not yet a PR): spec 709 removes spec/fleet, and the compiled-in plugin set is still pinned at pre-CC-2 tags that import it — so this branch builds only after the CC-2 charly re-pin wave (#554 and the plugin-fleet-rename tags) lands on main. Code + pins are complete and rebase-ready; the PR opens when the gate releases.
…pins + plugin set are the compile-compatible base for the env threading)
Review — BLOCKHead SHA: Change class: code (check-env carrier threading in charly core + spec pin bump in go.work.sum) Security screen: PASS — no secrets, exfiltration, scope mismatch, or guardrail weakening. The Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…carries the deployment's mcp_provide (P4, B12 coverage)
… output; tier analysed on a live system)
Review — BLOCKHead SHA: Change class: code (check-env carrier threading in charly core + spec pin in go.work.sum) Security screen: PASS — no secrets, exfiltration, scope mismatch, or guardrail weakening. The Blocks
The prior reviewer's B12 finding (no failing-without-it test) is resolved — Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, exfiltration, scope mismatch, or guardrail weakening. The Checklist: All applicable rules PASS or NA. The two findings from the prior
Placement: CORRECT — the threading lives in the core reverse-channel carrier ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code (check-env carrier threading in charly core + spec pin bump in go.work.sum) Security screen: PASS — no secrets, exfiltration, scope mismatch, or guardrail weakening. The Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
… the re-packaging wave named)
Review — PASSHead SHA: Security screen: PASS — no secrets, exfiltration, scope mismatch, or guardrail weakening. The Checklist: All applicable rules PASS or NA. Comment intake
Disposition of the two recurring findings
PlacementCORRECT — the threading lives in the core reverse-channel carrier ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
P4 substrate-neutral mcp_provide check-env threading (plan §3.10): the host-side check env (spec.CheckEnv.mcp_provide) now carries the deployment's mcp_provide declarations, so the out-of-process mcp: check verb can resolve a VM's MCP server — a VM has no podman-inspectable OCI label. The round-trip: plugin-mcp #6 (the verb's env fallback, MERGED) + plugin-check #32 (plugin-side env mirror, MERGED) + the sdk Runner carrier (in main) + this PR's host-side leg (hostCheckCarrier.mcpProvide + snapshotCheckEnv emission + the wire-env seed).
How tested
B12 coverage (TestSnapshotCheckEnvCarriesMCPProvide — fails without the threading) + the full suite (pasted in the previous revision).
THE FRESH-REBUILD BED RUN — check-cachyos-mcp-vm (disposable, the named batch), with the branch-built charly (2026.250.0905): the bed ran the full sequence (372s). VERDICT — it FAILED, honestly: the systemd units + /etc/charly config were ABSENT in the VM because the per-distro repos publish the pre-cutover charly packages (mid-August; the charly release v2026.250.0854 had not been re-packaged when the run began). The check-live matrix (7 passed, 10 failed, 1 skipped): the unit/config file checks failed (exists=false — the old package), the mcp: checks cascade-failed (server never up), the charly/doctor/binary checks passed. This is the gate working as designed — it PROVED the packaging chain had not landed.
The named batch that owns the bed pass is NOW LANDING: plugin-generate-packages #10 (re-pinned to the renderer, MERGED, release v2026.250.0922 published) + sdk #235 (the rendered-config validation fix, in validator) + the CHARLY-ARCH/FEDORA/UBUNTU/DEBIAN RE-PACKAGING of v2026.250.0854 (re-triggered 2026-09-07 with the new plugin release; runs in flight) + the bed RE-RUN against the re-packaged packages (the next step in this batch). The bed's current-state failure IS the evidence that the chain is the honest gate.
Rulebook compliance
Change classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)