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
CI / tests (pull_request) Successful in 5m2s
This commit is contained in:
@@ -6,8 +6,10 @@ import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from task_bench import figures as bench_figures
|
||||
from claude_code.entries import entries_of
|
||||
from failure import Failure
|
||||
from task_bench.figures import Figures, figures, Result, table
|
||||
from task_bench.figures import Figures, Result, table
|
||||
from claude_code.tokens import Tokens
|
||||
|
||||
INIT = {"type": "system", "subtype": "init", "cwd": "/work", "model": "claude-haiku-5-5", "claude_code_version": "2.1.330"}
|
||||
@@ -23,6 +25,10 @@ def stream(*events: dict) -> bytes:
|
||||
return "\n".join(map(json.dumps, events)).encode() + b"\n"
|
||||
|
||||
|
||||
def figures(raw: bytes, bug_file: str) -> Figures | None | Failure:
|
||||
return bench_figures.figures(raw, entries_of(raw), bug_file)
|
||||
|
||||
|
||||
class FiguresTest(unittest.TestCase):
|
||||
def test_reads_the_version_model_tokens_turns_and_wall_time_from_the_streams_first_and_last_events(self):
|
||||
found = figures(stream(INIT, RESULT), "/work/calc.go")
|
||||
|
||||
Reference in New Issue
Block a user