Say that a deploy's Volume deletions don't make room for its new Volumes (#2868) #3172
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.71) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 491 lines diff across 6 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.371
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #3172"
general
weight: 0.35
nick-potts
Fixes #2868.
Summary
A deploy deletes the Volumes it accepted losing only after it succeeds (
store_runner:remove_volumesruns once the outcome isSuccess). So the space those Volumes hold can't make room for new Volumes in the same deploy. Storage admission was right to refuse. But the refusal told the user to "free disk space", which they were already doing in that very deploy.Crediting the deletions instead would mean deleting before creating. That reorders a deploy and adds a new way to lose data when the creates then fail, which is too much for a low-severity fix. So the refusal now says what happens instead, as the issue's fallback asks:
Review round 1 shaped this:
preparation_error, which rewrites the refusal's details. So round 1's check of those details never fired there, and the decision now comes from the typed refusal, asUnprepared's doc asks.The runner is shared by standalone and Ployz Cloud deploys.
docs/user/services/volumes.md"Choose the storage limit" says the same.DESIGN.md bets
Stable promise: additive only. The refusal's code and details are unchanged, and its message gains a sentence.
Evidence
sdk::store_runner::tests::a_storage_refusal_says_this_deploy_s_deletions_free_space_only_after_it: for a refusal planned directly and one planned after a Build, the note is added for a shortage on a Server whose Volumes the deploy deletes, and not when the deletions are on another Server or there are none.Incus, 1 Machine, standalone, 7 GiB committable.
manyholds Volumes m1–m3 of 2 GB each, deployed. Then I stagedservice rm many,volume rm m1..m3, and a newkkwith k1–k3 of 2 GB each, and randeploy --accept-volume-loss m1 m2 m3:(This is round 1's wording. The final sentence now reads "...so they don't make room for its new volumes.")
The
sdk::anddeploy::tests (465) pass, andcargo clippy -p ployz --all-targetsis clean.Merge Danger
Door: two-way.
Blast Radius: copy. Only this refusal's message, and only when the deploy also deletes Volumes on that Server.