Answer architecture round 5: return the heading as a dataclass, read the Mean line as its own field, mark an entry paired explicitly, move metric-bench's path resolution back to metric_bench, and split the scoring trigger into named steps
This commit is contained in:
@@ -9,11 +9,11 @@ import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
|
||||
|
||||
from metric_bench.bench import auc, bench, co_changed, top_k
|
||||
from metric_bench.bench import auc, bench, co_changed, resolved, top_k
|
||||
from metric_bench.python_units import cognitive, measured, python_units, Unit
|
||||
from larv_review.history import entries, Place
|
||||
from failure import Failure
|
||||
from test_loop_claude_black_box import host_env
|
||||
from larv_review.history import Place, resolved, scoring_runs
|
||||
|
||||
TOOL = pathlib.Path(__file__).resolve().parent / "metric-bench"
|
||||
|
||||
@@ -142,7 +142,7 @@ class Places(unittest.TestCase):
|
||||
""")
|
||||
|
||||
def test_reads_each_scoring_runs_places_and_leaves_paired_rulings_out(self):
|
||||
runs = scoring_runs(self.HISTORY)
|
||||
runs = [entry for entry in entries(self.HISTORY) if not entry.paired]
|
||||
self.assertEqual([(run.heading, run.commit) for run in runs], [("2026-10-08T12:50:49Z, PR #224 at a58a0a8", "a58a0a8")])
|
||||
self.assertEqual(runs[0].places, [Place("skills/x/SKILL.md", None), Place("bin/tool/cycle/states.py", "transition"), Place("cycle/run.py", "step"), Place("cycle/run.py", "close"), Place("bin/tool/cycle/judge.py", "run_judge")])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user