Persona K40 fix-up: the close-and-reopen test's kept entry names her own line as its close, as K40 requires of a reopen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0aa839ff14
commit
cab4f601ce
1 changed files with 2 additions and 0 deletions
|
|
@ -859,6 +859,8 @@ fn k36_no_close_and_reopen_in_one_turn() {
|
|||
assert_eq!((state["commitments"][0]["status"].as_str(), reasons(&applied)), (Some("kept"), vec![json!("closed_this_turn")]), "{applied:?}");
|
||||
let mut kept = holding("kept");
|
||||
kept["commitments"][0]["closedAt"] = json!(now().to_rfc3339());
|
||||
// Her own line closed it (K40: only such a close is hers to reopen).
|
||||
kept["commitments"][0]["closedBy"] = json!({ "act": "said", "event": "8", "words": "Sent it." });
|
||||
let (state, applied) = apply(&kept, &record(json!([reopen, close(How::Kept, Evidence::Draft(1))]), listing(&kept), true), PROSE, "r1-t2", now());
|
||||
assert_eq!((state["commitments"][0]["status"].as_str(), reasons(&applied)), (Some("open"), vec![json!("already_closed")]), "{applied:?}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue