HEL-892: pin Scail loader reference and bound legacy alias provenance
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -41,6 +41,7 @@ from calliope.comfyui.serialization_reference import (
|
||||
)
|
||||
from calliope.comfyui.structure_reference import (
|
||||
PROMOTED_PROFILES,
|
||||
SCAIL_LOAD_PROFILES,
|
||||
SETGET_COMMIT,
|
||||
SETGET_PROFILES,
|
||||
STRUCTURE_PROFILES,
|
||||
@@ -301,6 +302,7 @@ REFERENCE_PROFILES = (
|
||||
*VHS_PROFILES,
|
||||
*SETGET_PROFILES,
|
||||
*VIDEOINFO_PROFILES,
|
||||
*SCAIL_LOAD_PROFILES,
|
||||
)
|
||||
|
||||
|
||||
@@ -505,6 +507,7 @@ def profile_attempt(source, profile):
|
||||
**VHS_PROFILES,
|
||||
**SETGET_PROFILES,
|
||||
**VIDEOINFO_PROFILES,
|
||||
**SCAIL_LOAD_PROFILES,
|
||||
}.get(profile, "1.37.11")
|
||||
assumptions = {
|
||||
"frontend": expected,
|
||||
@@ -582,7 +585,7 @@ def profile_attempt(source, profile):
|
||||
"serialization-evidence/sources.json",
|
||||
]
|
||||
base = {"profile": profile, "assumptions": assumptions}
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES):
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES):
|
||||
assumptions["setget_reference"] = {
|
||||
"commit": SETGET_COMMIT,
|
||||
"missing_version": "explicit_fixed_reference_assumption_only",
|
||||
@@ -606,7 +609,38 @@ def profile_attempt(source, profile):
|
||||
}
|
||||
for i, n in enumerate(source.get("nodes", []))
|
||||
]
|
||||
if profile in VIDEOINFO_PROFILES:
|
||||
if profile in SCAIL_LOAD_PROFILES:
|
||||
assumptions["scail_load_reference"] = {
|
||||
"commit": "8e4d79471bf1952154768e8435a9300077b534fa",
|
||||
"contract": "scail-load-reference/contract.json",
|
||||
"scope": (
|
||||
"exact loader + info537f3a02 + KJab72eda7 + old core/Combine; "
|
||||
"AnimateDiff fixed points, no UE/VAE/batch"
|
||||
),
|
||||
"legacy_literal_aux": (
|
||||
"historical KJ emission proven; this graph provenance unproven; rejected"
|
||||
),
|
||||
"actual_fps": "unknown; no media/info evaluated",
|
||||
}
|
||||
assumptions["reference_sources"].insert(0, "scail-load-reference/sources.json")
|
||||
base["verified_reference_facts"] = "scail-load-reference/contract.json"
|
||||
if not any(
|
||||
n.get("type") == "VHS_LoadVideo"
|
||||
and (n.get("properties") or {}).get("ver")
|
||||
== "8e4d79471bf1952154768e8435a9300077b534fa"
|
||||
for n in source.get("nodes", [])
|
||||
):
|
||||
return {
|
||||
**base,
|
||||
"status": "not_applicable",
|
||||
"issues": [
|
||||
{
|
||||
"code": "scail_load_not_present",
|
||||
"message": "新组合要求精确8e4d7947加载器",
|
||||
}
|
||||
],
|
||||
}
|
||||
if profile in (*VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES):
|
||||
assumptions["videoinfo_reference"] = {
|
||||
"commit": "537f3a02269e14ab4b0350d4189a52034e9a3b12",
|
||||
"contract": "videoinfo-reference/contract.json",
|
||||
@@ -614,7 +648,8 @@ def profile_attempt(source, profile):
|
||||
"scalar_values": "unknown; no media or info dictionary evaluated",
|
||||
}
|
||||
assumptions["reference_sources"].insert(0, "videoinfo-reference/sources.json")
|
||||
base["verified_reference_facts"] = "videoinfo-reference/contract.json"
|
||||
if profile not in SCAIL_LOAD_PROFILES:
|
||||
base["verified_reference_facts"] = "videoinfo-reference/contract.json"
|
||||
if not any(n.get("type") == "VHS_VideoInfoLoaded" for n in source.get("nodes", [])):
|
||||
return {
|
||||
**base,
|
||||
@@ -659,26 +694,30 @@ def profile_attempt(source, profile):
|
||||
)
|
||||
assumptions["missing_frontend_policy"] = (
|
||||
"explicit_1.37.11_reference_assumption"
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES)
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES)
|
||||
else "explicit_media_reference_assumption"
|
||||
if profile in (*MEDIA_PROFILES, SEPARATION_PROFILE, *CROP_SPLIT_PROFILES, *VHS_PROFILES)
|
||||
else "explicit_legacy_reference_assumption"
|
||||
if profile in (PROFILE, AUX_PROFILE, PRIMITIVE_PROFILE)
|
||||
else "requires_explicit_declaration"
|
||||
)
|
||||
if profile in (*VHS_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES) and expected == "1.48.6":
|
||||
if (
|
||||
profile in (*VHS_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES)
|
||||
and expected == "1.48.6"
|
||||
):
|
||||
assumptions["missing_frontend_policy"] = "requires_explicit_1.48.6"
|
||||
assumptions["missing_node_declarations"] = [
|
||||
n["pointer"]
|
||||
for n in node_inventory(
|
||||
source,
|
||||
include_aux=profile in (*CROP_SPLIT_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES),
|
||||
include_aux=profile
|
||||
in (*CROP_SPLIT_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES),
|
||||
)
|
||||
if n["type"] not in ("Note", "MarkdownNote", "Reroute", "PrimitiveNode")
|
||||
and (n["provider"] is None or n["version"] is None)
|
||||
]
|
||||
if (
|
||||
profile in (*VHS_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES)
|
||||
profile in (*VHS_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES)
|
||||
and expected == "1.48.6"
|
||||
and declared_frontend is None
|
||||
) or (
|
||||
@@ -696,6 +735,7 @@ def profile_attempt(source, profile):
|
||||
*VHS_PROFILES,
|
||||
*SETGET_PROFILES,
|
||||
*VIDEOINFO_PROFILES,
|
||||
*SCAIL_LOAD_PROFILES,
|
||||
)
|
||||
)
|
||||
):
|
||||
@@ -721,7 +761,7 @@ def profile_attempt(source, profile):
|
||||
"unresolved_boundaries": result.unresolved_boundaries,
|
||||
**(
|
||||
{"virtual_resolutions": result.virtual_resolutions}
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES)
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES)
|
||||
else {}
|
||||
),
|
||||
}
|
||||
@@ -737,7 +777,7 @@ def profile_attempt(source, profile):
|
||||
"candidate_prompt": result.prompt,
|
||||
**(
|
||||
{"virtual_resolutions": result.virtual_resolutions}
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES)
|
||||
if profile in (*SETGET_PROFILES, *VIDEOINFO_PROFILES, *SCAIL_LOAD_PROFILES)
|
||||
else {}
|
||||
),
|
||||
**(
|
||||
@@ -826,7 +866,12 @@ def audit_library(repo: Path, profiles=REFERENCE_PROFILES, *, baseline_profiles=
|
||||
gap_inventory = (
|
||||
node_inventory(source, include_aux=True)
|
||||
if attempt["profile"]
|
||||
in (*CROP_SPLIT_PROFILES, *SETGET_PROFILES, *VIDEOINFO_PROFILES)
|
||||
in (
|
||||
*CROP_SPLIT_PROFILES,
|
||||
*SETGET_PROFILES,
|
||||
*VIDEOINFO_PROFILES,
|
||||
*SCAIL_LOAD_PROFILES,
|
||||
)
|
||||
else inventory
|
||||
)
|
||||
matches = [n for n in gap_inventory if n["node_id"] == issue.get("node_id")]
|
||||
@@ -852,7 +897,9 @@ def audit_library(repo: Path, profiles=REFERENCE_PROFILES, *, baseline_profiles=
|
||||
}
|
||||
if baseline_profiles is None:
|
||||
excluded_profiles = (
|
||||
VIDEOINFO_PROFILES
|
||||
SCAIL_LOAD_PROFILES
|
||||
if any(p in SCAIL_LOAD_PROFILES for p in profiles)
|
||||
else VIDEOINFO_PROFILES
|
||||
if any(p in VIDEOINFO_PROFILES for p in profiles)
|
||||
else SETGET_PROFILES
|
||||
if any(p in SETGET_PROFILES for p in profiles)
|
||||
|
||||
Reference in New Issue
Block a user