POSTFACT — Resolve Ambiguous Side Effects Before Retry

io.github.GSterlingPress由 GitHub 账号 GSterlingPress 发布v0.1.1更新于 Oct 24, 2026

Resolve whether an uncertain side-effecting action completed before software retries it.

发布方自己的服务:Resolve

已验证Streamable HTTP可网页运行开发者工具AI 与机器学习

概览

AI 生成的概览

远程 MCP 服务器,用于判断一次结果不明的副作用操作是否真的完成,帮助助手决定重试是否安全。

可以做什么
  • 解析不确定结果:在带副作用的 API 或工具调用以含糊方式失败后、重试之前调用 resolve_outcome。
  • 获得严格判定:只有存在明确的完成证据才返回 DONE,只有存在明确的未执行证据才返回 NOT_DONE,否则返回 UNKNOWN。
  • 获取结构化输出,包括状态、是否可安全重试、置信度、证据和建议的下一步。
  • 提供失败上下文,例如请求方法、状态码、副作用与幂等性信息,以及持久化引用和可选证据。
适用场景
适合助手执行会改变状态的操作(付款、写入、发送)时,调用超时或失败且结果不明,希望在重试前做一次保守判断的场景。它是决策辅助,不负责执行操作。
运行要求
需要一个远程 streamable HTTP 端点;未声明任何软件包、账号、API 密钥或环境变量。需要能访问该托管服务的网络。
安装前请注意
该服务器不执行底层操作、不转移资金,且在证据不足时返回 UNKNOWN,因此调用方仍需自行处理暂停或核实的路径。提交的失败上下文会发送到第三方托管服务;README 还提到公开的活动与排行榜端点会展示使用情况摘要。

安装

在 SourceWeft 中

  1. 打开 控制台中的 POSTFACT — Resolve Ambiguous Side Effects Before Retry,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.GSterlingPress%2Fpostfact/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "postfact-resolve-ambiguous-side-effects": {
      "type": "http",
      "url": "https://postfact-api-production.up.railway.app/mcp"
    }
  }
}

README

POSTFACT

Did the call actually happen?

POSTFACT is a tiny ambiguous-outcome resolver for autonomous software. Use it after a side-effecting API/tool action fails ambiguously and before retrying.

Production: https://postfact-api-production.up.railway.app

It is intentionally strict:

  • DONE only when affirmative evidence establishes completion.
  • NOT_DONE only when affirmative evidence establishes non-execution.
  • UNKNOWN whenever evidence is insufficient. UNKNOWN is the safe default.

POSTFACT does not execute the underlying action, move money, or pretend a timeout means failure.

REST

Production endpoint: POST https://postfact-api-production.up.railway.app/v1/resolve

Input accepts method/status/failure, side-effect and idempotency context, durable references, and optional affirmative evidence. Output is state, retry_safe, confidence, evidence, and next.

MCP

Remote endpoint: POST https://postfact-api-production.up.railway.app/mcp

Tool: resolve_outcome

The tool description explicitly tells agents to invoke POSTFACT after an ambiguous side-effect failure and before retry.

Middleware-shaped contract

js
const outcome = await postfact.resolve(failureContext)if (outcome.state === 'DONE') return completedif (outcome.state === 'NOT_DONE' && outcome.retry_safe) return retry()return verifyOrHold()

Future SDKs can wrap retry middleware without changing the wire contract.

POSTFACT + RECOVER

POSTFACT answers what can we establish happened? RECOVER answers what is the safest next action? A future retry stack can call POSTFACT first, then RECOVER when the outcome remains uncertain.

Safe discovery and demo

  • Health: GET https://postfact-api-production.up.railway.app/health
  • Demo: GET https://postfact-api-production.up.railway.app/demo
  • Activity: GET https://postfact-api-production.up.railway.app/activity
  • Machine-readable activity: GET https://postfact-api-production.up.railway.app/activity.json

GET /demo is deliberately excluded from real-use analytics.

Real-use scoreboard

GET /activity shows the permanent FIRST 10 TRUE STRANGERS scoreboard. GET /activity.json exposes its machine-readable summary. Demo/internal traffic is excluded. Production persistent storage is mounted at /data.

Run

bash
npm testnpm start

Default port: 8080.

来源:README.md,提交 7f71964

工具

1

resolve_outcome

Resolve Ambiguous Side Effect

Call after a side-effecting API/tool action fails ambiguously and before retrying. POSTFACT returns DONE only with affirmative completion evidence, NOT_DONE only with affirmative non-execution evidence, otherwise UNKNOWN. UNKNOWN is the safe default.

输入参数methodstatusfailureevidencerequestIdsideEffectresourceRefidempotencyKeytransactionRef

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 65%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Resolve 集成