persona tests: the report takes the run by reference

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-01 16:20:09 +01:00
commit b1c5e44d58

View file

@ -473,7 +473,7 @@ fn the_interpreter_runs_after_each_wake_and_the_report_says_what_it_did() {
let personas = run["metrics"]["personas"].as_object().unwrap();
assert!(personas.values().all(|persona| persona["interpreter"]["calls"] == persona["turns"] && persona["interpreter"]["intentions_added"] == persona["turns"]), "{personas:?}");
let plan_file: SimFile = toml::from_str(&std::fs::read_to_string(&path).unwrap()).unwrap();
let report = markdown(&path, &plan_file, &members, None, &[run.clone()]);
let report = markdown(&path, &plan_file, &members, None, std::slice::from_ref(&run));
assert!(report.contains("### Interpreter by wake") && report.contains("intention added") && report.contains("She means to say what the build did."), "{report}");
assert!(!report.contains("the Interpreter's lines, each posted"), "the header no longer claims a speech it does not run");
assert!(members.iter().all(|member| member.state["candidateActions"]["actions"].as_array().is_none_or(|actions| actions.iter().all(|action| action["customActionType"] != "intention"))), "a run moves its own copy, never the cast's");