pub fn outlines(
records: &[IntentRecord],
gaps: &[GapRecord],
) -> Vec<IntentOutline>Expand description
What the planning half needs of each record: its criteria, its milestones, whether it is retired, and the criteria its recorded gap observed already satisfied.
use majordomus_cli::intent::{outlines, IntentRecord};
use serde_json::json;
let r = IntentRecord::from_metadata(".ai/repo/project/intents/x.yaml", &json!({
"id": "x", "milestones": ["m"],
"satisfaction": [{"id": "c", "evidence": "test", "ref": "t"}]}));
let o = outlines(std::slice::from_ref(&r), &[]);
assert_eq!(o[0].criteria, ["c"]);
assert!(!o[0].retired);