Repository navigation
feat(schema)!: give a candy volume a sharing contract and remove the local path - #456
Conversation
…local path The candy's `volume:` entry gains `sharing` (`exclusive` default, `shared` for one stored directory per box), the resolved and label volume shapes carry it, and the deployment's local `volume:` entry loses `path`: it places a declared volume with a backing and a host location and never restates the container path or the sharing. This is the producer leg of the hard cutover. The consumer charly/sdk/plugin PRs bump this schema's tag and add the `charly migrate` entry that drops `path`; nothing pins this change until that leg lands. Breaking change: an authored `volume:` entry on a deployment that carries `path` is now a closed-schema error. Rollback: revert this commit and its tag; consumers stay on the previous spec tag. Agent: opencharly-77 · Claude Code session 12aa3769-08b4-47ce-81fd-bf539338caaf Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no injected instructions, no secrets/egress, no guardrail weakening; the change is a declarative CUE/schema edit plus its regenerated Go. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Implement the merged DESIGN amendment (opencharly/opencharly#1368) in the contract module:
#CandyVolumegainssharing(exclusivedefault,sharedfor one stored directory per box).#ResolvedCandyVolume,#VolumeMount,#LabelVolumeEntryand#ResolvedVolumeMountcarry theresolved sharing. The label's
sharingis optional, so an exclusive volume keeps thepre-sharing label byte-identical.
#DeployVolumelosespath: the localvolume:entry places a declared volume with itsbacking and host location, and never restates the container path or the sharing.
_volumeSharingis one closed vocabulary, distinct from#CacheMount's_sharing.This is the producer leg of the hard cutover. The consumer charly/sdk/plugin PRs bump this tag and
add the
charly migrateentry that dropspath; no consumer pins this change until that leglands.
How tested
Head
a95966e08c95a584066ac97ce4dc9281b05f5ebb(git rev-parse HEAD).charly task cue-gen:GOWORK=off go build ./...— exit 0.GOWORK=off go test ./...:Spike
The schema spike is the design's CUE shape proven by
cue-gen,TestGenReproducibleand the fulltest suite: the generated types round-trip and a clean regeneration is a no-op. There is no
alternative candidate to spike — the merged DESIGN fixes the shape, and the schema is its
projection.
Winner: the CUE shape (
#CandyVolume.sharing;#DeployVolumewithoutpath) proven bycue-genandTestGenReproducible; no alternative candidate survived the design.Rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:design,/charly-internals:git-workflowand/charly-internals:strict-policywere loaded before thefirst repository action.
_volumeSharingvocabulary and one schema shape per field; the label entry is thesame shape the resolved mount uses.
pathis deleted from the closed schema; the consumercharly migrateentry is theproducer-first next leg, not a deferred shim in this repo.
.worktrees/volume-sharing/speconfeat/volume-sharing.TestGenReproduciblefails if the generated tree differs, and the schema tests fail ifthe shapes change without the generated types; both ran on the committed tree.
toolchain.
charly task cue-genplusgo build/go testonthe committed tree; no R10 bed applies to a pure contract change.
feat(design)!: give a volume a sharing contract and a local placement opencharly#1368.
### Spike.Plan conformance
Winning candidate: the CUE shape (
#CandyVolume.sharing;#DeployVolumewithoutpath)proven by
cue-genandTestGenReproducible; no alternative candidate survived the design.#CandyVolume.sharing#ResolvedCandyVolume.Sharing#VolumeMount.Sharingand#LabelVolumeEntry.Sharing#ResolvedVolumeMount.Sharing#DeployVolumepath removal_volumeSharingword list_sharing.Change classification
Change class: schema (CUE) plus generated Go; no runtime code.
Breaking change + rollback:
deploy.volume[].pathis removed from the closed schema, so anauthored local
volume:entry that carriespathis rejected. Thecharly migrateentry and theconsumer pin bump follow producer-first in the charly/sdk/plugin PRs; until they land, no consumer
pins this tag. Rollback: revert this commit and its tag; consumers stay on the previous spec tag.
Agent:
opencharly-77· Claude Code session12aa3769-08b4-47ce-81fd-bf539338caafAssisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)