Repository navigation
test(vm): move the mcp_provide and krun-defaults tests with the body - #45
Conversation
opencharly/spec#304 unit 8, the rest of the coverage: two more behaviour tests of the vm body still compiled spec shipped schema. They move HERE, before the contract leg deletes #Vm: the mcp_provide gate (three cases, including the url-required rejection that proves the field binds #CandyMCPProvide rather than an open passthrough) and the krun defaults materialization. The YAML round-trip test stays behind with its subject: it asserts the deleted spec.Vm Go type, which the envelope does not replace. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: test-only (one added Go test file under Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Security screen: PASS (test-only; no secrets, no egress, no guardrail/supply-chain change, no instruction injection). Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
HOLDING opencharly/spec#304 unit 8, the contract leg (deletes #Vm) - this PR must land first. The vm body moved into plugin-substrate CUE module (plugin-substrate#42) and its tests follow it here: the mcp_provide gate and the krun-defaults materialization, both over the composed unit. The spec-side copies go with the contract leg, which deletes #Vm and needs this coverage in place before it does.
Agent: lead |
Review — PASSHead SHA: Change class: test-only (one added Go test file Security screen: PASS — no secrets, no egress, no guardrail/supply-chain change, no embedded instruction. Comment dispositions
Non-blocking note (rulebook gap): R1's review-round clause — "the round's PR comment carries a fresh RCA that names the MISSED CONTROL (why the author's own pre-push gate did not catch it)" — is written for gate-catchable code findings. The two prior findings here (a missing GitHub coordination comment, a stale body harness line) are not catchable by any pre-push code gate, so a literal "missed control" cannot be named for that class. Worth scoping in AGENTS.md; not a block on this PR. Cross-repo WAITING on Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
opencharly/spec#304 unit 8, the rest of the coverage. Two more behaviour tests of the vm body still compiled
specshipped schema and its generatedspec.Vm. They move HERE, before the contract leg deletes#Vm:TestVm_MCPProvideSchemaParse- the mcp_provide gate over the composed#Vm: a body with two entries parses, an entry without transport defaults to http, and an entry missingurlis REJECTED (proving the field binds#CandyMCPProvide, not an open passthrough).TestVmKrunDefaultsMaterialize- the krun block required-with-default fields carry the measured values in the VALUE (a concrete validation), not in a consumer-side literal.One test stays behind with its subject:
TestVm_MCPProvideYAMLRoundTripasserts the deletedspec.VmGo type, and the envelope does not replace it (mcp_provide is the authored body own field, carried as opaque bytes). Its schema half is covered by the parse test moved here.The harness: both tests sit on the composed unit (the spec base and this plugin served unit). TestVm_MCPProvideSchemaParse takes it via composedBodySchema(t) directly; TestVmKrunDefaultsMaterialize takes it via composedVm(t), the small helper vm_body_test.go added in plugin-substrate#43 (it returns the #Vm def plus the context so a test can compile literals in the def own context).
How tested
R10 honesty, premise pasted
That match is a
check:word inside the candydescription:prose, not a bed declaration; this repo has none, and its class gate is its Go suite, run above.Rulebook compliance
loadSchema/defValuehelpers, theVmGo type) were fixed in the move; nothing separable.Change classification
Kind: two behaviour tests move from
specto the plugin that owns the body; one stays behind with its deleted subject. Not breaking: test-only.Breaking change + rollback: none - test-only; rolling back reverts this squash and the contract originals would still exist.
Filed issues
None - nothing separable.
Files changed
candy/plugin-substrate/vm_mcp_krun_test.goAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)