pub fn decide( root: &Path, id: &str, action: Action, note: Option<&str>, now: u64, ) -> Result<Decision, String>