Repository navigation
feat(deploy-pod)!: adopt the volume-sharing runtime and the parent-volume wire - #116
Conversation
…lume wire
Adopt sdk v0.2026334.825 and spec v0.2026334.900: `ResolveVolumeBacking` keys shared names off
the image box, `ValidateResolvedVolumes` rejects an undeclared placement and a bind without a
host, `ProvisionData` takes the state lock dir for shared seeding, and the nested-pod translation
reads `#ParentVolume{host, container_path}`. The sidecar volume copy is explicit (the mount has a
Sharing field; a sidecar store stays exclusive).
Breaking change: a local `volume:` entry with `path` is rejected by the closed schema, and a
`bind` without `host` is rejected. The charly consumer leg pins the plugin tag producer-first.
Agent: opencharly-77 · Claude Code session 12aa3769-08b4-47ce-81fd-bf539338caaf
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
# Conflicts: # candy/plugin-deploy-pod/go.mod # candy/plugin-deploy-pod/go.sum
Review — BLOCKHead SHA: Change class: runtime plugin ( Blocks
Non-blocking note
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
`go mod tidy` removes the pre-merge sdk/spec hashes; the build and test suite still pass. Agent: opencharly-77 · Claude Code session 12aa3769-08b4-47ce-81fd-bf539338caaf Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
|
HOLDING HOLDING This PR is the plugin producer for the volume-sharing runtime. The consumer charly leg — pins Agent: |
Review — BLOCKHead SHA: Change class: runtime plugin ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Add `TestValidateResolvedVolumes_RejectsInvalidPlacements`, the resolved-sidecar copy test, and `TestSharedSeedLockDir` (the helper the provisioner uses), so the new call sites are proven in the plugin package. Agent: opencharly-77 · Claude Code session 12aa3769-08b4-47ce-81fd-bf539338caaf Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
|
STATUS STATUS RCA of the plugin BLOCK (run 46388691317, head 8bf0e9a).
The fix commit is Agent: |
Review — BLOCKHead SHA: Change class: runtime plugin ( Blocks
Comment dispositions
Non-blocking notes
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Extract the three-site validate+resolve call into `resolveDeployVolumeBacking` and test it with an undeclared placement and a bind without host; state that the explicit sidecar copy is the compile adaptation for the mount's new field (the spec sidecar type has no sharing). Agent: opencharly-77 · Claude Code session 12aa3769-08b4-47ce-81fd-bf539338caaf Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
|
STATUS STATUS RCA of the plugin BLOCK (run 46389654859, head f79d648).
The fix commit is Agent: |
Review — PASSHead SHA: Security screen: PASS (T1–T4 — diff matches summary; no secrets/egress/guardrail/rulebook edits; only two in-org sdk/spec pins). Comments considered:
Non-blocking note: the live Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
CLEARED CLEARED plugin-deploy-pod#116 merged (squash) as Agent: |
Summary
Adopt the volume-sharing runtime in the pod deploy substrate:
ResolveVolumeBackingis called with the image box and the deploy key(
meta.Box, c.Box, c.Instance, ...); shared names key off the image box.ValidateResolvedVolumesruns before every resolution: an undeclared placement and abindwithout
hostare rejected (the config setup fails;--update-allskips that deploy with awarning).
ProvisionDatatakes the state root'slocks/directory, so shared-store seeding is serialized.translateHostPathToVenuereads#ParentVolume{host, container_path}— the container path nowcomes from the candy label, and the parent's resolved binds carry it.
sidecar_resolve.gocopies the resolved sidecar volume explicitly: the spec's sidecar type hasno
sharingfield, so this is the compile adaptation for the mount's new field; a sidecar storeis exclusive by construction.
v0.2026334.825and specv0.2026334.900.This PR is self-contained. The charly consumer leg is the next planned cutover: it pins this
plugin tag, changes the host prep's
ParentVolumes, adds thecharly migratepath-drop entry andruns the
check-pod-overlay/check-sidecar-podbeds. It is not an open PR, and this PR blocksno open item.
How tested
Head
81a21290e7009cf0c5b67568d42f73dface30cad(git rev-parse HEAD; the base merge, the tidy,the coverage and the resolver-seam fix).
GOWORK=off GOPROXY=off go test -count=1 ./...:go vet ./...— exit 0.gofmt -l .— empty.charly box validateat the repo root —OK — checked 3 candies, 2 boxes, 10 deploys, 6 distros, 7 builders; 0 warnings, 0 errors.The live R10 consumers (
check-pod-overlay,check-sidecar-pod) run in the charly consumer leg,where this plugin tag is pinned; the plugin's own change-class gate is build/test/vet/validate on
this committed tree, hence the tier
analysed on a live system.Spike
Candidates and their instruments (a temporary
volume_sharing_spike_test.go, removed after theround):
deploykit.SharedVolumeName("app-one","models")vsSharedVolumeName("app-two","models"); equal=false → splits one image's store (FAILS).SharedVolumeName("app","models")twice; equal=true → shares it(PASSES; implemented).
DeployVolume.Path: the field is absent (present=false) without aschema change (rejected).
#VolumeMount: it has noHost(present=false), so the translation cannotmatch the parent's host directory (rejected).
#ParentVolume:Hostpresent=true,ContainerPathpresent=true(PASSES; implemented).
Pasted
go test ./... -run TestVolumeSharingSpike -v:Winner: B (image-box identity) and C (
#ParentVolume), both implemented.Rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:design,/charly-internals:git-workflowand/charly-internals:strict-policywere loaded first.box validatereports 0 warnings.spec/storeroot.pathhandling is gone:grep -rn -E 'DeployVolume\.Path|v\.Path' . --include='*.go'returns no matches (exit 1), andspec.DeployVolumehas noPathfield. Thecharly consumer pins the plugin tag producer-first.
.worktrees/volume-sharing/plugin-deploy-podonfeat/volume-sharing.TestResolveDeployVolumeBacking_RejectsInvalidPlacementsexercises the ONE resolver seam (a valid placement resolves; a bind without host and an
undeclared name are rejected),
TestSharedSeedLockDirpins the lock directory, and thetranslation test is adapted.
TestResolvedSidecarFromSpec_CopiesVolumeNameAndPathpins thecompile adaptation: the spec sidecar type has no
sharing, so the explicit copy is not astripped input.
check-pod-overlay/check-sidecar-podbeds run in the charly consumer leg (producer-first).No open consumer PR is blocked; a
HOLDINGcomment on this thread and ona candy-declared model volume renders as a per-deploy named volume, so every deploy re-downloads the models instead of sharing the XDG store charly#1277 names this PR and the charly leg. This committed tree passes
build/test/vet/validate.
sdk #663.
Plan conformance
Winning candidate: the sdk image-box-scoped resolver plus
#ParentVolume.ResolveVolumeBackingimage-box identity +ValidateResolvedVolumesProvisionDatastate lock dirtranslateHostPathToVenue+#ParentVolumesidecar_resolve.goexplicit copyChange classification
Change class: runtime plugin (
candy/plugin-deploy-pod); the pod deploy substrate.Breaking change + rollback: a local
volume:entry withpathis rejected by the closedschema, and a
bindwithouthostis rejected. The charly consumer PR pins this plugin tag andruns the pod beds producer-first. Rollback: revert this commit and its tag; charly stays on the
previous plugin tag.
Filed issues
plugin leg.
Agent:
opencharly-77· Claude Code session12aa3769-08b4-47ce-81fd-bf539338caafAssisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)