Repository navigation
fix(checkproject)!: decode a pod template into the contract's envelope, not the moved spec.Pod - #144
Conversation
…e, not the moved spec.Pod opencharly/spec#304 unit 3, leg 4. The contract module deleted `#Pod`/`#PodValue` (opencharly/spec#307, tag v0.2026317.703) and moved the authored `kind: pod` body into plugin-substrate's own CUE module, so `spec.Pod` is gone. This plugin's include-splicer decoded a `pod:` template into it to read the template's `plan:` for `- include: pod:<name>`: var pod spec.Pod -> var pod spec.ResolvedPod `spec.ResolvedPod` is the contract's resolve-to-envelope form for the kind — the same target plugin-substrate's own `resolve.go` projects an authored `pod:` body into, and the reason the contract keeps `#PodSidecar` — and its `plan:` field is what the splicer reads. The header comment said "decoded into spec.Pod/spec.Vm"; it now says where the authored body lives and why the envelope is the decode target. The unit test that exercises the arm follows the same type, and it is the assertion-level witness: with the arm's splice removed the test fails on its own expectation, not on a build error. `require github.com/opencharly/spec` and `require github.com/opencharly/sdk` advance to the merged tags (sdk v0.2026317.712), in lockstep, because the new spec cannot be built beside an sdk that still aliases `spec.PodSpec`. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config (Go decode retarget + Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 1 BLOCK, every finding fixed in the body, and the RCA that names the missed controls. The three blocks, and what each one's missed control was.
No code change was needed — all three findings are about the evidence surface, and the tree at Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) |
Review — BLOCKHead SHA: Change class: code/config (Go decode retarget in Comment intake
Blocks
Non-blocking notes: the plant paste's Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 2 BLOCK: A3 tier. Fixed by making the changed branch run LIVE, not by lowering the claim. The finding. The body itself said the assembled The fix is the stronger one, not the cheaper one. Rather than lower the tier, the arm was driven live: the corpus authors no $ charly -C <probe project> check run check-pod
charly check run check-pod: PASS (steps=16, skipped_checks=31)
$ grep 'spliced out of the pod template' .check/check-pod/2026.317.0735/check-live.log .check/check-pod/2026.317.0735/check-live-rebuild.log
.check/check-pod/2026.317.0735/check-live.log:38: PASS check the step spliced out of the pod template executed [plan:deploy-local:check-pod:0] exit=0
.check/check-pod/2026.317.0735/check-live-rebuild.log:36: PASS check the step spliced out of the pod template executed [plan:deploy-local:check-pod:0] exit=0The bed's only planned step is the include; the step that RAN carries the template's text, so the arm resolved a real pod template and spliced its plan — twice, before and after the fresh Non-blocking note 1 (plant reproducibility) also fixed: the pasted Note 2 (coordination): leg 5 ( Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) |
Review — PASSHead SHA: Security screen: PASS
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
CLEARED — this PR's tag is merged ( Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) |
Summary
Leg 4 of unit 3's chain (
TODO.md2.1, trackeropencharly/spec#304, row 3 — thepodkind). The contract module deletedspec.Pod(opencharly/spec#307, tagv0.2026317.703) and moved the authoredkind: podbody intoplugin-substrate's own CUE module, and this plugin's include-splicer still decoded apod:template into the deleted type:spec.ResolvedPodis the contract's resolve-to-envelope form for the kind — the same targetplugin-substrate's ownresolve.goprojects an authoredpod:body into, and the reason the contract keeps#PodSidecar— and itsplan:field is exactly what the splicer reads.plugin-substrateplugin-substrate#32, tagv2026.317.0614— the body +InputDef: "#PodValue"specspec#307, tagv0.2026317.703:#Pod/#PodValuedeleted,#PodSidecarkeptsdksdk#504, tagv0.2026317.712: thePodSpecalias deleted,loaderkit's pod floor retargeted at#ResolvedPodplugin-checkcharlymods-tidy, the corpus sweep and the assembled bedHead of this PR:
$ git rev-parse HEADFiles (exactly the diff)
$ git diff --stat origin/main...HEADcandy/plugin-check/checkproject.gospec.ResolvedPod; the header comment states where the authored body lives now and why the envelope is the decode targetcandy/plugin-check/checkproject_test.gocandy/plugin-check/go.modspec→v0.2026317.703andsdk→v0.2026317.712in lockstep;godirective follows the sdk's (1.26.4→1.26.8) and the indirect set re-derivescandy/plugin-check/go.sumWhy both pins move together: the new
speccannot be built besidesdk v0.2026287.2235, whosevmshared/spec_aliases.gostill carriedPodSpec = spec.PodSpec(deleted insdk#504). Thegodirective and the indirect set move because the sdk pin jumps fromv0.2026287.2235to current — that isgo mod tidy's arithmetic, not a hand edit.How tested
This repo's own gate (
plugin-check/AGENTS.md:go build ./...andgo test ./...incandy/plugin-check/,charly box validateat the repo root), on the committed tree with both pins at their merged tags:The plant — red on ASSERTIONS, restored byte-identical
Plant: make the pod arm stop splicing (it decodes, then returns an empty plan) — the include-splice test must fail on its own expectation, not on a build error:
Restored, verified byte-identical against the committed files, and the restored tree IS the committed tree:
charly box validate— this repo's declared structural gateThe R10 bed — the assembled
check-pod, driver carrying THIS commitplugin-checkis acompiled_plugins:entry incharly, so the change is bedded in the assembled binary: acharlybuilt from a tree that pinsplugin-substrate v0.2026317.614,spec v0.2026317.703,sdk v0.2026317.712and links THIS commit'splugin-check, then the disposablecheck-podbed (plugin-pod/charly.yml,disposable: true) driven from theplugin-podproject:Read from
.check/check-pod/2026.317.0727/summary.yml(head and tail):That bed drives this plugin's whole command surface at run time — the bed runner, plan resolution,
check live/check featuretwice (before and after a freshcharly update), andcharly status --json— with zero diagnostics. It does not by itself enter thepodarm of the include-splicer, so the CHANGED line was run separately, live, in the same assembled binary:The changed path, executed LIVE — a disposable bed whose only plan step is a pod include
The corpus authors no
- include: pod:<name>anywhere (grep -rn 'include: pod:' --include='*.yml'returns nothing, which is why the gap is filed asopencharly/plugin-check#145), so the arm was driven by a purpose-built disposable bed: thecheck-podimage already in the local store, and a bed whose entire plan is ONE pod include.The bed's ONLY planned step is
include: pod:probe-pod-tmpl; the step that ran carries the TEMPLATE's text, so the arm resolved a real pod template and spliced its plan — twice, before and after the fresh rebuild, on this commit'splugin-check. The bed's own tally:total_seconds 132,diagnostics 0/0/0,status: PASS.Scope limit, stated: the fixture is a scratch project (a spike), not a committed bed — committing one is
opencharly/plugin-check#145, which this PR does not pretend to close. What it does show is the changed branch running live, in the assembled binary, twice.Rulebook compliance
/charly-check:check(this repo's own dispatcher row),/charly-internals:pluginand/charly-internals:git-workflowwere loaded before the first code change; this repo'sAGENTS.mdand the umbrella rulebook were read first.charly+sdkconsumer, and this repo is a fourth consumer found only by COMPILING (./checkproject.go:291:16: undefined: spec.Pod). Its RCA and the five-leg order are onspec#304'sSTATUScomment; this diff is the fix for the plugin-side half. Two findings are filed rather than parked: this leg's own coverage gap (plugin-check#145, no bed enters thepodinclude arm) and the chain's cross-repo one (plugin-substrate#33).plugin-substrateprojects into; no local copy of the pod body's shape is introduced.spec.Podremains; the one hit is the comment in this diff stating that it is gone:git statusread before staging; branchfeat/pod-body-from-pluginoff freshorigin/main; no force-push, no unrelated file staged. No pin, gitlink,design/*.tsvorTODO.mdis touched.check-podbed (disposable: true) on this exact commit, driven by acharlybuilt from a tree carrying the three merged tags — 16 steps, every one PASS, 0 errors / 0 warnings / 0 advisories, pasted above with what it does and does not reach.Change classification
Breaking change + rollback: the module's
specandsdkrequires advance to merged tags and itsgodirective to1.26.8, so a consumer pinned to the OLDplugin-checkkeeps the old behaviour and must adopt these pins to get this one. Nothing in this repo's exported surface changes:expandPlanIncludeskeeps its signature and its semantics — the only difference is which contract type the decode names. Rollback is a revert of this commit; the previous pins still resolve andspec.Podreturns with them (that state compiles only whilespecalso goes back — i.e. the revert must include the pin, which it does).Filed issues
opencharly/plugin-check#145— no bed in the corpus exercises the include-splicer'spodarm (grep -rn 'include: pod:' --include='*.yml'returns nothing), so the arm's only run-time witness is its unit test. Filed from this leg because the R10 bed this PR could run (check-pod) proves the plugin composes and its command surface runs but cannot enter that arm; the issue carries the reproduction and the shape of the bed that would close it.opencharly/plugin-substrate#33— that repo'sload_pod_substrate_test.go:275still marshalsspec.Pod; filed from thespecleg of this chain.Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)