feat(perception): canonicalize temporal motion

This commit is contained in:
DCCONSTRUCTIONS
2026-08-05 17:24:48 +03:00
parent 438e0ca263
commit 998775c3af
12 changed files with 2244 additions and 3 deletions
+22
View File
@@ -42,6 +42,16 @@ GEOMETRY_RUNTIME_MODULES = (
"providers.py",
"recorded_source.py",
)
TEMPORAL_RUNTIME_MODULES = (
"contracts.py",
"geometry.py",
"motion.py",
"providers.py",
"recorded_source.py",
"temporal.py",
"temporal_replay.py",
"temporal_replay_cli.py",
)
def _imports(path: Path) -> set[str]:
@@ -202,6 +212,18 @@ def test_geometry_runtime_closure_imports_no_legacy_compute_or_device_package()
assert {name: modules for name, modules in violations.items() if modules} == {}
def test_temporal_runtime_closure_imports_no_legacy_compute_or_device_package() -> None:
violations = {
name: sorted(
module
for module in _imports(PERCEPTION_ROOT / name)
if module.startswith(("k1link.compute", "k1link.device_plugins"))
)
for name in TEMPORAL_RUNTIME_MODULES
}
assert {name: modules for name, modules in violations.items() if modules} == {}
def test_new_perception_boundary_has_no_experiment_specific_imports() -> None:
violations: dict[str, str] = {}
for path in PERCEPTION_ROOT.glob("*.py"):