format: say the consistency of a volume in the short syntax, and tell expressible from extensions #1011
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 282 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.338
Real PR Conversation Timeline
1 comments
"Review active on #1011"
general
weight: 0.35
glours
What this PR does, in one sentence
format.IsShortSyntaxExpressiblenow answers the way the engine reads a volume spec: the consistency of a mount can be said in the short syntax, and extensions no longer make a volume inexpressible.Context
IsShortSyntaxExpressible(#986) is what a caller asks to know whether a volume can be sent to the engine as a plainSOURCE:TARGET[:OPTIONS]spec, which carries the SELinux relabel the Mount API has no place for. Two of its answers are not the engine's:consistent,cachedanddelegatedin the options of a spec (moby,volume/mounts/linux_parser.go), as it readsz,Z, the propagations andnocopy.ParseVolumedoes not:./src:/app:cachedloses its:cachedwithout a word, and a volume that saysconsistency: cachedis judged inexpressible. Withselinux: znext to it, it goes to the Mount API and the relabel is dropped.x-*), on the volume or on itsbindorvolumeoptions, makes it inexpressible, though extensions are for the tools that read the model and the engine knows nothing of them.What the PR brings
ParseVolumereads the three options the engine reads,ShortSyntaxrenders them, andServiceVolumeConfig.Stringwrites them. Any other consistency, which the spec leaves platform specific, stays for the long syntax. Propagation needed nothing: the parser already reads all six modes the engine does.IsShortSyntaxExpressibleignores them, working on a copy so the volume it is given is left as it is.ShortSyntaxdoes not: it renders a volume a caller may write back, and must not leave an extension behind (a volume with one is still for the long syntax there)../src:/app:cachednow loads withconsistency: cached, where the option was dropped, so its output changes, and so does a hash computed from it (Docker Compose recreates the containers once, as it does when a volume changes).Found while reviewing docker/compose#14529, which decides between the bind string and the Mount API on this function.
🤖 Generated with Claude Code