tooling(scratch): decode-check summary and grouped detail report
summary.md for Brian: per field, events per verdict, how many fields fully match, non-matches by event year, carve-out counts. details.json for Claude: each non-matching (field, verdict) with the attribute values its failures concentrate in (>= 10% of the failures; concentrated at >= 95% of compared events) and example events, each with a one-event re-run command. On a 2,000-event sample the event-type mismatches group as 'type = Full Histogram, 1815/1815' -- #41, named by the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
5b48be3f25
commit
5e85cf1018
3 files changed
+189
No files matched your search
@@ -43,6 +43,7 @@ sys.path.insert(0, str(_REPO))
|
||||
from minimateplus.bw_xml_report import XmlReport, parse_xml_report_file # noqa: E402
|
||||
from minimateplus.decode_check import compare, sfm_side # noqa: E402
|
||||
from minimateplus.decode_check_carveouts import CARVEOUTS # noqa: E402
|
||||
from scratch import decode_check_report as report # noqa: E402
|
||||
|
||||
RUNS_DIR = Path.home() / "dl2-archive" / "checker-runs"
|
||||
_BIN = re.compile(r"^[A-Z]\d{3}[0-9A-Z]{4}\.[0-9A-Z]{2}0[WH]$", re.I)
|
||||
@@ -183,6 +184,9 @@ def main(argv: Optional[list[str]] = None) -> int:
|
||||
"commit": _git_head(), "events": len(work),
|
||||
"seconds": round(time.monotonic() - started, 1)}
|
||||
(out_dir / "run.json").write_text(json.dumps(run, indent=2))
|
||||
agg = report.aggregate(out_dir / "results.jsonl.gz")
|
||||
report.write_summary(agg, out_dir / "summary.md")
|
||||
report.write_details(agg, out_dir / "details.json")
|
||||
print(out_dir)
|
||||
return 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user