curl --request POST \
--url https://app.trustivan.com/api/v1/agents/{id}/quarantine \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/agents/{id}/quarantine', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Contain an agent without ending it
The REVERSIBLE half of the kill switch, and the difference from
DELETE /agents/{id} is the whole point.
Revocation is terminal: the credential is finished and a new one must be delegated. Quarantine says “stop, a human must look at you”, the outcome for a principal behaving oddly that may well be fine. The credential survives, so an operator can afford to contain on suspicion. An incident that could only be resolved by re-delegating every agent is one operators learn to resolve by containing nothing.
Enforced in tenancy.Delegation.Usable, which is already consulted on
every authentication and re-consulted on every invocation, so
containment takes effect on the agent’s next request with no cache to
expire.
Also applied AUTOMATICALLY when a terminal decision is reached: an
agent invoking a tool it never declared, or naming another agent’s
session, is contained rather than merely refused. Before that existed,
a quarantine decision carried the obligation halt on the wire and
did nothing at all: the agent could retry forever.
Idempotent: containing an already-contained agent does not overwrite the original reason or timestamp, because the FIRST symptom is the one an investigation needs.
curl --request POST \
--url https://app.trustivan.com/api/v1/agents/{id}/quarantine \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/agents/{id}/quarantine', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The quarantined agent.