Answer the fourth round: citation check on its own, fences close on their own marker, atomic write, prose

This commit is contained in:
2026-10-02 21:54:06 +02:00
parent b712076144
commit 89c88b5163
6 changed files with 55 additions and 30 deletions
+4
View File
@@ -307,6 +307,10 @@ class Sections(unittest.TestCase):
text = "# Title\n\nintro\n\n## Goals\n\n1. one\n```sh\n# not a heading\n```\n### Later\n2. two\n#1 priority\n\n## Empty\n\n## Audience\nme\n## Audience\nagain\n# Appendix\nnot audience\n"
self.assertEqual(premises.sections(text), {"Goals": ["1. one\n```sh\n# not a heading\n```\n### Later\n2. two\n#1 priority"], "Empty": [""], "Audience": ["me", "again"]})
def test_closes_a_fence_only_on_its_own_marker(self):
text = "## Goals\n````md\n~~~\n## Quoted\n```\n````\n ~~~\n## Also quoted\n ~~~\n1. one\n## Audience\nme\n"
self.assertEqual(list(premises.sections(text)), ["Goals", "Audience"])
class Render(unittest.TestCase):
def test_joins_assistant_text_and_tool_calls_and_human_turns_and_skips_the_rest(self):