fix: leave server settings out of the worker in any case #412
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 · 195 lines diff across 2 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.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #412"
general
weight: 0.35
chrisguidry
Prefect reads setting names in any case, so a work pool setting such as
prefect_api_urlchanged the worker's API URL even though the CRD rejectsPREFECT_API_URL. A case-insensitive CEL rule oversettingsexceeds the CRD's cost budget, so the CRD rule stays exact-case.PREFECT_API_URL,PREFECT_API_KEY, orPREFECT_API_AUTH_STRINGin any case. TheSettingsAppliedcondition and a Warning event name what it left out.InvalidSpecwhile its old worker Deployment keeps running.deploymentTemplatecan't add an API key whenspec.serverhas none.This also fixes the work pool status update. The controller compared the status against a shallow copy, and
meta.SetStatusConditionchanges conditions in place, so a change to an existing condition was never saved. It now compares against a deep copy.Rollout caveats
watch: SettingsApplied conditions on work pools after upgrade. Each one names a setting the worker no longer gets.<details>
<summary>Session context</summary>
The status bug only showed up when a pool had both a deployment template and a left-out setting.
meta.RemoveStatusConditionalways allocates a new slice, which hid the shallow copy in the other cases, so the regression test sets up both.</details>
🤖 Generated with Claude Code