From 51c8223dd4994f93b8e8f7adf41611f7f94f1f57 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 22 Nov 2026 03:12:34 +0100 Subject: [PATCH] Persona K36 fix-up: the tests list the reopened entry as the listing names it, and expect the reopen field and the new promise heading Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/commit/tests.rs | 3 +-- crates/mind-body/src/projection/interpret/tests.rs | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/mind-body/src/projection/commit/tests.rs b/crates/mind-body/src/projection/commit/tests.rs index e8e5ed2..745effe 100644 --- a/crates/mind-body/src/projection/commit/tests.rs +++ b/crates/mind-body/src/projection/commit/tests.rs @@ -775,12 +775,11 @@ const F2_R9_PROSE: &str = "Kiko's summary is right, and I wouldn't change any of const F2_R9_DRAFT: &str = "Kiko, that summary matches what I know. Two things to add: it isn't deployed yet, and I read only the description, not the diff. The PR is also one heimdall opened, so my reading isn't an independent check. Someone running it in a real browser would settle more than I can."; const F2_R9_WORDS: &str = "I read only the description, not the diff"; -/// c-r1-t9-1 after r8: kept by his r8 line, needing #85, with #85's receipt, closed a few minutes ago in this +/// c-r1-t9-1 after r8 (as `holding_one`'s entry): kept by his r8 line, needing #85, with #85's receipt, closed a few minutes ago in this /// conversation; its status `status`. fn f2_after_r8(status: &str) -> Value { let mut c1 = holding_one(KIKO, F2_PROMISE, &read_need("GameCult/Bifrost#85"), status); let entry = &mut c1["commitments"][0]; - entry["id"] = json!("c-r1-t9-1"); entry["readAt"] = json!((now() - Duration::minutes(6)).to_rfc3339()); entry["readId"] = json!("r1-t16-r1"); entry["readOf"] = json!("repo:gamecult/bifrost#85"); diff --git a/crates/mind-body/src/projection/interpret/tests.rs b/crates/mind-body/src/projection/interpret/tests.rs index 49be9db..a642e57 100644 --- a/crates/mind-body/src/projection/interpret/tests.rs +++ b/crates/mind-body/src/projection/interpret/tests.rs @@ -487,7 +487,7 @@ fn an_amendment_off_the_list_a_second_one_or_one_reusing_a_draft_is_refused_and_ #[test] fn the_interpreter_sees_his_lines_by_id_never_by_event_and_is_told_he_never_takes_a_word_back() { let prompt = speech_prompt(&amendable_packet(), "x", "y", &Tuning::default()); - assert!(prompt.contains("His own lines in this room that he may add to, as id \u{2014} line:\n- a1 \u{2014} \"I'll send the file tonight.\"\n- a2 \u{2014} \"Back soon.\"\n\nHis open promises, as id"), "{prompt}"); + assert!(prompt.contains("His own lines in this room that he may add to, as id \u{2014} line:\n- a1 \u{2014} \"I'll send the file tonight.\"\n- a2 \u{2014} \"Back soon.\"\n\nHis promises, open and closed in this conversation, as id"), "{prompt}"); assert!(!prompt.contains("$ev-"), "the actuator's handle is never shown to a model: {prompt}"); assert!(prompt.contains("The line stays as it was and the draft is added after it; he never takes a word back."), "{prompt}"); assert!(speech_prompt(&packet(), "x", "y", &Tuning::default()).contains("may add to, as id \u{2014} line:\n- none\n")); @@ -812,7 +812,7 @@ fn k24_a_read_is_what_her_thought_reaches_for_and_nothing_a_model_made_up() { assert_eq!(cannot["read_refused"][0]["why"], "no_read_here", "{cannot}"); let prompt = speech_prompt(&reading, "x", prose, &Tuning::default()); assert!(prompt.contains("`read` names one thing he reaches for") && !speech_prompt(&packet(), "x", prose, &Tuning::default()).contains("`read` names"), "the read contract only on a turn that can read"); - assert!(SPEECH_SCHEMA.contains(r#""required":["say","gaps","amend","suggest","state","read","unsent"]"#)); + assert!(SPEECH_SCHEMA.contains(r#""required":["say","gaps","amend","suggest","state","reopen","read","unsent"]"#)); } /// Soul's R6: a later call decides over the whole wake. Drafts are numbered across it and an earlier one may still be @@ -1514,7 +1514,7 @@ fn k35_no_read_evidence() { let decision = decide(&model, "test", &reading_packet(), "The room is warm.", prose, &Tuning::default()); assert_eq!((decision["state"].clone(), decision["state_unused"].as_array().map(Vec::len)), (json!([]), Some(1)), "{evidence}: {decision}"); } - assert!(SPEECH_SCHEMA.contains(r#""required":["say","gaps","amend","suggest","state","read","unsent"]"#) && SPEECH_SCHEMA.contains(r#""evidence":{"type":"object","additionalProperties":false,"required":["draft","line"],"#)); + assert!(SPEECH_SCHEMA.contains(r#""required":["say","gaps","amend","suggest","state","reopen","read","unsent"]"#) && SPEECH_SCHEMA.contains(r#""evidence":{"type":"object","additionalProperties":false,"required":["draft","line"],"#)); assert!(!SPEECH_SCHEMA.contains(r#""need":"#)); }