Answer stability round 1: 0 🔴, 5 🟡 (1 misread); start chunks after a partial planning and keep what planning wrote
This commit is contained in:
@@ -35,7 +35,7 @@ DESCRIPTION = "**Max parallel chunks:** 2\n\n## Goals\nShip the import.\n\n## Au
|
||||
|
||||
|
||||
def structured(output: object, key: str | None = "structured_output") -> subprocess.CompletedProcess[str]:
|
||||
"""claude's reply that holds output as its structured answer; as the whole result event where key is None."""
|
||||
"""claude's reply that holds output as its structured answer. Where key is None, output is the whole result event."""
|
||||
return subprocess.CompletedProcess([], 0, json.dumps({"type": "result", key: output} if key else output), "")
|
||||
|
||||
|
||||
@@ -153,11 +153,12 @@ class TheCommand(DoEpicTest):
|
||||
self.assertIn("the epic is not planned, so no chunk started: You've hit your limit\n", err)
|
||||
self.assertEqual([args for args in fake.tmux_calls if args[0] == "new-session"], [])
|
||||
|
||||
def test_stops_where_the_epic_cannot_be_planned(self) -> None:
|
||||
def test_says_why_the_epic_is_not_planned_in_full_and_starts_the_chunks_that_may_start(self) -> None:
|
||||
self.issues = [dataclasses.replace(issue(key, "do-epic-claude"), scores={"L": 1, "E": 1, "I": 1, "S": 1}, by_loop=True) for key in ("ABC-20", "ABC-21")]
|
||||
code, _, err = self.run_main(["ABC-12"], FakeEffects())
|
||||
self.assertEqual(code, 1)
|
||||
self.assertIn("states `Score = ...` 0 times under ## Scoring", err)
|
||||
code, out, err = self.run_main(["ABC-12"], FakeEffects())
|
||||
self.assertEqual(code, 0, err)
|
||||
self.assertIn("the epic ABC-12 is not planned in full: the epic ABC-12's description states `Score = ...` 0 times under ## Scoring", err)
|
||||
self.assertIn("started ABC-20, ABC-21 in the tmux session epic-ABC-12\n", out)
|
||||
|
||||
def test_stops_on_an_epic_it_cannot_read(self) -> None:
|
||||
self.description = Failure("Jira answered 401")
|
||||
|
||||
Reference in New Issue
Block a user