Hmbown/CodeWhale · error · anyhow::Error
Trigger schema v is newer than supported v
Error message
Trigger schema v{} is newer than supported v{} What it means
get_trigger forward-compatibility guard: the stored trigger file's schema version is newer than CURRENT_TRIGGER_SCHEMA_VERSION, so this build cannot safely interpret the record; it is refused rather than partially loaded.
Solutions
- Upgrade Codewhale to a build that supports trigger schema v{n} before reading the file.
- Regenerate or migrate the trigger record if it was written by a newer experimental binary.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/automation_manager.rs:1898 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/6c9523effb0dc72f.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/automation_manager.rs:1898
task_id: None,
thread_id: None,
error: None,
parent_trigger_id: req.parent_trigger_id,
dispatch: None,
};
self.save_trigger(&record)?;
Ok(record)
}
/// Load a trigger by id.
pub fn get_trigger(&self, trigger_id: &str) -> Result<DelayedTriggerRecord> {
let path = self.trigger_path(trigger_id)?;
let raw = fs::read_to_string(&path)
.with_context(|| format!("Trigger '{trigger_id}' not found"))?;
let record: DelayedTriggerRecord = serde_json::from_str(&raw)
.with_context(|| format!("Failed to parse trigger '{trigger_id}'"))?;
if record.schema_version > CURRENT_TRIGGER_SCHEMA_VERSION {
bail!(
"Trigger schema v{} is newer than supported v{}",
record.schema_version,
CURRENT_TRIGGER_SCHEMA_VERSION
);
}
Ok(record)
}
/// Load a trigger only when it belongs to the given session.
///
/// Foreign, ownerless legacy, unreadable, and absent records share the same
/// result so trigger existence cannot be disclosed across sessions.
pub fn get_trigger_for_owner(
&self,
trigger_id: &str,
owner_session_id: &str,
) -> Result<DelayedTriggerRecord> {
self.get_trigger(trigger_id)View on GitHub (pinned to 73e0f67d83)