立即停止并隔离智能体
用 coordination.halt 停止智能体,使准入返回 quarantine,确认确实如此,并在安全时解除停止。
coordination.haltcoordination.quarantine
用 coordination.halt 停止智能体,使准入返回 quarantine,确认确实如此,并在安全时解除停止。
coordination.haltcoordination.quarantine某个智能体在循环中写入,您希望立刻拒绝它,而不必等待释放。智能体停止会把其 DID 加入隔离集合,因此下一次准入会返回 quarantine。只有已登录的管理员才能设置或解除。
代码从 INTRAMEDIAL_KEY 读取密钥。请把它放在您的 shell 或密钥存储中,切勿放进要提交的文件。需要已登录用户的调用不能使用密钥:这些调用由控制台发起。
发送范围 agent、DID 和理由。理由为必填,使解除停止的人知道它的用途。这是控制台发送的请求体。
{
"scope": "agent",
"target": "did:web:acme.example:agent:billing",
"reason": "runaway writes"
}若停止已存在,created 为 false;ledgered 标记该事件。
{
"ok": true,
"halt": {
"id": "hlt_5d2c81",
"scope": "agent",
"target": "did:web:acme.example:agent:billing",
"reason": ,
: ,
:
},
: ,
:
}enforce 的地方,准入都会拒绝该智能体。coordination.haltcoordination-haltcoordination.quarantinecoordination-quarantine以该智能体身份声明任意意图。准入返回 quarantine,因为智能体停止会把该 DID 加入隔离集合。检查发生在确认、授予和授权停止之前,因此没有任何授予能越过它。其他范围返回 resource_halted。
curl -sS -X POST https://api.intramedial.com/api/v1/acp/coordination/admit \
-H "Authorization: Bearer $INTRAMEDIAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"actorDid": "did:web:acme.example:agent:billing",
"resource": "repo:payments/main",
"action": "read"
}'const res = await fetch("https://api.intramedial.com/api/v1/acp/coordination/admit", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.INTRAMEDIAL_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
actorDid: "did:web:acme.example:agent:billing",
resource: "repo:payments/main",
action: "read",
}),
});
console.log(res.status, await res.json());import os, requests
res = requests.post(
"https://api.intramedial.com/api/v1/acp/coordination/admit",
headers={"Authorization": "Bearer " + os.environ["INTRAMEDIAL_KEY"]},
json={
"actorDid": "did:web:acme.example:agent:billing",
"resource": "repo:payments/main",
"action": "read",
},
timeout=30,
)
print(res.status_code, res.json()){ "result": { "allow": false, "reason": "quarantine" }, "llm": false }把停止的 id 连同 why 发送到 unhalt。单纯的隔离在 switches 中显示为 q:<did>。
{
"id": "hlt_5d2c81",
"why": "cause fixed, writes checked"
}内容复制自: /docs/coordination-halt
账本仅可追加,并封存在 Merkle 根之下。条目上的时间取自 Intramedial 自己的时钟,签名包可用已发布的公钥离线核查。
为固定范围开启双人控制请求,由第二位管理员批准其摘要,然后执行受控的操作。
dual.control-scopes一次调用读取平面所持有的每个智能体、租约、等待者和隔离项,无需手工维护清单。
coordination.fleetmap读取账本中租约和凭据事件的激增、突增和沉默,并从您自己的调度器运行检查。
watchdog.check当我们向实用示例中添加新示例时,会发送一封简短的邮件。不会发送其他任何邮件,而且您可以从任意一封邮件中退订。
完全无需账户:在 7 天之内可以在各个 attest 路由上调用 35 次,所生成的回执都会被标记为测试回执。当您想继续使用时,再注册账户即可。