Answer stability round 2: 0 🔴, 1 🟡 (0 misread); keep a chunk open, and read its gate again, only where the judge ruled it finished
CI / tests (pull_request) Successful in 4m18s

This commit is contained in:
Lilleman
2026-11-19 18:32:13 +01:00
parent dae767b085
commit 38f4274c85
2 changed files with 22 additions and 9 deletions
+11
View File
@@ -746,6 +746,17 @@ class AChunkWhosePullRequestWaitsOnAGate(DoEpicTest):
self.assertIn(fact, prompts[1].split("\n\n")[0])
self.assertNotIn("parked: ", out)
def test_where_a_person_merges_an_unfinished_chunk_goes_on_without_news_or_a_wait(self) -> None:
self.repo_config.write_text(self.repo_config.read_text(encoding="utf-8") + 'merge = "human"\n', encoding="utf-8")
self.forges = [awaiting(pulls=""), awaiting(decision="APPROVED", fails="gh pr checks"), CLEANED]
fake = FakeEffects(streams=[self.worker(), self.worker(), self.worker()], claude=[judged("unfinished"), judged("unfinished"), judged("finished")], git=UNREAD, windows=PARKED_WINDOW)
slept: list[object] = []
fake.effects = lambda made=fake.effects(): dataclasses.replace(made, sleep=slept.append) # type: ignore[method-assign]
code, out, err, prompts = self.parked_run(fake)
self.assertEqual((code, len(prompts), slept), (0, 3, []), err)
self.assertNotIn("keeps the chunk open", "".join(prompts))
self.assertIn("so the chunk isn't parked: gh pr checks failed", out)
def test_where_the_chunk_merges_a_finished_chunk_whose_pull_request_is_no_longer_open_is_handed_on(self) -> None:
self.forges = [awaiting(pulls="")]
fake = FakeEffects(streams=[self.worker()], claude=[judged("finished")], git=UNREAD, windows=PARKED_WINDOW)