Bugfixes in the glossary protection guard: allow changes toward protected glossary terms, but deny changes away from protected terms

This commit is contained in:
2026-04-22 11:04:35 -05:00
parent 9afb5c5a4e
commit 183f8ba31d
5 changed files with 124 additions and 7 deletions

View File

@@ -94,7 +94,9 @@ def test_grammar_prompt_limits_readability_corrections_and_protects_glossary():
assert "spelling fixes" in prompt_text
assert "Do not paraphrase" in prompt_text
assert "glossary names and aliases as protected spellings" in prompt_text
assert "correct clear transcription or spelling errors toward glossary names or aliases" in prompt_text
assert "Do not autocorrect, Anglicize, replace, normalize, lowercase" in prompt_text
assert "that already appear correctly in the transcript" in prompt_text
assert "Preserve canonical glossary capitalization" in prompt_text
assert "appears exactly once" in prompt_text
assert "Do not return speaker, start, or end fields" in prompt_text