{
 "product": "Swarm Fleet Quarantine",
 "slug": "fleet-quarantine",
 "base": "https://cainstudio.online",
 "page": "https://cainstudio.online/guide-fleet-quarantine.html",
 "claims": [
  {
   "id": "C01",
   "kind": "control",
   "claim": "No quarantine: the agent may act -> Normal operation.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "control"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    true
   ]
  },
  {
   "id": "C02",
   "kind": "attack",
   "claim": "Quarantine billing-agent-7, then it tries to act -> Refused.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "agent"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    false
   ]
  },
  {
   "id": "C03",
   "kind": "control",
   "claim": "...and a different agent carries on -> Only the rogue agent is stopped.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "agent"
     }
    }
   ],
   "path": "bystander.allowed",
   "expect": [
    true
   ]
  },
  {
   "id": "C04",
   "kind": "control",
   "claim": "...and the stop is signed -> Ed25519 signature checks out.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "agent"
     }
    }
   ],
   "path": "signature_valid",
   "expect": [
    true
   ]
  },
  {
   "id": "C05",
   "kind": "attack",
   "claim": "Quarantine a swarm: a member tries to act -> Whole swarm stopped.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "swarm"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    false
   ]
  },
  {
   "id": "C06",
   "kind": "attack",
   "claim": "Release approved by one person only -> Still stopped: two people needed.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "lift_one_approver"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    false
   ]
  },
  {
   "id": "C07",
   "kind": "attack",
   "claim": "The quarantined agent approves its own release -> Refused.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "lift_by_its_own_subject"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    false
   ]
  },
  {
   "id": "C08",
   "kind": "control",
   "claim": "Two different people approve the release -> Released.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "lift_two_approvers"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    true
   ]
  },
  {
   "id": "C09",
   "kind": "attack",
   "claim": "Emergency halt: every agent stops -> Fleet-wide stop.",
   "requests": [
    {
     "method": "POST",
     "url": "/api/v1/quarantine/drill",
     "body": {
      "preset": "halt"
     }
    }
   ],
   "path": "check.allowed",
   "expect": [
    false
   ]
  }
 ]
}