diff --git a/server/src/pipeline_state/projection.rs b/server/src/pipeline_state/projection.rs index 064d28c7..b2afd5d1 100644 --- a/server/src/pipeline_state/projection.rs +++ b/server/src/pipeline_state/projection.rs @@ -131,18 +131,12 @@ pub fn project_stage(view: &PipelineItemView) -> Result }) } "7_frozen" => { - // The stage to resume to is stored in front matter as `resume_to_stage`. - // Fall back to Coding if the field is absent (e.g. legacy frozen items). - let resume_to = crate::db::read_content(view.story_id()) - .and_then(|content| { - crate::db::yaml_legacy::parse_front_matter(&content) - .ok() - .and_then(|m| m.resume_to_stage) - .and_then(|dir| Stage::from_dir(&dir)) - }) - .unwrap_or(Stage::Coding); + // Story 929: resume_to was previously read from YAML front matter; + // we default to Coding here. Story 934 will obviate this — frozen + // becomes a flag orthogonal to Stage, so the story stays in its + // current Stage rather than encoding a "where to go next" payload. Ok(Stage::Frozen { - resume_to: Box::new(resume_to), + resume_to: Box::new(Stage::Coding), }) } other => Err(ProjectionError::UnknownStage(other.to_string())),