Repository navigation
fix(spec)!: adapt box inspect bind_mounts to the volume-sharing contract - #104
Conversation
spec#456 removed DeployVolume.Path (D-VOL-2, the volume-sharing cutover); plugin-box's inspectBindMounts still printed dv.Path, so no charly built on the forward pair (sdk v0.2026334.825 + spec v0.2026334.805) could compile the compiled-in plugin. Drop the removed path column and bump the sdk/spec pins forward. A regression test (reflection on spec.DeployVolume plus a source invariant on the reader) fails on the pre-cutover tree and passes here. Agent: pr-sweep · Claude Code session 8df24173-9dbe-4357-a454-8faee0703dea Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Review — BLOCKHead SHA: Comments considered: thread is empty (0 comments) — nothing to disposition. Blocks
Everything else checked out (spike present and internally consistent with the Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Address the round-1 BLOCK: the change is runtime, so R10 needs a fresh-rebuild disposable-bed run of the changed path. Add a box-inspect-bind-mounts step to the check-box-local bed that drives `charly box inspect --format bind_mounts` through the binary under test against a CHARLY_DEPLOY_CONFIG-isolated overlay carrying one bind volume, and asserts the row is exactly 3 columns (name/host/type) with no path column (D-VOL-2). Proven green on a fresh dev build (charly 2026.334.0823). Agent: pr-sweep · Claude Code session 8df24173-9dbe-4357-a454-8faee0703dea Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
RCA — round 1 BLOCK (R10/A2, A1, CONC(d))Mechanism. The change is runtime (it alters Missed control. My pre-push self-audit classified the diff as runtime and then accepted the Blast radius. A reverted or regressed Root fix (implemented).
Fix is in commit Agent: |
Review — PASSHead SHA: Security screen: PASS — forward pins to org-owned Comments considered:
Non-blocking note: the new step writes its evidence to Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
spec#456 removed
DeployVolume.Path(the volume-sharing cutover, D-VOL-2). The compiled-inplugin-boxplugin still readdv.PathininspectBindMounts, so no charly built on the forwardcontract pair (
sdk v0.2026334.825+spec v0.2026334.805) could compile it —dv.Path undefined.This drops the removed column (the bind-mount row is now name/host/type) and bumps plugin-box's
sdk/specpins forward to that pair, so the module's own build compiles against the new contract.The change is proved LIVE in the disposable
check-box-localbed: a fresh dev build drivescharly box inspect --format bind_mountsthrough the binary under test against an isolated overlayand asserts the 3-column row. A regression test also fails on the pre-cutover tree.
Closes #103
Files
candy/plugin-box/go.modsdkv0.2026331.837→v0.2026334.825,specv0.2026331.808→v0.2026334.805(forward;805is the latestv0.spec tag)candy/plugin-box/go.sumcandy/plugin-box/inspect_list.goinspectBindMountsdrops the removedDeployVolume.Pathcolumn; row is name/host/typecandy/plugin-box/volume_sharing_contract_test.gospec.DeployVolumehas noPath; the reader names nodv.Pathand emits a 3-column rowcharly.ymlbox-inspect-bind-mountsstep in thecheck-box-localbed: drives the livebind_mountsread through the binary under test and asserts the 3-column row805is the newestv0.spec tag (a live reading, with the command that produced it):How tested
Head
a69b7527d63ec39ea8e14f850b58c077047793b9(git rev-parse HEAD), tree8d69ace0871f1e1217107aed409d747b3be61341. The branch carries the fix commit and the bed-stepcommit:
Change-class module gate on the committed tree (
candy/plugin-box/):Fresh rebuild + disposable bed (R10, the changed path executed live)
The change is runtime, so it was proved on a fresh worktree-local dev build (R9) and the
disposable: truebedcheck-box-local. The binary compiles this plugin from its LOCAL checkout(
--dev-plugin), so the bed exercises the unmerged source:The bed run on the committed head —
check-box-localisdisposable: true,host: local— isgreen at zero warnings, and its
box-inspect-bind-mountsstep PASSED against the live binary:The step's own evidence — the changed path's live output, a 3-column name/host/type row with no
container path:
The step is a witness that can fail, not a vacuous pass: it requires the row to be present (so an
overlay read that reaches nothing fails) and to have exactly 3 fields, so a returned path column
fails it:
Regression test: fails-before / passes-after
The untouched pre-cutover tree (
git archive origin/main, oldsdk 837/spec 808) plus only thenew regression test — both tests fail:
The same two tests on this head:
Spike
RCA claim: spec#456 removed
spec.DeployVolume.Path, but plugin-box'sinspectBindMountsstill printed
dv.Path, so the compiled-in plugin cannot compile against the forward spec/sdkpair (
dv.Path undefined).Candidates spiked:
against
sdk v0.2026334.825+spec v0.2026334.805, then the live bed above. BEFORE (old code,new pins) →
dv.Path undefined, rc 1; AFTER → build/vet/gofmt/test green and thebox-inspect-bind-mountsbed step PASS on the fresh dev build (pasted above).ai.opencharly.volumelabel. Refuted at thecontract level: D-VOL-2 says a local
volume:entry never restates the container path, and thedeploy overlay this command reads (
loaderkit.LoadHostDeployConfigViaExecutor) has no pathanywhere to source. The forward
#DeployVolumecarries only these fields:Reading the image label would make this a different data source and a different command meaning
(image volume inventory, not the deploy overlay), and would restate the path across the D-VOL-2
boundary — not a legal candidate.
Pathalias/shim (re-add a field, or accept both shapes). Rejected: it reversesthe landed spec cutover and widens the schema; the operator direction is fix forward, never repin
backward.
Winner: (a) — drop the removed column. It is the contract-conforming adaptation (D-VOL-2), and
the live
box-inspect-bind-mountsbed step proves the 3-column row on this head's fresh dev build.RCA verdict: confirmed — (a) works.
Rulebook compliance
git-workflow(+references/pre-validator-self-audit.md),strict-policy,root-cause-analyzer,design,charly-internals:go,charly-internals:plugin,charly-internals:cutover-policy, and this repo's ownAGENTS.mdatorigin/main.dv.Path undefined) is RCA'd in issue inspect_list.go reads DeployVolume.Path, removed by spec's volume-sharing cutover — charly cannot build against spec v0.2026334.805 #103; it is fixed here, the gate has zero warnings, and no separable finding remains..agents/skills/inspect/SKILL.md'sbind_mountscaveat describes the data source, not the columns, so it stays true.dv.Pathis no longer read in production source; the onlydv.Pathoccurrences are the regression test's negative assertions:git status --shortis empty after the commits; no force-push.2026.334.0823, compiled from this plugin's local checkout.disposable: truebedcheck-box-localran on the committed tree at zero warnings, with thebox-inspect-bind-mountsstep PASS (pasted).DESIGN.md/DESIGN.cue/design/edit.Plan conformance
Winning candidate: drop the removed
DeployVolume.Pathcolumn (row is name/host/type), bump thesdk/specpins forward, and witness the live row in the disposable bed.go.mod:sdk v0.2026331.837 → v0.2026334.825,spec v0.2026331.808 → v0.2026334.805805is the latestv0.spec tag carrying the volume-sharing schema.inspectBindMountsrow name/host/type (drop path)volume:placement carries backing + host and never restates the container path.charly.ymlbox-inspect-bind-mountsbed stepspec.DeployVolumehas noPath; reader names nodv.Path)Change classification
Change class: runtime Go plugin module (the compiled-in
command:boxplugin) plus its disposable R10 bed; no schema, CLI or image change.Breaking change + rollback:
charly box inspect --format bind_mountsno longer prints the container-path (fourth) column; the row is name/host/type. The container path now lives on the candy volume and the image'sai.opencharly.volumelabel (D-VOL-2). Rollback: revert this commit and its merge tag. Do not pinsdk/specback to restore the column — that reverses the landed volume-sharing cutover, which the org forbids (never repin backward).Filed issues
None — the change is one adaptation, fully proven under this gate; no separable finding remained.
Agent:
pr-sweep· Claude Code session8df24173-9dbe-4357-a454-8faee0703deaAssisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)