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 整合