feat(k1): add offline control execution gate

This commit is contained in:
DCCONSTRUCTIONS
2026-07-18 14:14:30 +03:00
parent d7749208a7
commit ea811ff370
17 changed files with 916 additions and 44 deletions
+3 -3
View File
@@ -65,7 +65,7 @@ def _status_message(
def _authority() -> ApplicationControlAuthority:
return ApplicationControlAuthority(openapi_key="application-private-key")
return ApplicationControlAuthority(openapi_key="11111111-2222-3333-4444-555555555555")
def _binding(**changes: object) -> LiveDeviceControlBinding:
@@ -120,8 +120,8 @@ def test_start_shadow_plan_is_exact_bounded_and_never_executable() -> None:
assert plan.executable is False
assert plan.blockers == ("vendor-writes-disabled", "publisher-not-installed")
assert plan.retry_policy == "never-automatic"
assert "application-private-key" not in repr(plan)
assert "application-private-key" not in str(plan.as_dict())
assert "11111111-2222-3333-4444-555555555555" not in repr(plan)
assert "11111111-2222-3333-4444-555555555555" not in str(plan.as_dict())
def test_stop_shadow_plan_requires_same_live_device_and_active_project() -> None: