← Back to Pull requests

Fix CLI waiting-list commands failing on Cloud's trimmed report #2251

Open
unknown opened this pull request with 177 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 19, 2026 00:07 UTC
Author

Every CLI command that reads the waiting list failed with missing field path. That covers server ls --waiting (with or without --json), server enroll, server reject, and the waiting fallback in server show. Since 1898e3b24, Cloud's GET waiting-servers sends a trimmed report. Disks keep only role and sizeBytes, and arch, virt, docker, warnings and publicIp are gone. The CLI's list type still required all of them. Its unit fixture was hand-written with the full report, so the tests kept passing.

The list type now reads only what the list carries: provider and prep. server show picks the host from the list as before, then reads GET waiting-servers/:id, which still sends the full report.

To stop this contract drifting again, the CLI tests now parse core/crates/ployz/tests/fixtures/waiting-servers.json. A dashboard Postgres test writes that file. It seeds a waiting server, calls the real GET waiting-servers and GET waiting-servers/:id handlers, and fails if their replies differ from the fixture. To regenerate it, run pnpm waiting:fixture in dashboard/. This is the same pattern as published-manifest.json.

The first commit adds the fixture and points the existing tests at it. Eight tests fail on that commit with missing field path, which is the soak error. The second commit fixes the type, and all 79 handlers::server tests pass.

Soak row: cli-108.

Diff: 177 lines (+132 / -45) across 2 files Reviewer: coderabbitai[bot] Review duration: 7m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.35) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 177 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.310
Real PR Conversation Timeline
1 comments
"Review active on #2251"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 43.0% 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: 35.4% (MEDIUM) · Higher = larger blast radius
35.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: 43.0% · Lower = rushed or shallow review
43.0%
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: 20.2% · Safe to merge
20.2%
Repository