schema: declare the options of storage_opt #998
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 271 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #998"
general
weight: 0.35
glours
What this PR does, in one sentence
Declares the options of
storage_optin the schema, so that a runtime screening a Compose file against the attributes the specification declares no longer reportsstorage_opt: {size: 1G}as unsupported.Context
storage_optis the only mapping of the schema that says nothing about its keys: it is declared as{"type": "object"}, whiledriver_opts,logging.options,sysctlsorlabelsdeclare a pattern for them.schema.AttributePaths()builds the inventory of the specification from those declarations, so it listedservices..storage_optand nothing below it. A runtime that builds its supported attributes from that inventory, as Docker Compose does, warned about each option, on a service, on apre_starthook and on a job, although the example of the specification itself isstorage_opt: {size: 1G}and Compose passes the option to the engine (docker/compose#14505).What the PR brings
storage_optdeclares a pattern for its keys, with a string, a number ornullas value, likelogging.options. That is what the loader accepts today (a number is kept as text, a missing value as an empty one), so no file that loads now is rejected; a boolean, a list or a mapping under an option was already refused when decoding, and is now refused by the schema with the path of the option.services..storage_opt.,services..pre_start.[].storage_opt.andjobs..storage_opt.*, and the options ofstorage_optare no longer reported byWithSupportedAttributes.additionalProperties, which the inventory cannot see either:storage_optwas the only such mapping, and the next one will be caught when it is written rather than when a runtime reports it.The schema of compose-spec follows from this one through its automated synchronization. Docker Compose will get the fix with its next compose-go bump.
🤖 Generated with Claude Code