Skip to main content

check_auto_close

Function check_auto_close 

Source
pub fn check_auto_close(goal_id: &str, db: &Db) -> Option<Event>
Expand description

Evaluate whether a goal should auto-close under default policy.

This returns a synthetic item.move event with agent = "bones" and reason "all children complete" when a transition should be emitted.

Errors are intentionally swallowed in this convenience wrapper.