Hmbown/CodeWhale · error
Full Access cannot override
Error message
Full Access cannot override {}; change that controlling source first What it means
When applying the HighTrustLocal runtime preset, the code additionally checks whether the approval policy is controlled by a non-editable root (e.g. a managed or enterprise policy source). If `approval_policy_control(...).editable_root()` is false, Full Access cannot be granted from the runtime and the controlling source label is reported.
Solutions
- Inspect `approval.label()` in the message and change the approval policy at that controlling source (admin/policy owner action)
- Ask your administrator to grant Full Access through the managed configuration instead
- Apply a preset other than HighTrustLocal that does not require overriding the approval policy
Defensive patterns
Strategy: validation
Validate before calling
let approval = config.approval_policy_control(
config_path.as_deref(), profile.as_deref(), &workspace);
if preset == SetupRuntimePreset::HighTrustLocal && !approval.editable_root() {
eprintln!("Full Access is locked by {}", approval.label());
return;
} Try / catch
match apply_preset(SetupRuntimePreset::HighTrustLocal) {
Err(e) if e.to_string().starts_with("Full Access cannot override") => {
// direct the user to the controlling source named in the message
}
r => r,
} Prevention
- Grant Full Access via the managed/policy configuration rather than the runtime in managed installs
- Verify `approval_policy_control(...).editable_root()` before attempting HighTrustLocal
- Document to users that enterprise-managed approval policy cannot be self-elevated
When it happens
Trigger: Applying `SetupRuntimePreset::HighTrustLocal` when the approval policy's controlling source is not an editable root — typically a managed config, policy file, or CLI-level control.
Common situations: Corporate/enterprise-managed installs where approval policy is locked by administrators; running with security flags that fix the approval policy; trying to self-elevate Full Access in a managed environment.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- agent profile provider cannot be empty
- agent profile provider must be a simple provider id
- Antigravity cloud-code request is missing a model id
- app-server auth token cannot be empty
- approval_policy ' ' is not allowed by requirements ( )
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/ed90cd856b5f2c6b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/tui/ui/apply.rs:2860
state: codewhale_config::SetupState,
) -> Result<String> {
if let Some(source) = config.runtime_preset_blocker(
app.config_path.as_deref(),
app.config_profile.as_deref(),
&app.workspace,
) {
anyhow::bail!(
"Runtime presets cannot override {source}; change that controlling source first"
);
}
if preset == crate::tui::setup::SetupRuntimePreset::HighTrustLocal {
let approval = config.approval_policy_control(
app.config_path.as_deref(),
app.config_profile.as_deref(),
&app.workspace,
);
if !approval.editable_root() {
anyhow::bail!(
"Full Access cannot override {}; change that controlling source first",
approval.label()
);
}
}
let settings_path = Settings::path().context("failed to resolve settings path")?;
let settings_snapshot = RuntimePresetFileSnapshot::capture(settings_path)?;
// The preset's settings read, its config-document write, and its settings
// write are one durable transaction with file-snapshot rollback. Hold the
// settings transaction lock across all of it so a concurrent writer (a queued
// mode/thinking drain, the Shift+Tab posture write) can neither be lost by
// this save nor be reverted by the rollback.
// Every durable write happens inside this closure, so the settings lock is
// released before live state moves below.
crate::settings::with_settings_transaction(|settings_transaction| {
let mut settings = settings_transaction
.load()View on GitHub (pinned to 73e0f67d83)