Skip to content

C1.0 g.1 — Parse/export canonical signature fields

Intent

  • Extend tools/renderhealth_regress.py AutoCalMeta parsing to capture canonical signature metadata emitted by RenderTestRunner.
  • Carry the new fields through existing per-run metadata flow (including pre-RUN START AutoCalMeta cases).
  • Export the fields in DOE CSV/JSON artifacts without changing engine logs/keys or runtime behavior.

Codex Summary

Implemented the requested parser/export updates in tools/renderhealth_regress.py with no engine log/key changes.

What changed - AutoCalMeta parsing now optionally captures and normalizes: - canonical_signature_hash64 (hex parsed, stored as normalized 0x... string) - canonical_signature_kind - Existing AutoCalMeta handling remains intact, including pre-RUN START carry-forward via latest_auto_cal (matrix-start timing case still works). - CSV summary schema now includes: - canonical_signature_hash64 - canonical_signature_kind - JSON per-run auto_cal now includes: - canonical_signature_hash64 - canonical_signature_kind

Validation - python -m py_compile tools/renderhealth_regress.py ✅ - Synthetic log parse test with [AutoCalMeta] before first [RUN START] and new tokens ✅ - Verified capture/export values: - canonical_signature_hash64 = 0x0000000000abcdef - canonical_signature_kind = calibration_v1

Diff Summary

  • Files changed:
  • tools/renderhealth_regress.py

  • tools/renderhealth_regress.py

  • Added AutoCalMeta-specific hash parser/normalizer for canonical_signature_hash64 (0x... normalized string) via _parse_hash64_hex() and _parse_auto_cal_meta(). Anchors: tools/renderhealth_regress.py:243, tools/renderhealth_regress.py:256
  • Switched AUTOCAL_META_PREFIX handling in DOE parsing to use _parse_auto_cal_meta() while preserving existing latest_auto_cal carry-forward and pre-run attach behavior. Anchor: tools/renderhealth_regress.py:593
  • Added CSV export fields for canonical_signature_hash64 and canonical_signature_kind in _auto_cal_csv_fields(). Anchors: tools/renderhealth_regress.py:802, tools/renderhealth_regress.py:807
  • Added JSON per-run auto_cal fields for canonical_signature_hash64 and canonical_signature_kind in _auto_cal_json_obj(). Anchors: tools/renderhealth_regress.py:817, tools/renderhealth_regress.py:826
  • Added renderhealth_summary.csv columns canonical_signature_hash64 and canonical_signature_kind to csv_fields. Anchors: tools/renderhealth_regress.py:1115, tools/renderhealth_regress.py:1131

Behavior/Trust Impact

No engine behavior changes. Parser/export only.

Validation

  • python -m py_compile tools/renderhealth_regress.py -> pass
  • Synthetic Python test (imports parser with tools/ on PYTHONPATH) using log text containing [RenderTestRunner][AutoCalMeta] canonical_signature_hash64=0xABCDEF canonical_signature_kind=calibration_v1 before first [RenderTest][RUN START] -> pass
  • Verified parsed/exported values:
  • canonical_signature_hash64 = 0x0000000000abcdef
  • canonical_signature_kind = calibration_v1

Next

C1.1: implement/validate the shadow run harness (next prompt).