Say in ctx that no Server is reached when the config picks no context #3193
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.63) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 296 lines diff across 3 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.341
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #3193"
general
weight: 0.35
nick-potts
Fixes #3186
Summary
Signed out, with a config file that sets no current context,
ployz ctxprintedservers = via local. But commands only dial the local socket when there is no config file at all. With one, they fail with "current context is not set" (exit 2) or "no contexts found" (exit 1,next: ployz login). Soctxdescribed a connection no command would make.Rebuilt on #3183's
servers(). With a config file and no current context,ctxnow asksselect_connections, the same choice commands make, and reports what it says:| Config state |
serversbefore |serversafter |nextafter ||---|---|---|---|
| file sets no current context |
via local|(none: no current context)|ployz ctx use CONTEXT|| file has no contexts |
via local|(none: no contexts)|ployz login|| no config file | main's local socket display | unchanged | unchanged |
| the config file can't be parsed | error | error (unchanged) | unchanged |
Signed in to Cloud,
--connect,--contextand a current context all show what they did before. Connection resolution itself is unchanged.Bets
--jsonshape change.servers.viacan take a new value,"none", andnextnames the step for these two states. Nothing indashboard/, the SDK or the docs enumeratesviavalues.ctxnow says only what a command would actually do.Evidence
Tests. Each failed first and passes now:
ctx_names_no_servers_when_the_config_picks_no_context: both states, human and--json. It also checks thatserver lsfails there too.ctx_refuses_a_malformed_config: guards the round 2 finding below.On the head,
config_clipasses 134 and thehandlers::linkunit tests pass 9.cargo clippy -p ployz --testsand fmt are clean.Review. Codex:
ctxfail. Then the catch-all fix for it turned a malformed config intovia local. Both cases are kept: the local path is main's own, and a parse error still fails, with a test.select_connectionsdoes no I/O.