Skip to content

kit: thread mcp_provide declarations through Runner (check-env carrier for VM venues) - #232

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/checkenv-mcp-provide
Sep 7, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/checkenv-mcp-provide

Conversation

@atrawog

@atrawog atrawog commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

P4 substrate-neutral mcp_provide threading (check-env carrier): the check env
(spec.CheckEnv, which carries mcp_provide since spec v0.2026250.709) must be
POPULATED with the deployment's mcp_provide declarations for VM venues, 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 runner the carrier:

  • RunnerConfig gains MCPProvide []spec.CandyMCPProvide (mirrors the VmName field pattern);
  • NewRunner copies it into the Runner;
  • Runner gains the MCPProvide() accessor.
  • Spec pin bumped v0.2026250.656 → v0.2026250.709 (the tag that defines CandyMCPProvide + CheckEnv.MCPProvide); go mod tidy refreshed go.sum.

The charly provider_checkenv / plugin-check verb_resolver snapshots are the consumers
(wired in the follow-up wave); the construction-site population (VM-check runner builds)
lands with the charly consumer.

How tested

$ cd /tmp/sdk-p4-envwork && go test ./kit/ -run TestRunner_MCPProvideCarriesDeclarations -v
=== RUN   TestRunner_MCPProvideCarriesDeclarations
--- PASS: TestRunner_MCPProvideCarriesDeclarations (0.00s)
PASS
ok  github.com/opencharly/sdk/kit  0.004s

$ go test ./kit/
ok  github.com/opencharly/sdk/kit  2.390s

$ go build ./...
(no output — clean)

$ go vet ./kit/
(no output — clean)

$ gofmt -l kit/
(no output — clean)

Rulebook compliance

  • R0 skills first — /charly-internals:git-workflow + /charly-internals:root-cause-analyzer loaded.
  • R1 no failures/anomalies in scope; all tests green.
  • R3 no duplication — the MCPProvide field mirrors the existing VmName carrier idiom in the same file; the check-env population is the existing snapshot code path's job.
  • R4 no workarounds — the accessor is the requested threading surface; no sleeps/retries/hand-pins.
  • R4a attribution tier fully tested and validated.
  • R6 git safety — git status checked before staging; no force-push, no direct push to main, feat/ branch only.
  • R7 gate proof — test/build/vet/gofmt outputs pasted above (no full task verify: sdk is a library module, not the umbrella tree).
  • R10 verified from the committed tree in a fresh worktree off origin/main.
  • Pillars — P4 substrate neutrality: this is the explicit carrier the VM/host check-env path consumes.

Change classification

  • Change class: SDK library API extension (additive, non-breaking).
  • Verification gate: go test ./kit/ + go build ./... + go vet ./kit/ + gofmt clean.
  • Attribution tier: fully tested and validated.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

…r for VM venues)

RunnerConfig gains MCPProvide []spec.CandyMCPProvide; NewRunner copies it
into the Runner and the MCPProvide() accessor exposes it — mirroring the
vmName field pattern. The host threads the deployment's mcp_provide
declarations into the check env (spec.CheckEnv.mcp_provide, spec
v0.2026250.709) so the out-of-process mcp: check verb can resolve a VM/host
MCP endpoint (no podman-inspectable OCI label).

Spec pin bumped v0.2026250.656 -> v0.2026250.709.

Test: TestRunner_MCPProvideCarriesDeclarations (carrier + default empty).
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 7fb20dc0543a (branch: feat)

Security screen: PASS — additive API extension; no secrets, exfiltration, weakened guardrails, or scope mismatch. Spec pin bump is a forward version of an existing dependency (v0.2026250.656 → v0.2026250.709), consistent across go.mod/go.sum.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — body supplies summary accounting for all 4 changed files, pasted test/build/vet/gofmt output matching the code-change gate, and a justified fully tested and validated tier (the new MCPProvide accessor is exercised live by the new test). Attribution footer present in exact form.
  • B12/R10 — new test TestRunner_MCPProvideCarriesDeclarations proves the new behavior (would fail without the threading); pasted output internally consistent (correct file/package/test names).
  • B16 placement — CORRECT: kind-blind carrier mechanism (field + accessor) in the sdk kit, mirroring the existing VmName idiom; no capability pulled into core, no alias file, no new core→sdk import.
  • B18 — gofmt/vet clean; no lint-visible issues in the diff.
  • R0/R1/R3/R4/R6/R7/R15/R17 — satisfied or NA (no docs, no candy, no schema/cue, no destroy/rebuild, single atomic commit).

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 7, 2026 07:31
@github-actions
github-actions Bot merged commit fb6b22b into main Sep 7, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 7, 2026
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