Persona K51: pin the words gate's fixpoint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9b09a885bf
commit
fbad23b65c
1 changed files with 11 additions and 0 deletions
|
|
@ -2519,3 +2519,14 @@ fn k54_a_model_error_on_retry_keeps_the_first_answer() {
|
|||
let failed = decide(&OffThenError(std::cell::Cell::new(0)), "test", &x1_packet(), "The room is warm.", P3_PROSE, &Tuning::default());
|
||||
assert_eq!((failed["failed"].as_str(), failed["retried"]["failed"].as_str(), failed.get("said")), (Some("the connector timed out"), Some("the answer is not the speech contract"), None), "{failed}");
|
||||
}
|
||||
|
||||
/// K51's fixpoint: a line held for repeating a held text joins what is held, so a line that shares a run of words only
|
||||
/// with it is held too. One round would let "Kiko, here it is: as I said" go out beside the held welcome.
|
||||
#[test]
|
||||
fn k51_the_gate_runs_until_nothing_changes() {
|
||||
let (_, p2) = held_then_kiko_asks(&[K45_WELCOME]);
|
||||
let prose = format!("Kiko asked. <typed>Kiko, here it is: {K45_WELCOME}</typed> <typed>Kiko, here it is: as I said.</typed>");
|
||||
let d = answered(&p2, &prose, json!({ "say": [say_holding(1, json!([])), say_holding(2, json!([]))], "gaps": [] }));
|
||||
let reasons: Vec<Option<&str>> = d["refused"].as_array().unwrap().iter().map(|refused| refused["reason"].as_str()).collect();
|
||||
assert_eq!((texts(&d), reasons), (Vec::<String>::new(), vec![Some("held"); 2]), "{d}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue