Преглед изворни кода

fix(mse): allow package-time paths in tip→delivery closure classifier

Round-8 packaging helper must treat packager and allowlist updates as release-only allowed changes so final dual-package closure can bind actual HEAD without a self-hash loop.

Co-authored-by: Cursor <cursoragent@cursor.com>
root пре 3 месеци
родитељ
комит
129a3bf5aa
2 измењених фајлова са 9 додато и 2 уклоњено
  1. 2 2
      package_for_agent_analysis.py
  2. 7 0
      tools/verification_to_delivery_closure.py

+ 2 - 2
package_for_agent_analysis.py

@@ -1987,9 +1987,9 @@ def collect_analysis_inputs(
         ).strip()
         if matrix_tip_env and delivery_full and delivery_full != "unknown":
             try:
-                from tools.verification_to_delivery_closure import build_closure
+                import verification_to_delivery_closure as v2d
 
-                closure = build_closure(
+                closure = v2d.build_closure(
                     repo=root,
                     verification_tip=matrix_tip_env,
                     delivery_commit=delivery_full,

+ 7 - 0
tools/verification_to_delivery_closure.py

@@ -69,6 +69,13 @@ def _classify(path: str) -> str:
         return "allowed"
     if lowered.startswith("tools/package-review") or lowered.startswith("tools/build_firmware"):
         return "allowed"
+    if lowered in {
+        "package_for_agent_analysis.py",
+        "config/review_compact_evidence_allowlist.json",
+    }:
+        return "allowed"
+    if lowered.startswith("config/review_compact"):
+        return "allowed"
     return "forbidden"