From 11b286d78691cf9ce7e4ba3cf0ad611eeda3fff8 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 23 Sep 2026 19:00:03 -0400 Subject: [PATCH] test(dedup): a note is gated at its copy band, not the general floor (#4306) Co-Authored-By: Claude Opus 5.5 --- tests/test_lesson_write_path.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_lesson_write_path.py b/tests/test_lesson_write_path.py index 03a7159..1032218 100644 --- a/tests/test_lesson_write_path.py +++ b/tests/test_lesson_write_path.py @@ -152,9 +152,12 @@ def test_a_lesson_is_judged_at_the_trigger_dominated_bar(): "about one area would refuse each other" ) assert _LESSON_SEMANTIC_THRESHOLD > _SEMANTIC_THRESHOLD - # An ordinary note is untouched — the carve-out is per kind, not a - # loosening of the gate. - assert _semantic_threshold("note") == _SEMANTIC_THRESHOLD + # The carve-out is per kind, not a loosening of the gate: a lesson's bar is + # its own, apart from the note's copy band (#4306). + from scribe.services.dedup import _NOTE_COPY_THRESHOLD + + assert _semantic_threshold("note") == _NOTE_COPY_THRESHOLD + assert _NOTE_COPY_THRESHOLD != _LESSON_SEMANTIC_THRESHOLD @pytest.mark.asyncio