@agentsdock/server 1.0.11-beta.1 → 1.0.11-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -555,18 +555,20 @@ def server_work_snapshot(
555
555
  "server health response is missing its service-cgroup admission proof"
556
556
  )
557
557
  raw_count = cgroup.get("unknown_descendant_count")
558
+ inspection = cgroup.get("inspection")
558
559
  if (
559
560
  cgroup.get("safe") is not True
560
561
  or isinstance(raw_count, bool)
561
562
  or not isinstance(raw_count, int)
562
- or raw_count != 0
563
+ or raw_count < 0
564
+ or (raw_count != 0 and inspection != "verified-preserved")
563
565
  ):
564
566
  raise RuntimeError(
565
567
  "AgentsServer has an unverified or nonempty service cgroup"
566
568
  )
567
569
  if (
568
570
  require_verified_service_cgroup
569
- and cgroup.get("inspection") != "verified"
571
+ and inspection not in {"verified", "verified-preserved"}
570
572
  ):
571
573
  raise RuntimeError(
572
574
  "AgentsServer did not return a verified systemd service-cgroup proof"