diff --git a/crates/mind-body/src/projection/simulate.rs b/crates/mind-body/src/projection/simulate.rs index ae8fd4d..4e03dbd 100644 --- a/crates/mind-body/src/projection/simulate.rs +++ b/crates/mind-body/src/projection/simulate.rs @@ -690,14 +690,11 @@ fn metrics(members: &[Member], lines: &[Line], rounds_of: &[usize], causes: &[Op }) .collect(); let near_cap = interpreter_calls.iter().filter(|out| **out * 4 > u64::from(MAX_OUTPUT_TOKENS) * 3).count(); - // The wakes that ended with someone who turned to her owed an answer (K69a): code's `unanswered`, per decided wake. - let unanswered = turns.iter().filter(|turn| turn["outcome"] != "failed" && turn["report"]["renders"][0]["interpreter"]["unanswered"].as_array().is_some_and(|owed| !owed.is_empty())).count(); // The closes the commit applied, for the false-close rate's denominator (map 16.28.4): a blind reader judges each. let committed = |key: &str| turns.iter().flat_map(|turn| turn["committed"][key].as_array().cloned().unwrap_or_default()).collect::>(); let closed_how = |how: &str| committed("closed").iter().filter(|done| done["how"] == how).count(); json!({ "interpreter_calls": { "calls": interpreter_calls.len(), "over_three_quarters_of_cap": near_cap, "cap": MAX_OUTPUT_TOKENS }, - "addressed_unanswered": unanswered, "closes": { "kept": closed_how("kept"), "withdrawn": closed_how("withdrawn"), "reopened": committed("reopened").len() }, "narration": narration, "personas": per, @@ -867,7 +864,6 @@ fn markdown(plan_path: &Path, plan: &SimFile, members: &[Member], group_state: O let _ = writeln!(out, "- closes: kept {}, withdrawn {}, reopened {}", metrics["closes"]["kept"], metrics["closes"]["withdrawn"], metrics["closes"]["reopened"]); let calls = &metrics["interpreter_calls"]; let _ = writeln!(out, "- Interpreter calls: {}; over 75% of the cap ({} output tokens): {}", calls["calls"], calls["cap"], calls["over_three_quarters_of_cap"]); - let _ = writeln!(out, "- addressed and unanswered at the wake's end: {}", metrics["addressed_unanswered"]); if let Some(rooms) = metrics["reply_chains"].as_object() { for (room, chain) in rooms { let _ = writeln!(out, "- reply chains in {room}: longest {}, chains of 3 or more {}, Mind-to-Mind replies {}", chain["longest"], chain["chains_of_3_or_more"], chain["mind_to_mind_replies"]); diff --git a/crates/mind-body/src/projection/simulate/tests.rs b/crates/mind-body/src/projection/simulate/tests.rs index 43330cc..848fbc5 100644 --- a/crates/mind-body/src/projection/simulate/tests.rs +++ b/crates/mind-body/src/projection/simulate/tests.rs @@ -1081,9 +1081,6 @@ fn k65_a_decided_wake_marks_its_room_seen() { for later in libby.iter().filter(|turn| turn["round"].as_u64() > Some(round)) { assert!(!later["report"]["packet"]["stimulus"].as_str().unwrap_or_default().contains(X5_HEIMDALL), "seen once: {later}"); } - // K69a: her welcome mentions no one, so the wake ends with Heimdall owed, and the run counts it. - assert!(heard["report"]["renders"][0]["interpreter"]["unanswered"].as_array().unwrap().contains(&json!("@heimdall:gamecult.org")), "{heard}"); - assert!(run["metrics"]["addressed_unanswered"].as_u64() >= Some(1), "{}", run["metrics"]); } /// K65: a wake whose later step broke after a line went out (`broke_after`) still advances what she has seen: a decision @@ -1141,7 +1138,7 @@ says = "Tobiah, what changed in GameCult/Lodur#12?" } let no_hold: Vec<&str> = prompt.lines().filter_map(|line| line.strip_prefix("- ")?.split_once(" (said to ")).map(|(id, _)| id).collect(); let read = json!({ "kind": "repo", "target": "GameCult/Lodur#12", "quote": "I want to see what changed" }); - json!({ "say": [{ "draft": 1, "mentions": ["@meta:gamecult.org"], "in_reply_to": null, "holds": [], "clear_of": [], "promises": [] }], "gaps": [], "no_hold": no_hold, "no_answer": [], "read": read }).to_string() + json!({ "say": [{ "draft": 1, "mentions": ["@meta:gamecult.org"], "in_reply_to": null, "holds": [], "clear_of": [], "promises": [] }], "gaps": [], "no_hold": no_hold, "read": read }).to_string() }); struct BreaksLater<'a>(&'a Scripted); impl Model for BreaksLater<'_> {