pub fn template_question(
dimensions: &[ObservedDimension],
windows: &[u32],
) -> StringExpand description
The kernel’s own wording of an observation (spec 3.2 §7.10): a neutral question built from the dimension names and directions alone.
§Example
use adk_kernel::proc::{Direction, ObservedDimension, is_neutral_question, template_question};
use chrono::NaiveDate;
let since = NaiveDate::from_ymd_opt(2026, 10, 12).unwrap();
let question = template_question(
&[ObservedDimension::new("activity.last_minute", Direction::Higher, since, 10)],
&[7, 14],
);
assert_eq!(
question,
"Your routine has changed over the last two weeks: the day's last activity has been \
later than usual. Would you like to review what changed?"
);
assert!(is_neutral_question(&question));