pub fn close_failed(
mana_dir: &Path,
id: &str,
reason: Option<String>,
) -> Result<Unit, Error>Expand description
Mark a unit as explicitly failed. Stays open with claim released.
Records the failure in attempt_log for episodic memory and appends a structured failure summary to notes.