fix(cli): report incomplete Server observations consistently #3185
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.48) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 548 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.377
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3185"
general
weight: 0.35
nick-potts
Summary
Group deployment observation warnings by Server identity when a named gap is available. Plain progress holds an unqualified notice through one frame so a later named gap can include its cause. If no named gap arrives, print the notice at the next update or 30-second heartbeat. Print any pending notice when following ends early. Interactive progress shows the notice when the terminal has room and preserves it on abandonment. Track printed causes per Machine so later frames do not repeat them. Keep every wire warning in JSON.
No new refusal or wire warning. Deploy stays at exit 3. Explicit container-selector errors and remote command exit codes stay unchanged. No wire, RPC, or schema changes.
execrefuses--json; deployment JSON keeps every warning. If no Server name becomes available, the human notice uses the Machine ID.core/DESIGN.mdbets touched:Evidence
The original four regressions failed before their fix and passed afterward. Round 1's two-frame regression failed before that fix with the timeout cause twice and a raw ID. It now prints that cause once without a raw ID when a named gap arrives in the next frame.
Round 2's drop regression failed before this fix with
left: 0, right: 1: progress printed its rows but lostvolume query timed out. It now passes. A process test follows a Cloud Deployment, receives that warning, then loses a Store read; the built CLI prints the cause once. A second progress test covers the next-frame deadline, and an interactive test covers abandonment.Focused checks after the round 2 fix: 34 progress tests passed; the Cloud follow failure, deploy JSON-warning, and exec CLI process tests passed. The deploy process test asserts the complete JSON warning list is unchanged.
cargo clippy -p ployzandcargo fmt --checkpassed.Deploy with a named gap, exit 3:
The restart warning still prints. Without a named gap, an unqualified failure prints by the next update or heartbeat, or when following ends early. A later named gap does not repeat its cause.
Exec before, exit 1:
Exec after, exit 3:
Closes #2850.
Addresses #2862's observation-warning cases. Its separate ingress-ID and hostname-disclaimer examples remain unchanged because they use other result paths.
Review. Independent reviews: round 1 by Codex and Opus on the full diff, round 2 by Codex on the full diff, round 3 by Codex on the fix diff. Round 3 found no BUG-class issue. Two known limits predate this PR. In an interactive terminal too short to show a notice, the notice has no time bound. A Cloud follow that shows only warnings has no progress display to flush when it stops early. Rebased on main at 64577d7ccd; the conflict with #2879's "still waiting" detail keeps both changes. After the rebase, 35 progress tests and 23 deploy_follow tests pass.
Merge Danger
Door: Two-way. Revert the CLI change; no stored data changes.
Blast Radius: CLI. Scripts must treat incomplete exec discovery as exit 3 rather than 1. Deploy JSON still carries each individual warning.