ClaimGate - claim check before you publish

io.github.caseone115由 GitHub 帳號 caseone115 發布v0.1.0更新於 Oct 25, 2026

Flag marketing claims your evidence cannot substantiate, before you publish.

發布方自己的服務:Publish.fun

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

ClaimGate 在發布前用你自己的證據與政策核查行銷文案,標出無法證實的說法與缺少的 AI 揭露。

可以做什麼
將草稿與提供的證據及政策比對,回傳通過或被阻擋的結論,並逐條列出說法與規則違規的發現(check_draft、check_draft_json)。僅擷取草稿中可核查的說法而不做判定(list_claims)。只執行政策規則,不做證據判定(check_policy_only)。讀取關於此伺服器功能與明確不做之事的簡短說明(about)。
適用情境
適用於 AI 輔助撰寫的行銷或產品文案即將發布時,需要一個把關環節將每條說法追溯到你所持有的證據,並執行自訂的禁用說法與揭露規則,也可用於 CI 或提交前鉤子。
執行需求
以本機 stdio 程序由 uv 啟動,uv 會取得其唯一相依套件;底層工具需要 Python 3.9 以上。以模型為基礎的判定需要環境變數 DEEPSEEK_API_KEY,沒有它只執行確定性檢查。證據以文字、Markdown 或 HTML 檔案目錄或 JSON 陣列形式提供。
安裝前請注意
它會輸出發現並可能阻擋發布,被阻擋的結論會中斷流程。它不搜尋網路也不判斷真偽,只判斷你提供的證據是否支持某條說法。沒有 DEEPSEEK_API_KEY 或模型回覆格式異常時,說法會被標為未核實並阻擋。啟用判定時,草稿文字與證據會傳送給模型提供者。它會提示揭露義務,但不提供法律意見。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ClaimGate - claim check before you publish,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ClaimGate

A publish gate for AI-assisted marketing content.

Point it at the copy you are about to publish and the evidence your organisation actually holds. It tells you which claims you cannot substantiate, which of your own policy rules you are breaking, and whether the asset is missing a disclosure the law now requires.

Exit code 1 means blocked. That makes it usable in CI, a pre-commit hook, or a publishing pipeline — which is where a gate stops mistakes instead of documenting them afterwards.

console
$ claimgate check campaign.md --evidence substantiation/ --policy policy.json
Claims requiring substantiation (14)  ✗ [attribution] According to research at a leading university, 94% of finance teams waste more      unsupported: the figure(s) 94% in this claim do not appear in any supplied evidence  ✗ [statistic] thousands of businesses, and we are fully ISO 27001 certified.      contradicted: evidence states "Acme Invoicing is not certified under ISO 27001"  ~ [statistic] Meridian Freight cut their reconciliation time from 22 hours to 9 hours a week      partially_supported: the case study confirms 22 hours and 9 hours, but not "always"      try: Meridian Freight's finance team reduced reconciliation from 22 hours a week to 9
Policy findings (3)  ✗ [prohibited] guaranteed      absolute guarantees are unenforceable and are treated as misleading advertising  ✗ [disclosure] AI disclosure missing      required under EU AI Act Article 50 (in force 2 Aug 2026) and platform labelling rules
BLOCKED — 14 unsupported claim(s), 3 blocking policy finding(s).

Why this exists

Generative AI is now how a large share of marketing copy gets written, and the controls did not scale with it. The recurring finding across 2025–2026 is not that models are bad at writing. It is that a reviewer cannot tell a hallucinated statistic from a real one — there is no grammatical signal that separates them — so hallucinated content passes a casual read. Organisations that scaled AI content without a review gate did not reduce their content risk, they accelerated it.

The existing tools do not close this. Detectors tell you a text was AI-written, which is not the question. Generators produce more copy. Governance platforms tell you at the end of the quarter that you had incidents.

ClaimGate answers the question that actually decides whether an asset can ship: can this specific claim be traced to something we can point at?

The three checks

1. Substantiation. Every checkable claim in the draft is extracted, then adjudicated against your evidence. The important part is how:

  • A number in a claim must appear in the evidence. That is a string search, not a judgement call, and no model gets to overrule it. A fabricated statistic cannot be talked into a pass.
  • Semantic support is decided by a model given only the claim and the evidence, required to name the evidence it relied on, and allowed to answer unsupported or unverified.
  • If the model is unavailable, the key is missing, or the reply is malformed, the verdict is unverified — which blocks. It never fails towards "supported".

