feat(perception): add frozen yolox provider

This commit is contained in:
DCCONSTRUCTIONS
2026-08-05 14:09:51 +03:00
parent 029b486c67
commit a680debfaf
10 changed files with 965 additions and 11 deletions
+10 -7
View File
@@ -84,16 +84,19 @@ def test_new_perception_boundary_has_no_experiment_specific_imports() -> None:
assert violations == {}
def test_reference_graph_imports_only_an_admitted_compute_primitive() -> None:
def test_product_perception_imports_only_admitted_compute_primitives() -> None:
inventory = validate_reuse_inventory(REUSE_PATH)
admitted = {
item["module"]
for item in inventory["reusable_primitives"]
if isinstance(item, dict) and isinstance(item.get("module"), str)
}
compute_imports = {
module
for module in _imports(PERCEPTION_ROOT / "graph.py")
if module.startswith("k1link.compute")
}
assert compute_imports <= admitted
violations: dict[str, set[str]] = {}
for path in PERCEPTION_ROOT.glob("*.py"):
compute_imports = {
module for module in _imports(path) if module.startswith("k1link.compute")
}
unadmitted = compute_imports - admitted
if unadmitted:
violations[path.name] = unadmitted
assert violations == {}