Answer the stability and product passes: print each records answer, name its question, drop a misquote to an interrupt, budget the whole prompt

This commit is contained in:
2026-10-03 01:42:37 +02:00
parent 74d9df412e
commit 09fb7dcdd5
10 changed files with 62 additions and 53 deletions
+3 -2
View File
@@ -282,7 +282,7 @@ class Premises(unittest.TestCase):
self.assertIn("not a git repository", run.stderr)
readmes = {
None: "README.md in {root}: No such file or directory - no premises.",
b"# P\n## Goals\n1. g\xff\n## Audience\nme\n": "README.md is not UTF-8 on line 3 - no premises.",
b"# P\n## Goals\n1. g\xff\n## Audience\nme\n": "README.md in {root} is not UTF-8 on line 3 - no premises.",
b"# P\n## Audience\nme\n": "README.md has no ## Goals heading - no premises.",
b"# P\n## Goals\n1. g\n": "README.md has no ## Audience heading - no premises.",
b"# P\n## Goals\n\n## Audience\nme\n": "README.md has nothing under ## Goals - no premises.",
@@ -433,7 +433,8 @@ class Cycles(unittest.TestCase):
checkout = Checkout(self)
run = checkout.run([worker(say="early " * 80000 + "LATE")])
self.assertIn("LATE", run.calls[1]["stdin"])
self.assertEqual(run.calls[1]["stdin"].count("early"), (400000 - len("LATE")) // len("early "))
self.assertEqual(len(run.calls[1]["stdin"]), 400000)
self.assertLess(run.calls[1]["stdin"].count("early"), 80000)
self.assertTrue(run.calls[1]["stdin"].rstrip().endswith("an open PR, a review not yet run, CI not yet reported."))
def test_skips_a_malformed_transcript_or_stream_line(self):