← Back to Pull requests

Report a target silent after a lost reply as silent (#2989) #3143

Closed
unknown closed this pull request without merging on Oct 23, 2026 02:25 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 00:17 UTC
Author

Refs #2989. Follows #3111, from CodeRabbit's review there (https://github.com/getployz/ployz/pull/3111#discussion_r4353956320).

Summary

wait_out_restart kept a lost reply as the Machine's answer. So if a resend then met a target that stayed silent, the deploy reported the earlier "connection dropped" instead of the silence. #3111 made that more reachable: lost reply → closed session → redial → silence. keep_lost_call already says a silent target is stronger news than an earlier drop. This makes the deploy executor agree.

 wait_out_restart
   attempt answered by the Machine
-    answer = it            # even a lost reply
+    answer = it            # unless its reply was lost; that stays in `lost` only

An earlier real answer still stands in for a later silence (a_machine_that_answered_then_went_silent_keeps_its_answer).

DESIGN.md bets

  • Bet 4 (partial results are outcomes): the deploy reports the stronger news, a silent target.

  • Bet 10 (client-first): a CLI-only change.
  • Stable promise: additive only. No RPC, wire or Store change.

    Evidence

    a_target_silent_after_a_lost_reply_and_a_redial_is_reported_silent
      Run → reply lost; Run → closed; redial; Run → silent …   before: lost reply reported ✗   after: target_unanswered ✓
    

    deploy::exec tests: 216 pass. cargo clippy -p ployz --all-targets is clean. No Incus run: the change only alters which error an already failing call reports, and the test drives wait_out_restart directly.

    Merge Danger

    Door: two-way.

    Blast Radius: narrow. Only the error message of a deploy call that lost its reply and then met a silent target changes.

    Diff: 209 lines (+156 / -53) across 2 files Reviewer: nick-potts Review duration: 128m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 209 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.320
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3143"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.8% · Safe to merge
    15.8%
    Repository