Selaa lähdekoodia

chore: expose TD gate component evidence

codex 3 kuukautta sitten
vanhempi
commit
bd16f7e692
1 muutettua tiedostoa jossa 12 lisäystä ja 10 poistoa
  1. 12 10
      tools/prod2u_p4_harness.py

+ 12 - 10
tools/prod2u_p4_harness.py

@@ -3531,16 +3531,17 @@ def td_build_payload(
             *([] if state_after.get("clean") is True else ["repository_source_state_dirty_after_build"]),
         ],
     }
-    passed = (
-        syn_ok
-        and phy_ok
-        and timing_result["status"] == "pass"
-        and structural["status"] == "pass"
-        and bitgen_ok
-        and bitstream_sha256 is not None
-        and source_binding_gate["status"] == "pass"
-        and not measurement_failures
-    )
+    gate_components = {
+        "syn": syn_ok,
+        "phy": phy_ok,
+        "timing": timing_result["status"] == "pass",
+        "structural": structural["status"] == "pass",
+        "bitgen": bitgen_ok,
+        "bitstream": bitstream_sha256 is not None,
+        "source_binding": source_binding_gate["status"] == "pass",
+        "measurement_artifacts": not measurement_failures,
+    }
+    passed = all(gate_components.values())
     td_tool = probe_td_tool()
     payload = {
         **metadata,
@@ -3586,6 +3587,7 @@ def td_build_payload(
         "structural_gate": structural,
         "timing": timing,
         "timing_gate": timing_result,
+        "gate_components": gate_components,
         "no_programming_safety_declaration": (
             "No JTAG, cable, download, flash, SRAM, or board programming was performed. "
             "Forbidden TD commands were absent from syn/phy/bitgen scripts. "