Persona K60: the schema pins, the amendment record and Soul's p2 answer carry clear_of

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-22 17:05:39 +01:00
commit 5c371d1a6d

View file

@ -485,7 +485,7 @@ pub(crate) fn amendable_packet() -> Packet {
fn an_amendment_adds_a_whole_draft_after_a_listed_line_of_his_and_rewrites_nothing() {
let prose = "I should fix what I told Kiko. <typed>Couldn't send it after all; there's no way to yet.</typed>";
let decision = answered(&amendable_packet(), prose, json!({ "say": [], "gaps": [], "amend": [{ "target": "a1", "draft": 1, "text": "MODEL-WORDS the file was sent" }] }));
assert_eq!(decision["amended"], json!([{ "target": "a1", "event": "$ev-1", "room": MINDS, "original": "I'll send the file tonight.", "added": "Couldn't send it after all; there's no way to yet.", "draft": 1 }]), "{decision}");
assert_eq!(decision["amended"], json!([{ "target": "a1", "event": "$ev-1", "room": MINDS, "original": "I'll send the file tonight.", "added": "Couldn't send it after all; there's no way to yet.", "draft": 1, "clear_of": [] }]), "{decision}");
assert!(!decision.to_string().contains("MODEL-WORDS"), "the model writes none of his words");
}
@ -643,7 +643,7 @@ fn k21_a_lines_promises_words_found_in_it_are_the_promise_gap() {
let twice = answered(&packet(), prose, json!({ "say": [{ "draft": 1, "mentions": [], "in_reply_to": null, "promises": [{ "words": "I'll send the render tonight.", "to": null, "needs": { "kind": "lacking", "read": null } }] }], "gaps": [{ "kind": "missing_affordance", "draft": 1, "quote": null, "detail": "" }] }));
assert_eq!(twice["gaps"].as_array().unwrap().len(), 1, "{twice}");
let prompt = speech_prompt(&packet(), "x", "y", &Tuning::default());
assert!(prompt.contains("(`promises`, a list, empty when it promises nothing)") && SPEECH_SCHEMA.contains(r#""required":["draft","mentions","in_reply_to","holds","promises"]"#), "{prompt}");
assert!(prompt.contains("(`promises`, a list, empty when it promises nothing)") && SPEECH_SCHEMA.contains(r#""required":["draft","mentions","in_reply_to","holds","clear_of","promises"]"#), "{prompt}");
}
/// Soul's probe at 0cfc386: the reach names no draft and quotes the said one by its words. It is the promise on that draft,
@ -752,7 +752,7 @@ fn k21_a_promise_is_four_words_or_more_found_case_blind_and_an_addition_carries_
assert_eq!(amend(json!("send"))["promises_unused"][0]["why"], "fewer than four words");
assert!(amend(Value::Null)["gaps"].as_array().unwrap().is_empty());
let prompt = speech_prompt(&amendable_packet(), "x", "y", &Tuning::default());
assert!(prompt.contains("and what it promises, as a line's `promises`") && SPEECH_SCHEMA.contains(r#""required":["target","draft","holds","promises"]"#), "{prompt}");
assert!(prompt.contains("and what it promises, as a line's `promises`") && SPEECH_SCHEMA.contains(r#""required":["target","draft","holds","clear_of","promises"]"#), "{prompt}");
}
/// B1: the Interpreter is told that telling the person she cannot do it is a withdrawal, the close of a blocked promise.
@ -784,7 +784,7 @@ fn b3_a_line_carries_several_promises_and_each_undoable_one_is_its_own_gap() {
assert_eq!(both["gaps"].as_array().unwrap().len(), 2, "{both}");
let prompt = speech_prompt(&packet(), "x", "y", &Tuning::default());
assert!(prompt.contains("`words` when what he already has keeps it; finding anything out is a `read`, naming what to read in `read`, or `lacking` when no read reaches it."), "{prompt}");
assert!(SPEECH_SCHEMA.contains(r#""required":["target","draft","holds","promises"]"#));
assert!(SPEECH_SCHEMA.contains(r#""required":["target","draft","holds","clear_of","promises"]"#));
}
// ---------------------------------------------------------------------------------------------
@ -2049,7 +2049,7 @@ fn k47_p2_a_typographic_apostrophe_locates() {
let curly = X1_META_R1.replace("don't", "don\u{2019}t");
packet.quotable[0].text = curly.clone();
packet.bodies[0] = curly;
let answer = json!({ "say": [say_holding(1, json!(["q3"])), say_holding(2, json!([]))], "gaps": [], "hold": meta_holds_here() }).to_string();
let answer = judged(json!({ "say": [say_holding(1, json!(["q3"])), say_holding(2, json!([]))], "gaps": [], "hold": meta_holds_here() }), &packet).to_string();
let model = answering(vec![answer]);
let decision = decide(&model, "test", &packet, "The room is warm.", X1_LIBBY_R1, &Tuning::default());
assert_eq!((decision.get("failed"), decision.get("retried"), decision.get("hold_faults")), (None, None, None), "{decision}");