Repository navigation
feat(pod): list the box's shared volumes and reset them explicitly - #36
Conversation
`charly volume list` adds the image box's shared volumes with a `(shared)` suffix (resolved from the deploy's image, fail-closed); `charly volume reset --shared` targets `charly-shared-<box>-<name>` and refuses while another deployment of the box is configured. The module pins sdk v0.2026334.825 and spec v0.2026334.900. 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-pod producer for the volume-sharing cutover. The charly consumer leg — the Agent: |
Review — BLOCKHead SHA: Change class: runtime plugin CLI ( Security screen: PASS (no scope mismatch, no secrets/egress, no guardrail change, no supply-chain surprise beyond the intended sdk/spec pin bump; T4 NA). Placement (ARCH): CORRECT — everything lands in Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
RCA of the QUAL finding: deployImageBox guarded `err != nil || dc == nil` with a single `%w` over err, so the dc==nil/err==nil branch rendered `reading the deploy config: %!w(<nil>)`. Split the guard: err keeps its `%w`; a nil config gets its own message. The same BLOCK found the R7 gap: the new helpers had no test that fails without them. Extract the pure seams (deployImageRef, volumeLS, formatVolume, sharedResetTarget) and cover each: the resolved image wins over the authored one, the missing-deploy and imageless errors, the shared-prefix filter, the `(shared)` line format, and the sibling-refusal path of a shared reset. The engine call is a package var so the test fakes it; production behaviour is unchanged. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
The check-pod bed now carries a box-wide volume (`sharing: shared`) declared by a local fixture layer, and two host-side steps exercise the changed paths on the deployed pod: `volume list` must name `charly-shared-check-pod-shared-cache` and mark it `(shared)`, and `volume reset --shared` must resolve that shared name (the running deployment holds it, so the engine refuses the removal and the error names the volume — proving the flag without destroying data). The fixture also bumps plugin-example-builder to v2026.334.0728 and plugin-example-external to v2026.334.0727: the old pins were built against an sdk older than the host's #615 builder-reply discriminator, so the image build was refused. That is a pre-existing red gate on the fixture, fixed here because it blocks this bed. The `volume` skill documents the shared scope: `list` marks `(shared)`, `reset --shared` refuses while a sibling deployment is configured, a purge never deletes a shared volume, and a database directory is never shared. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Pins the spec tag that keeps a volume label's sharing through ExtractMetadata, so deployImageBox and the deploy resolver see a shared volume as shared. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Pre-existing (from #28), unrelated to the shared-volume change, but it makes `gofmt -l .` non-empty and the gate requires a clean tree. No behavior change. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
STATUS Round 1 — RCAThe validator's four findings, and what changed. A2 / R10 — no live disposable proof. Missed control: I treated the plugin as "not pinned by a R10 / R7 — no test failing without the change. Missed control: the helpers were new code with A1 — How tested incomplete. Fixed: the body names the disposable target, the fresh rebuild and QUAL — latent nil No coordination threads are open. Agent: |
Review — BLOCKHead SHA: Change class: runtime plugin CLI ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The QUAL fix's guard (a nil *DeployConfig gets its own message instead of %!w(nil)) had no case that reaches it. The test now asserts it; the arm fails without the guard. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
STATUS Round 2 — RCAR7/R1 — a claimed QUAL arm with no test. Missed control: the guard I added for the nil Everything else the prior round found is fixed and, per the validator's own disposition, resolved. Agent: |
Review — BLOCKHead SHA: Change class: runtime plugin CLI ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The metadata guard admitted the (nil, nil) arm and rendered `%!w(<nil>)` — the same malformed-error class as the deploy-config arm. imageBoxFromMetadata splits the arms (an inspect error wraps its cause; an empty inspect names the missing metadata) and both are tested. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
STATUS Round 3 — RCAQUAL — the A1 — the skill diff was unaccounted. Missed control: I listed the diff items from memory Agent: |
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (all 9 files accounted for in the Summary), no secrets/egress, no guardrail weakening, no eval; sdk/spec pin bumps are the declared contract change (T4 NA). Prior-round findings re-derived against the current tree and confirmed resolved:
Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Give
charly volumeits shared-volume surface, and make the new helpers testable.charly volume listresolves the deployment's image box from the deploy config's image(fail-closed), lists the box's
charly-shared-<box>-*volumes with a(shared)suffix, andleaves the owned per-deploy volumes as before.
charly volume reset --sharedtargetscharly-shared-<box>-<name>and refuses while anotherdeployment of the box is configured; the existing in-use refusal stays.
remove --purgealready skips shared volumes viadeploykit.VolumeNameBelongsTo.deployImageBoxno longer renders%!w(<nil>)for an absent deployconfig; the nil config gets its own message.
deployImageRef, thevolumeLSengine seam,formatVolume, andsharedResetTargeteach have a test that fails without the change.check-podbed proves the surface live: a box-wide volume declared by a local fixture layer,a
volume liststep asserting the shared name +(shared), and avolume reset --sharedstepasserting the refusal names the shared volume. The fixture's example plugins are bumped to tags
whose modules stamp the sdk#615 builder-reply discriminator.
v0.2026334.1109(the label decode fix, so a shared label reaches the deploy as shared)and sdk
v0.2026334.825. A pre-existing gofmt trailing-line finding is fixed so the gate is clean.volumeskill documents the shared scope:listmarks(shared),reset --sharedrefuses while a sibling deployment is configured, a purge never deletes a shared volume, and a
database directory is never shared.
How tested
Head
4fd0bb47cdc60e09e0c40ae188d2ef12cd90165b(git rev-parse HEAD).Unit gate on the final tree (
gofmt -l .empty;go build ./... && go vet ./... && go test -count=1 ./...incandy/plugin-pod/):Live R10 bed,
check-pod(pod.disposable: true), on a fresh worktree-local dev build with thelocal plugin source and spec
v0.2026334.1109. The two steps that exercise the change:and the deploy it ran (
charly volume listagainst the running pod) printed:Spike
The shared identity was spiked in the plugin-deploy-pod leg (a temporary
volume_sharing_spike_test.go, removed after that round); this leg uses the same winner. Pastedgo test ./... -run TestVolumeSharingSpike -v:Winner: the image-box-scoped
charly-shared-<box>-<name>identity.Rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-internals:design,/charly-internals:git-workflow,/charly-internals:strict-policyloaded; the editedvolumeskill (owned by this candy) is in step with its command.
thread.
.worktrees/volume-sharing/plugin-podonfeat/volume-sharing.and pass with it.
check-podbed above, on adisposable: truetarget, fresh rebuild.Plan conformance
volume listshared rowsvolume reset --sharedremove --purgeshared exclusion--sharedis an operational selectorvolumecommand gains a flag.Change classification
Change class: runtime plugin CLI (
candy/plugin-pod); additive.Breaking change + rollback: none —
volume listgains shared rows andvolume resetgains anoptional
--sharedflag; existing invocations keep their behavior. Rollback: revert this commitand its tag.
Filed issues
local
path; closed by fix(beds)!: declare the encrypted beds' volumes in a layer distro-fedora#144.the sibling bed in distro-fedora).
(pre-existing, why the distro migration was hand-shaped).
Agent:
opencharly-77· Claude Code session12aa3769-08b4-47ce-81fd-bf539338caafAssisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)