feat(cloud): add targeted task governance foundation
Tests / Test passed: 659

This commit is contained in:
2026-07-13 22:21:12 +08:00
parent a3ba94be04
commit 2cd314b183
41 changed files with 2099 additions and 15 deletions
@@ -58,7 +58,7 @@ def test_heartbeat_synchronizer_runs_at_configured_interval_until_stopped() -> N
calls: list[list[str]] = []
class FakeClient:
async def heartbeat(self, devices, *, address=None):
async def heartbeat(self, devices, *, address=None, policy_revision=0):
calls.append([device.device_id for device in devices])
return HeartbeatResponse(
host_id="host-a",
@@ -96,7 +96,7 @@ def test_sync_once_notifies_status_tracker_and_on_sync_with_device_count() -> No
)
class FakeClient:
async def heartbeat(self, devices, *, address=None):
async def heartbeat(self, devices, *, address=None, policy_revision=0):
return HeartbeatResponse(
host_id="host-a",
accepted_devices=len(devices),