Answer the prose pass: name README.md beside the records, one idea per sentence in --help and the judge's rules, date the decision's revision

This commit is contained in:
2026-10-03 01:49:33 +02:00
parent 80f1cc2dc9
commit 0eb97e9e88
9 changed files with 35 additions and 34 deletions
+4 -5
View File
@@ -135,7 +135,7 @@ class Transitions(unittest.TestCase):
(states.Judging("/t", 3), states.Ruled(Interrupt("e", "Which one?")), states.Interrupting("/t", "Which one?", 3)),
(states.Judging("/t"), answered, states.Working(AnsweredFromRecords("e", "Which one?", "A."), 1)),
(states.Judging("/t", 2), answered, states.Working(AnsweredFromRecords("e", "Which one?", "A."), 3)),
(states.Judging("/t", 3), answered, states.Interrupting("/t", "Which one?\n\nREADME.md or the project's records say:\nA.\n\nThe records answered 3 questions this cycle, so this one comes to you.", 3)),
(states.Judging("/t", 3), answered, states.Interrupting("/t", "Which one?\n\nREADME.md or the project's records say:\nA.\n\nREADME.md or the records answered 3 questions this cycle, so this one comes to you.", 3)),
(states.Judging("/t"), states.Ruled(Finished("e")), states.Closing("/t", Finished("e"))),
(states.Judging("/t", 3), states.Ruled(Finished("e")), states.Closing("/t", Finished("e"))),
(states.Judging("/t"), states.Ruled(Unfinished("e")), states.Closing("/t", Unfinished("e"))),
@@ -252,8 +252,8 @@ class Cycles(unittest.TestCase):
resumed = fake.made("stream_claude")[1]
self.assertEqual(resumed[resumed.index("-p") + 1], "Your question: Which one?\n\nREADME.md or the project's records answer it:\n\nUse *A*.\n\nContinue the task.")
self.assertEqual(len(fake.made("stream_claude")), 4)
self.assertEqual(printed.getvalue().count("=== the records answered: Which one? ===\nUse *A*."), 3)
self.assertIn("Which one?\n\nREADME.md or the project's records say:\nUse *A*.\n\nThe records answered 3 questions this cycle", said.getvalue())
self.assertEqual(printed.getvalue().count("=== README.md or the records answered: Which one? ===\nUse *A*."), 3)
self.assertIn("Which one?\n\nREADME.md or the project's records say:\nUse *A*.\n\nREADME.md or the records answered 3 questions this cycle", said.getvalue())
def test_an_answer_the_records_do_not_hold_is_dropped_and_the_question_goes_to_the_human(self):
fake = FakeEffects(streams=[Worker(self.paths.claude_code_transcripts.parent)], claude=[judged("interrupt", answer="Use B.")], on_terminal_claude=[0], git=[ran()])
@@ -534,8 +534,7 @@ class LoopRuns(unittest.TestCase):
class HelpLimits(unittest.TestCase):
def test_help_states_the_limits_the_code_holds(self):
self.assertIn(f"a {judge.JUDGE_PROMPT_CHARS:,}-character prompt", main.__doc__)
self.assertIn(f"up to {['one', 'two', 'three', 'four'][states.RECORDS_ANSWERS_PER_CYCLE - 1]} times a cycle", main.__doc__)
self.assertIn(f"the {['second', 'third', 'fourth', 'fifth'][states.RECORDS_ANSWERS_PER_CYCLE - 1]} question they answer in one cycle", main.__doc__.replace("\n", " "))
class ExitContract(unittest.TestCase):