C1.0 g.1 — Parse/export canonical signature fields¶
Intent¶
- Extend
tools/renderhealth_regress.pyAutoCalMeta parsing to capture canonical signature metadata emitted byRenderTestRunner. - Carry the new fields through existing per-run metadata flow (including pre-
RUN STARTAutoCalMeta 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_PREFIXhandling in DOE parsing to use_parse_auto_cal_meta()while preserving existinglatest_auto_calcarry-forward and pre-run attach behavior. Anchor:tools/renderhealth_regress.py:593 - Added CSV export fields for
canonical_signature_hash64andcanonical_signature_kindin_auto_cal_csv_fields(). Anchors:tools/renderhealth_regress.py:802,tools/renderhealth_regress.py:807 - Added JSON per-run
auto_calfields forcanonical_signature_hash64andcanonical_signature_kindin_auto_cal_json_obj(). Anchors:tools/renderhealth_regress.py:817,tools/renderhealth_regress.py:826 - Added
renderhealth_summary.csvcolumnscanonical_signature_hash64andcanonical_signature_kindtocsv_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/onPYTHONPATH) using log text containing[RenderTestRunner][AutoCalMeta] canonical_signature_hash64=0xABCDEF canonical_signature_kind=calibration_v1before first[RenderTest][RUN START]-> pass - Verified parsed/exported values:
canonical_signature_hash64 = 0x0000000000abcdefcanonical_signature_kind = calibration_v1
Next¶
C1.1: implement/validate the shadow run harness (next prompt).