{"record":{"id":"6c9523effb0dc72f","repo":"Hmbown/CodeWhale","slug":"trigger-schema-v-is-newer-than-supported-v","errorCode":null,"errorMessage":"Trigger schema v{} is newer than supported v{}","messagePattern":"Trigger schema v(.+?) is newer than supported v(.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/automation_manager.rs","lineNumber":1898,"sourceCode":"            task_id: None,\n            thread_id: None,\n            error: None,\n            parent_trigger_id: req.parent_trigger_id,\n            dispatch: None,\n        };\n        self.save_trigger(&record)?;\n        Ok(record)\n    }\n\n    /// Load a trigger by id.\n    pub fn get_trigger(&self, trigger_id: &str) -> Result<DelayedTriggerRecord> {\n        let path = self.trigger_path(trigger_id)?;\n        let raw = fs::read_to_string(&path)\n            .with_context(|| format!(\"Trigger '{trigger_id}' not found\"))?;\n        let record: DelayedTriggerRecord = serde_json::from_str(&raw)\n            .with_context(|| format!(\"Failed to parse trigger '{trigger_id}'\"))?;\n        if record.schema_version > CURRENT_TRIGGER_SCHEMA_VERSION {\n            bail!(\n                \"Trigger schema v{} is newer than supported v{}\",\n                record.schema_version,\n                CURRENT_TRIGGER_SCHEMA_VERSION\n            );\n        }\n        Ok(record)\n    }\n\n    /// Load a trigger only when it belongs to the given session.\n    ///\n    /// Foreign, ownerless legacy, unreadable, and absent records share the same\n    /// result so trigger existence cannot be disclosed across sessions.\n    pub fn get_trigger_for_owner(\n        &self,\n        trigger_id: &str,\n        owner_session_id: &str,\n    ) -> Result<DelayedTriggerRecord> {\n        self.get_trigger(trigger_id)","sourceCodeStart":1880,"sourceCodeEnd":1916,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/automation_manager.rs#L1880-L1916","documentation":"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.","triggerScenarios":"Thrown at crates/tui/src/automation_manager.rs:1898 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}