Hmbown/CodeWhale · error · anyhow::Error
Automation execution ownership is unverified
Error message
Automation execution ownership is unverified
What it means
adopt_for_run's scope precondition: the automation manager's execution ownership is unverified (no execution scope recorded), so the runtime refuses to run the automation rather than executing it under unknown ownership.
Solutions
- Bind the Runtime's execution scope before adopting automations for a run (see adopt_for_run).
- Recover the automation under the Runtime instance that originally owns it so execution_scope is set.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/automation_manager.rs:2084 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/6890007254c599be.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/automation_manager.rs:2084
model_provider_id: automation.model_provider_id.clone(),
workspace: automation.cwds.first().cloned(),
mode: Some(automation.task_mode()),
allow_shell: Some(automation.task_allow_shell()),
trust_mode: Some(automation.task_trust_mode()),
auto_approve: Some(automation.task_auto_approve()),
permission_posture: Some(automation_posture(automation.task_auto_approve())),
owner_session_id: None,
}
}
fn bind_run_dispatch(
run: &mut AutomationRunRecord,
automation: &AutomationRecord,
task_data_dir: &Path,
scheduled: bool,
) -> Result<()> {
if automation.execution_scope.is_none() {
bail!("Automation execution ownership is unverified");
}
run.schema_version = CURRENT_RUN_SCHEMA_VERSION;
run.task_id = Some(crate::task_manager::TaskManager::new_task_id());
run.dispatch = Some(AutomationDispatch {
execution_scope: automation.execution_scope.clone(),
request: automation_task_request(automation),
task_data_dir: task_data_dir
.canonicalize()
.context("resolve task store before automation admission")?,
accepted: false,
delivery_mode: automation.delivery_mode(),
suppress_report: false,
schedule: scheduled.then(|| AdmittedSchedule {
updated_at: automation.updated_at,
rrule: automation.rrule.clone(),
}),
});
Ok(())View on GitHub (pinned to 73e0f67d83)