diff --git a/evalharness/cli.py b/evalharness/cli.py index c2f6a87..e948708 100644 --- a/evalharness/cli.py +++ b/evalharness/cli.py @@ -202,13 +202,6 @@ def _print_run_plan(console, args, model_spec): def _narration(msg: str) -> str: """Icon + path-highlighting for narration lines (visual separation at a glance; paths in cyan).""" - # semantic numbers get bold: samples counts, checkpoint fractions, - # generation counts, few-shot counts (curated, not rich's blanket highlight) - import re as _re0 - - msg = _re0.sub(r'(? str: if m: return (f'{icon}{msg[:m.start()]}' f'[bold green]{m.group(1)}[/bold green]') + + # semantic PHRASES get color, not bare numbers: '164 samples from cache', + # '4/4 predictions' -- a lone number is easy to lose. Runs AFTER the + # score rule so scores keep their solid green. + import re as _re0 + + msg = _re0.sub(r'(?' if '-> ' in msg: head, _, tail = msg.partition('-> ')