From 0c9958149436e4fd81af019f7d5c0728eafaa957 Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 15 Jun 2026 13:49:20 +0700 Subject: [PATCH] test(viewer): add 2 confirmed "act of " survive-cases for the chronicle inter-beat strip (#890) --- viewer/tests/test_chronicle_dedup_opening.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/viewer/tests/test_chronicle_dedup_opening.py b/viewer/tests/test_chronicle_dedup_opening.py index 9de6b6b1..f640f25b 100644 --- a/viewer/tests/test_chronicle_dedup_opening.py +++ b/viewer/tests/test_chronicle_dedup_opening.py @@ -187,6 +187,12 @@ def test_real_prose_mentioning_a_beat_or_transition_survives(): "Start of the chapter that defined her, though she did not yet know it.", "Beginning the act of contrition, the old priest knelt in the ash.", "He took up his part of the story and carried it to the gate.", + # The "act of " idiom (mercy/war/treason) is the worst over-strip risk, and the + # arm-1 "" form must spare it: the engine seam note ends + # on its own struct (beat|scene), but here the struct is "act"/"chapter" or sits + # mid-sentence with prose trailing, so the terminal-anchored arms leave it untouched. + "At the start of the act, the curtain rose on a darkened stage.", + "The beginning of the act of treason was a single forged letter.", ): out = _sanitize(prose) assert out.strip() == prose.strip(), f"real in-world prose was wrongly stripped: {prose!r} -> {out!r}"