fix(cli): stable fallback Machine Name and typed --name hint (#3116 follow-up) #3138
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.44) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 242 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.329
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #3138"
general
weight: 0.35
nick-potts
Follow-up to #3124 (#3116). The merge queue merged #3124 at
160d0244, before these two fixes landed. #3121 already has them onrelease/0.3, so this brings main level with the 0.3 patch.Summary
Why.
allocate_enrollmentrefuses the same Machine ID under a new name.--jsoncarries it.--name,server addwould read/etc/hostname, which can differ.Bets: 5 Two-tier identity: the fallback is still just a name, taken from the ID only so retries agree.
Evidence
an_unusable_hostname_falls_back_to_a_name_from_the_machine_id: the same name on a second call.an_invalid_requested_name_is_refused_with_its_normalised_form_as_a_hint:InvalidArgumentandClosest("my-server").___gets no hint.a_cloud_name_taken_from_an_invalid_hostname_is_normalised: MY-SERVER → my-server, and___→ no--name.handlers::server(123) andcheckin::enroll(28) pass, and clippy is clean. Onrelease/0.3, the same commits passed the full CI.Merge Danger
Door: two-way
Blast Radius: naming
The change only affects hosts whose hostname leaves nothing usable, and the wording of the
--namerefusal.