Answer architecture round 1: 2 🔴, 8 🟡 (0 misread); split task-bench's benched into phases and its table into one column list, parse each stream once, move do-epic's parking out with pure move and news decisions, share the round summaries, rename scoring_due, and file the version question as item 517
CI / tests (pull_request) Successful in 5m2s

This commit is contained in:
2026-11-23 01:20:55 +01:00
parent 21200cb698
commit 0bf87b736e
29 changed files with 678 additions and 368 deletions
+5
View File
@@ -84,6 +84,11 @@ def parse_entry(raw: str | bytes) -> Entry | None:
return None if found is None else entry_from(found)
def entries_of(raw: bytes) -> list[Entry]:
"""The entries of a transcript or a stream-json stream, one per line that is a JSON object."""
return [entry for line in raw.splitlines() if (entry := parse_entry(line))]
def entry_from(found: dict) -> Entry:
"""A transcript entry, or a stream-json event, as its kind."""
carried = Carried(uuid=field(found, "uuid"), parent_uuid=field(found, "parentUuid"), timestamp=field(found, "timestamp"), cwd=field(found, "cwd"), git_branch=field(found, "gitBranch"))
+5
View File
@@ -99,6 +99,11 @@ class Parse(unittest.TestCase):
self.assertEqual(entries.parse_entry('{"type": "user", "message": {"content": "do it"}}'), entries.HumanTurn(text="do it"))
self.assertIsNone(entries.parse_entry("[1, 2]"))
def test_a_stream_parses_into_an_entry_per_line_that_is_a_json_object(self):
raw = b'{"type": "user", "message": {"content": "do it"}}\nnot json\n\n{"type": "summary"}\n'
self.assertEqual(entries.entries_of(raw), [entries.HumanTurn(text="do it"), entries.Entry()])
self.assertEqual(entries.entries_of(b""), [])
class EntryKinds(unittest.TestCase):
def test_names_who_wrote_each_user_entry_and_queued_prompt(self):