fix(setup): kernel boot honours rig setup --providers #1817
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 638 lines diff across 7 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.386
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1817"
general
weight: 0.35
mvschwarz
What a user gets
After
rig setup --providers codex, the kernel starts with only Codex seats, even when Claude Code is also signed in. Before this, the choice wasn't saved, so the kernel picked its team from the sign-in check alone. A signed-in but exhausted Claude account then gave the person Claude seats that sat at the usage-limit menu.The change
provider.selected:claude,codexorclaude,codex. It's empty when no choice was recorded. It's declared in both config stores with the same validator, it shows in the settings browser, and it has a help line and a TUI label.rig setup --providerssaves the choice there as a newproviders_recordstep, for the kernel's first boot. A kernel that already exists keeps its seats, and setup says so. It also says when anOPENRIG_PROVIDER_SELECTEDin its own environment takes precedence. A dry run says what it would record. Without--providers, nothing is recorded. If the save fails, setup shows a warning with therig config setcommand, and readiness is unchanged.--providersto change it.rig config get provider.selectedbefore inferring from the kernel's runtimes.Unchanged: with no choice recorded, kernel boot works as before.
One new stop: with only Codex chosen, Codex signed out and Claude signed in, kernel boot now stops with the named error (
auth_blocked) where it used to boot a Claude-only kernel. The same holds the other way for a Claude-only choice. It follows from honouring the choice, and it's called out here for review.Cost: source +105/−7 across 8 files (one of them the operator guidance), tests +114/−1 across 6 files (numstat).
How you verified it
New tests:
claude,codexin a fixed order, records nothing without the flag or on a dry run, and warns when the save fails;codex loginand not Claude's;claude,codex, the two together, or empty.Results, in a network-off Linux container at the exact commits:
expected 'rig.yaml' to be 'rig-codex-only.yaml'andUnknown config key "provider.selected". The control, an empty choice keeping today's pick, passes. CLI 159 of 164, daemon 130 of 137.setup,setup-output,setup-doctor-auth,setup-herdr,config-store-extended,config,config-get-with-source), daemon 159 of 159 (kernel-boot,user-settings-store,user-settings-routes,settings-browser,kernel-role-orientation), TUI 17 of 17 (config-model,presentation-guidance).tsc) passed in the same run. CI runs the full suite and the first-run reference check on the operator guidance.cd7bb64b, wording plus one assertion on it): CI only, since the executor was in use.Not run: a real kernel boot on a machine with both providers signed in.
Anything you were unsure about
--providers bothasclaude,codex. A hand-set value goes through the same validator in both stores, which also acceptscodex,claude.CHANGELOG.mdedit🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Setup can save a selected provider choice, and kernel startup uses that choice to determine which providers are available. Existing kernels keep their current provider seats.
The configuration setting shows the saved provider choice. Leaving it empty preserves the default behavior of using all signed-in providers.
Dry runs display the provider choice that would be saved without recording it. The
OPENRIG_PROVIDER_SELECTEDenvironment variable takes precedence when set.If a selected provider is unavailable, the startup message identifies it and provides next steps.
Bug Fixes
* Setup continues successfully if saving the provider choice fails, and displays a warning with a recovery command.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->