Let a retry's redial that reaches another Machine move only its own client (#2989) #3146
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 302 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.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3146"
general
weight: 0.35
nick-potts
Refs #2989. Follows #3111, from Codex's review there (https://github.com/getployz/ployz/pull/3111#discussion_r4354307356).
Summary
#3111 made
Clientclones share one channel. The ordinary unary-retry redial (Client::redial, used bycall,try_readand so on, for examplelisted_copies) then wrote whatever channel it reached into that shared slot. So when a connection names no Machine ID and its endpoint now answers as another Machine, one retrying read moved every clone onto it, the Deploy's mutations included.The redial still follows the new Machine, which
server add/initneed after a reset mints a new ID (leave_lost_to_a_daemon_restart_is_resent). But it now moves only its own client:The first version pinned the retry to the confirmed entry. Codex's review showed that breaks Leave recovery after a reset, so this version replaces it.
DESIGN.md bets
Stable promise: additive only.
Evidence
The
cluster::,connect::,deploy::and setup tests (428) pass, andcargo clippy -p ployz --all-targetsis clean. I didn't do an Incus run: reproducing this needs an endpoint that a different Machine takes over between retries, and the test drives exactly that.Merge Danger
Door: two-way.
Blast Radius: narrow. Only a retry whose endpoint now answers as another Machine changes: its clones stay where they were.