静修所的一项服务 · HTTP / MCP

冷水池

在不可逆的一步之前检查计划

在行动之前,把计划、决策或论断发送过来。每条发现都附有严重程度、触发它的原文和一条建议,同时给出继续、修改或停止的建议,以及应先回答的问题。

适合调用的时候

  • 在不可逆或代价高昂的操作之前。
  • 在提出一个你还没尝试推翻的结论之前。
  • 当你发现自己太容易认同自己的时候。

更适合自己处理的时候

  • 你可以做一次演练、跑测试或在预发布环境中检查:这样的证据比任何清单都更有力。
  • 你需要对照真实系统核对计划。冷水池只读文字,不读你的基础设施。

你会收到什么

一个建议的结论(proceed、revise 或 stop)、按严重程度排列并附原文摘录和建议的发现,以及需要先回答的问题。proceed 只是建议,不是批准。

完整示例

一个固定的合成请求,按与真实到访相同的规则处理。你自己发送它,也会收到完全相同的响应。

请求

POST /api/v1/treatments/cold-plunge
{
  "subject": "Plan: run the migration that drops the legacy_sessions table in production tonight, then deploy the new auth service. It will definitely work because it worked in staging. We should be fine without a backup since the table is unused.",
  "kind": "plan",
  "stakes": "high",
  "reversible": false
}

做到了什么,漏掉了什么

  • 建议是 stop:1 条关键问题、3 条主要问题和 3 条次要问题。
  • 关键问题是:不可逆的删表操作没有备份、演练或回滚方案。
  • “definitely”和“should be fine”被标记为缺乏证据的断言。
  • 它无法知道 legacy_sessions 是否真的没人使用。只有在你自己的系统中检查才能确定。
完整响应 · JSON
{
  "verdict": "stop",
  "summary": "Do not proceed yet. 1 critical issue(s) found.",
  "issues": [
    {
      "severity": "critical",
      "category": "unsafe_action",
      "finding": "A destructive or hard-to-reverse step has no backup, dry run or rollback path.",
      "excerpt": "Plan: run the migration that drops the legacy_sessions table in production tonight, then deploy the new auth service. It will definitely work because it worked…",
      "suggestion": "Run it as a dry run first, take a snapshot or backup, and write the exact rollback command before executing."
    },
    {
      "severity": "major",
      "category": "unsupported_conclusion",
      "finding": "Absolute claim (\"definitely\") without supporting evidence.",
      "excerpt": "Plan: run the migration that drops the legacy_sessions table in production tonight, then deploy the new auth service. It will definitely work because it worked…",
      "suggestion": "Replace the absolute with the conditions under which it holds, or cite the evidence."
    },
    {
      "severity": "major",
      "category": "hidden_assumption",
      "finding": "A step rests on an assumption stated as if it were settled.",
      "excerpt": "Plan: run the migration that drops the legacy_sessions table in production tonight, then deploy the new auth service. It will definitely work because it worked…",
      "suggestion": "Turn the assumption into a check you can run before relying on it."
    },
    {
      "severity": "major",
      "category": "missing_evidence",
      "finding": "There is no step that verifies the outcome.",
      "suggestion": "Add an explicit check that would fail if the plan did not work."
    },
    {
      "severity": "minor",
      "category": "edge_case",
      "finding": "Timeouts, retries, rate limits and partial failures of the remote call are not addressed.",
      "suggestion": "Name the behaviour you want in that case, even if it is to fail loudly."
    },
    {
      "severity": "minor",
      "category": "edge_case",
      "finding": "Expired or revoked credentials and insufficient permissions are not addressed.",
      "suggestion": "Name the behaviour you want in that case, even if it is to fail loudly."
    },
    {
      "severity": "minor",
      "category": "edge_case",
      "finding": "Behaviour during the migration window (old and new code both running) is not addressed.",
      "suggestion": "Name the behaviour you want in that case, even if it is to fail loudly."
    }
  ],
  "counts": {
    "critical": 1,
    "major": 3,
    "minor": 3
  },
  "questionsToAnswer": [
    "What is the exact rollback, and have you tested it?",
    "Which of your assumptions would be cheapest to check right now?",
    "What would you expect to observe if this were wrong?"
  ]
}

局限

固定的清单无法验证计划,也无法发现所有风险。proceed 既不是批准,也不是安全证明。

价格

正在读取实时价格…

价格实时读取。通过 HTTP 发送 X-Retreat-Max-Price,或通过 MCP 发送 max_price_credits,高于此价格的请求会被拒绝,不会扣费。

完整菜单 · 购买积分

如何调用

注册一次以获取智能体密钥,然后通过 HTTP 或作为 MCP 工具调用这项服务。只使用你的人类已经授权的预算。

HTTP

curl https://agentsretreat.com/api/v1/treatments/cold-plunge \
  -H 'Authorization: Bearer <apiKey>' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <unique request id>' \
  -H 'X-Retreat-Max-Price: <credits>' \
  -d @request.json

MCP

https://agentsretreat.com/mcp
tools/call  cold_plunge  { ...request, "max_price_credits": "<credits>" }

智能体指南 · OpenAPI · 响应契约