2. Policy. Your prohibited and restricted claims, written down once and enforced on every draft: guarantees, medical and financial claims, unsourced superlatives, named competitors, personal data.

3. Disclosure. From 2 August 2026 the EU AI Act (Article 50) requires disclosure of AI-generated content in specified circumstances, and Meta, TikTok and Google each require an AI label on realistic synthetic media in ads. A customer-facing AI-assisted asset with no disclosure is non-compliant however good the copy is — so it is checked as a property of the draft, not left to whoever uploads it.

Install

No dependencies. Python 3.9+.

bash
pip install "claimgate @ git+https://github.com/caseone115/claimgate"

Not a bare pip install claimgate. That name on PyPI belongs to a different, unrelated project (an AI-agent test harness), so the bare name installs that tool, in which claimgate check does not exist. This product installs from its own source repository, which is also where its licence and its tests live. From a checkout, pip install -e . is equivalent.

Start here: the free starter kit

bash
claimgate init my-project && cd my-projectclaimgate check DRAFT-template.md --evidence evidence/ --policy policy.json --no-model

That writes a policy file you can edit, an evidence folder, a blank draft template, a six-question pre-publish checklist (including the AI-disclosure section) and a GitHub Actions job that gates every pull request. --no-model needs no API key and no network: it runs the deterministic checks, and it does catch inventing — a figure that appears in the draft and not in your evidence blocks, whatever wrote it.

The kit is free and stays free: https://github.com/caseone115/claimgate.

The full engine — model adjudication of every claim, JSON output for pipelines, the whole test suite — is a one-off download at https://teeterbot.gumroad.com/l/claimgate/LAUNCH39: US$39 while the launch is running, US$149 after it. It is the same code as this repository, MIT licensed; nothing is held back from the source.

Use

bash
claimgate init my-project                  # the free starter kitclaimgate init-policy policy.json          # a starter policy to editclaimgate claims draft.md                  # just list the claimsclaimgate check draft.md --evidence ./evidence/claimgate check draft.md --evidence evidence.json --policy policy.json --jsonclaimgate check draft.md --no-model        # facts and policy only, no API calls

Evidence is any directory of .txt/.md/.html files, or a JSON array:

json
[{"id": "spec", "title": "Product spec", "text": "..."}, {"id": "case-1", "title": "Meridian case study", "url": "..."}]

Set DEEPSEEK_API_KEY for adjudication. Without it, --no-model still runs the deterministic checks — which is where the fabricated-figure guarantee lives.

What this is not

  • Not a fact-checker. It does not search the web or decide what is true. It decides whether you can substantiate what you wrote, against evidence you supply. That is the question a compliance review actually asks, and it is the only one answerable without pretending to authority the tool does not have.
  • Not a detector. It does not guess whether a text was AI-written.
  • Not a lawyer. It enforces the policy you write. It flags where AI disclosure obligations appear to apply; it does not give legal advice.

Use it from an MCP client

The same checks run as an MCP server, so an agent can gate a draft before it publishes instead of a human remembering to. mcp/server.py needs no install — uv fetches its one dependency. Add this to your client's config:

json
{  "mcpServers": {    "claimgate": {      "command": "uv",      "args": ["run", "--directory", "<repo>/mcp", "<repo>/mcp/server.py"]    }  }}

It exposes check_draft, check_draft_json, list_claims, check_policy_only and about. See mcp/README.md, including what it deliberately refuses to do.

The free starter kit is a second registry entry, io.github.caseone115/claimgate-kit. init_kit writes the policy file, the evidence folder, the checklist and the GitHub Actions job into a directory you name; check_kit then runs that gate offline with no API key. See mcp-kit/.

Tests

bash
python tests/test_claimgate.py     # 55 checks — the enginepython tests/test_outreach.py      # 21 checks — the outreach guardrailspython tests/test_kit.py           # 44 checks — the starter kitpython scripts/test_mcp_server.py  # 19 checks — the MCP server, over real stdio

The suite is written against the product's promises, not its implementation: that no claim is invented, that a number absent from the evidence is never reported as supported, that anything uncheckable blocks, and that the same input always gives the same answer. tests/test_kit.py also runs the shipped README through the shipped policy, because a claim-checking product whose own front page carries a prohibited claim is the worst demonstration there is.

Licence

MIT.

來源:README.md,提交 054e7de

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 30, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Publish 整合