← Back to Pull requests

Show Installing Docker, not 'start Docker', while ployz-prepare installs it #3197

Closed
unknown closed this pull request without merging on Oct 23, 2026 06:21 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 05:50 UTC
Author

Fixes #3159. While Ployz's own ployz-prepare installs Docker, check-in no longer reports Blocked: Docker is installed but not running. Start it…. It shows Installing Docker instead. A user's own stopped Docker still blocks.

Summary

 check_in
   seen = host.prepare_running()
+  confirmed = seen == Ok(true)          // only a unit seen active may vouch
   running   = seen, or true if unreadable // unchanged: still guards against a second prepare
-  probe.report(hostname, state)
+  after check-in starts ployz-prepare itself: confirmed = prepare_running() == Ok(true)
+  probe.report(hostname, state, confirmed)

 Probe::report
+  if confirmed && state.json docker step == installing
+    drop only the `docker_stopped` blocker   → headline falls through to Installing Docker

dpkg registers docker-ce before the unit is enabled and started. In that window the probe sees "installed, not running". Check-in drops that one blocker only with positive evidence that Ployz is mid-install: the unit is active, and the Docker step in /var/lib/ployz/prepare/state.json is installing. An unreadable unit, a missing state file (prepare may still be in dpkg --configure -a), a stale installing with the unit stopped, or a finished install all keep the blocker.

Stable promise: nothing changes on the wire or in a file format. Cloud gets the same check-in payload shape. Only the blocker list differs in that window.

Evidence

Tests in checkin_tests.rs assert what Cloud received and the headline:

| prepare unit | Docker step in state.json | result |
|---|---|---|
| active | installing | Installing Docker (Blocked on main) |
| unreadable | installing | Blocked |
| active | no state file | Blocked |
| stopped | installing (stale) | Blocked |
| active | done | Blocked |
| stopped | none | Blocked |

  • docker_stopped_mid_install_reads_as_installing_docker failed before the fix.

  • docker_stopped_blocks_when_the_preparation_unit_cannot_be_read and docker_stopped_blocks_while_preparing_before_docker_has_begun failed against the first fix and pass now.

  • docker_stopped_reads_as_installing_docker_once_a_retry_starts_the_preparation covers the pass that retries an abandoned install and starts the unit itself. It failed before the follow-up fix, which came from the Codex bot's review on this PR.

  • cargo nextest -p ployz checkin: 165 passed. cargo clippy -p ployz -D warnings is clean.
  • There's no real-host proof: the shared build host was out of memory, and coordination asked for no new verify clusters. The dpkg window is about a minute of a 2-minute install, and the tests cover each input combination.

    Independent review: codex/gpt-6.1-sol found two cases where a user's own stopped Docker could read as Installing Docker: an unreadable unit, and a missing state file. Both are fixed here, as the table shows.

    Merge Danger

    Door: two-way

    Blast Radius: check-in headline

    It changes one blocker during one install window, on Fleet-path hosts only.

    Diff: 379 lines (+284 / -95) across 4 files Reviewer: nick-potts Review duration: 31m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.43) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 379 lines diff across 4 files
    0.43
    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.355
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3197"
    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: 42.9% (MEDIUM) · Higher = larger blast radius
    42.9%
    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: 18.6% · Safe to merge
    18.6%
    Repository