pub fn update_spec(
spec: &mut Spec,
spec_path: &Path,
options: UpdateOptions,
) -> Result<()>Expand description
Update spec fields with validation.
This is the canonical update logic used by both CLI and MCP. Status transitions are validated via the state machine.