types: add use_service_name_alias to service networks #943
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 163 lines diff across 2 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.305
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #943"
general
weight: 0.35
ndeloof
Implements
use_service_name_aliasfrom compose-spec/compose-spec#663: a boolean on a service'snetworksentry (long syntax) that lets a service opt out of having its name registered as a DNS alias on that network. It defaults totrue, so existing files are unaffected, andaliasesand the service's other networks are untouched when it isfalse. This addresses the name collision between projects sharing a network described in docker/compose#8223.The field is a
boolonServiceNetworkConfigso that unset can be told apart fromfalseacross override files; merging needs no special rule (last file wins, like any scalar). It is added to the schema asboolean/stringand cast like the other interpolated booleans, so${VAR}works. Conformance tests cover unset, both values with a YAML/JSON round trip, interpolation, an invalid value, and override merging.Two things worth a look. The
networksschema definition is shared by services, jobs andpre_starthooks, so the attribute is accepted there too, while the spec text only documents it for services. Andtypes/derived.gen.gowas edited by hand to match goderive's output for abool(same shape asInit), sincemake deepcopyneeds Docker. docker/compose still has to honor the field ingetAliases, as a follow-up.