Fix CLI waiting-list commands failing on Cloud's trimmed report #2251
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
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
coderabbitai[bot]
Every CLI command that reads the waiting list failed with
missing field path. That coversserver ls --waiting(with or without--json),server enroll,server reject, and the waiting fallback inserver show. Since 1898e3b24, Cloud'sGET waiting-serverssends a trimmed report. Disks keep onlyroleandsizeBytes, andarch,virt,docker,warningsandpublicIpare 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:
providerandprep.server showpicks the host from the list as before, then readsGET 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 realGET waiting-serversandGET waiting-servers/:idhandlers, and fails if their replies differ from the fixture. To regenerate it, runpnpm waiting:fixtureindashboard/. This is the same pattern aspublished-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 79handlers::servertests pass.Soak row: cli-108.