SeenRelay

io.github.ovladon由 GitHub 账号 ovladon 发布v0.3.10更新于 Nov 2, 2026

Avoid redundant expensive validation. CHECK recent evidence; OBSERVE fresh independent results.

已验证Streamable HTTP可网页运行数据与分析AI 与机器学习

概览

AI 生成的概览

SeenRelay 是一个托管 MCP 服务,提供 check_fact 与 observe_fact 两个工具,记录并报告有来源事实的近期证据,帮助智能体避免重复昂贵的验证。

可以做什么
  • 按已知的事实标识查询近期共享观测,返回 SAME_OBSERVED、CHANGED_OBSERVED、CONTESTED、STALE 或 UNKNOWN 等状态
  • 提交一次刚完成且独立验证的观测,可选附带 Ed25519 密钥持有证明,供后续查询使用
  • 把返回的证据用作付费搜索、计量抓取、限流 API 或多步验证前的成本预检
  • 只报告近期观测,是否再次验证仍由调用方决定
适用场景
适用于智能体或一组智能体反复为同一项只读、有来源的验证付费,并想先确认是否已有近期观测的场景。它是决策辅助,不是查询他人原始结果的工具,本身不浏览、不搜索也不核验来源。
运行要求
远程 MCP 端点位于 seenrelay.com;SeenRelay 本身无需账号或 API 密钥。调用方需提供已知值、确定性的有来源事实标识以及自己的新鲜度窗口。可选客户端库以 npm 和 PyPI 包形式提供。
安装前请注意
共享证据属于调用方策略,不能证明真实性或独立的现实主体;SAME_OBSERVED 并非真实性结论。观测值与事实坐标会发送到第三方托管服务,应避免使用带凭据或签名的来源网址。不得抑制变更或破坏性操作,复用必须限定在明确的新鲜度窗口内。

安装

在 SourceWeft 中

  1. 打开 控制台中的 SeenRelay,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "seenrelay": {
      "type": "http",
      "url": "https://seenrelay.com/mcp"
    }
  }
}

README

SeenRelay

Decide when you actually need to look again.

SeenRelay measures repeated expensive read-only execution around agents and distributed software. It prefers local/private and source/provider-native controls first, preserves authoritative execution while measuring, and keeps only paths that earn a USE verdict. Start locally with npx seenrelay scan; if no candidate exists or a stronger native control already wins, stop there. DO NOT USE and INSUFFICIENT EVIDENCE are valid outcomes.

Currently free · no account · no SeenRelay API key required.

Terminology: a Savings Report (machine label: Verified Savings Record) is measurement evidence for avoided work and cost provenance. It is not an invoice, bill, charge or payment receipt. Some SDK/API identifiers retain receipt wording for backward compatibility only.

SeenRelay itself requires no account or API key. A third-party client, directory, gateway, or assistant may require its own account to use that third-party service; that is not a SeenRelay access requirement. The canonical direct MCP endpoint is https://seenrelay.com/mcp.

See measured proof before you install

The Proof Atlas shows where SeenRelay has already reduced real provider work under frozen semantic contracts:

  • 8-agent first-party operating workload: eight department agents across two tenant identities kept their independent role analyses while sharing approved current evidence. Paid web-search actions fell 13 → 4 and measured provider cost fell $0.16499684 → $0.05560972 ($0.10938712 gross avoided; 66.30% reduction for this run). One tenant was real SeenRelay operating work; the second was an explicitly synthetic external-client rehearsal with real provider execution.
  • real live-event monitoring: four paid downstream briefings became one on unchanged event state across 3/3 paired runs (79.61% mean gross reduction), while a changed event fingerprint forced fresh work;
  • 64 GB hosted compute: $1.9241253 → $0.4820025 for four compatible intents ($1.4421228 avoided; 74.95% gross reduction) — mechanism-only for the exact SHA-256 task because local computation wins Tool Necessity;
  • real retail monitoring: 4 → 1 Firecrawl credits across 3/3 unchanged-state trials (75% reduction) under its bounded contract.

The 8-agent result is first-party operating evidence, not external customer adoption, customer ROI or net customer savings; local coordination/integration overhead was not monetized. Other Proof Atlas rows include controlled mechanism results, and a high reduction does not automatically mean the expensive tool was the best baseline. Proof Atlas exposes baseline quality separately. For example, the 64 GB SHA-256, fixed-rule weather, fixed-string LiteLLM, and PyPI-version web-search tests are mechanism-only because cheaper local/source-native solutions exist for those exact benchmark tasks. Negative evidence is published too.

Human-readable proof: https://seenrelay.com/proof
Machine-readable proof: https://seenrelay.com/proof.json

What SeenRelay is deciding

SeenRelay is designed around one question: “I already know X — do I need to pay to validate X again now?”

CHECK is not a lookup for somebody else's raw result. The caller supplies the known value, deterministic source-backed fact identity and its own freshness window. SeenRelay reports compatible recent evidence; the caller keeps authority over whether to validate again.

For a small public set of source-backed facts, use the canonical starter descriptors at https://seenrelay.com/starter-facts.json. They publish identity metadata only — no observed values, no recommended TTL and no reuse authorization. Full decision-layer rationale: docs/DECISION_LAYER.md.

Not sure whether SeenRelay fits? Ask for a workload audit

If you have a public workload that appears to repeat expensive read-only work, you can ask for a native-first prescreen before installing anything:

https://github.com/ovladon/seenrelay/issues/new?template=audit-my-workload.yml

The first answer may be REJECT BEFORE COLLECTION, MEASURE IN SHADOW, or INSUFFICIENT EVIDENCE. A local, source-native, or provider-native control winning is a successful result.

Fastest start: give SeenRelay to your coding agent

Claude Code can install SeenRelay persistently from this repository's validated self-hosted marketplace:

bash
claude plugin marketplace add ovladon/seenrelayclaude plugin install --scope user seenrelay@seenrelay

This direct-install path is repository-hosted and does not imply Anthropic marketplace approval. It does not automatically attach the hosted MCP endpoint or enable reuse.

GitHub Copilot CLI can discover the existing portable Agent Plugins package from this repository's self-hosted marketplace:

bash
copilot plugin marketplace add ovladon/seenrelaycopilot plugin install seenrelay@seenrelay

The Copilot route is optional and uses the repository's existing skill and MCP metadata. It does not enable reuse automatically. Marketplace publication does not imply listing in a curated or default catalog, and end-to-end Copilot installation is not yet independently verified.

Other Agent Skills clients can use the canonical domain:

bash
npx skills add https://seenrelay.com --skill seenrelay --yes

Then ask it:

text
Run a SeenRelay shadow audit on this project. Find repeated expensive read-only validations, preserve every authoritative call, measure stronger local/source/provider-native controls first, do not enable reuse, and return USE / DO NOT USE / INSUFFICIENT EVIDENCE for each measured workload.

Or use the developer paths below. Full audit method: docs/SHADOW_AUDIT.md.

Install: npm install seenrelay · pip install seenrelay · client v0.2.30 · currently free · no account/API key.

Zero-code local prescreen

Before changing application code, ask whether the repository even contains a plausible recurring expensive read-only validation path:

bash
npx seenrelay scan

The scan is local-only: it does not contact SeenRelay, upload source code or modify the project. It reports only pre-evidentiary states such as CANDIDATE_FOR_SHADOW_MEASUREMENT, NATIVE_CONTROL_FIRST, NEEDS_RUNTIME_EVIDENCE and NO_ELIGIBLE_CANDIDATE_FOUND. Static analysis cannot return USE or authorize reuse.

Optional GitHub Actions cost prescreen

Teams can expose the same local-only static prescreen in CI without a SeenRelay account or API key:

yaml
- id: seenrelay  uses: ovladon/seenrelay-cost-prescreen@v1

The action runs on the GitHub runner, does not contact the SeenRelay service, does not upload source code to SeenRelay, and cannot enable reuse or return a USE verdict. It produces a team-visible job summary plus machine outputs for the static status and next non-mutating decision.

Free shadow audit: measure without changing application behavior

Ambient wraps an existing MCP-style client in local shadow mode. The authoritative call still runs; SeenRelay measures exact repetition and produces a local report.

JavaScript / TypeScript:

bash
npm install seenrelay
js
import { ambientMcpClient } from 'seenrelay/ambient';
const client = ambientMcpClient(rawMcpClient);// use client.callTool(...) normallyconsole.log(client.seenRelayAmbient.getReport());

Python:

bash
pip install seenrelay
python
from seenrelay_ambient import ambient_mcp_client
client = ambient_mcp_client(raw_mcp_client)# await client.call_tool(...) normallyprint(client.get_report())

Run the existing workload and inspect the report before enabling any bounded reuse. Shared CHECK remains optional and off by default in Zero-State.

SeenRelay is a provider-independent reuse layer for repeated read-only validation. It has exactly two hosted domain operations: CHECK and OBSERVE, and reports recent observations rather than universal truth.

Current JavaScript/TypeScript and Python clients include multi-signal shared-evidence assurance helpers, deterministic Fact Coordinate Kit v1 and provider-independent Zero-State. Python Zero-State supports explicit read-only in-flight/local reuse, caller-owned private L1 and source-native conditional validation before authoritative fallback. The classic Python API and Python Ambient adapters remain shadow-first by default. Shared evidence is explicit caller policy, does not prove truth or independent real-world actors, and MCP/OpenAPI coordinates are local repetition keys unless a stable source-native locator supports a shared fact descriptor. Provider-specific adapters are optional.

What it can avoid

Even with no shared observation:

  • simultaneous identical eligible calls can be coalesced in-process;
  • completed read-only results can be reused only inside an explicit caller-defined freshness window;
  • optional encrypted caller-owned L1 storage can reuse values across workers or restarts;
  • ETag / Last-Modified can support source-native conditional confirmation without a shared CHECK;
  • shared CHECK is optional in Zero-State and is not placed on the hot path merely because SeenRelay is installed;
  • after a genuinely fresh independent validation, OBSERVE can add evidence that may help later callers.

Access is currently free and requires no account or API key.

Start here

  • Decision layer: docs/DECISION_LAYER.md
  • Canonical starter facts: https://seenrelay.com/starter-facts.json
  • Free shadow audit: docs/SHADOW_AUDIT.md
  • Claude Code persistent install: claude plugin marketplace add ovladon/seenrelay then claude plugin install --scope user seenrelay@seenrelay
  • Other coding-agent install: npx skills add https://seenrelay.com --skill seenrelay --yes
  • Public install: npm install seenrelay or pip install seenrelay
  • JavaScript / TypeScript Zero-State: clients/typescript/README.md
  • Fleet economics: https://seenrelay.com/economics
  • Client overview: clients/README.md
  • Integration choices and MCP setup: docs/CLIENTS.md
  • Quickstart: docs/QUICKSTART.md
  • Protocol contract: docs/PROTOCOL.md
  • Web quickstart: https://seenrelay.com/quickstart
  • Web client integrations: https://seenrelay.com/clients
  • MCP endpoint: https://seenrelay.com/mcp
  • Official MCP Registry: io.github.ovladon/seenrelay
  • OpenAPI: https://seenrelay.com/openapi.json
  • Machine descriptor: https://seenrelay.com/service.json
  • Machine-oriented index: https://seenrelay.com/llms.txt

How it works

For eligible JavaScript/TypeScript Zero-State calls, the preferred order is:

  1. exact in-process reuse / coalescing when safe;
  2. optional caller-owned private reuse;
  3. source-native conditional confirmation when available;
  4. optional shared SeenRelay CHECK when configured and useful;
  5. the application's original validation as fallback;
  6. OBSERVE only after a fresh independent validation that is eligible for contribution.

For direct REST/MCP or the classic wrapper, CHECK and OBSERVE remain available exactly as before.

Possible CHECK statuses are SAME_OBSERVED, CHANGED_OBSERVED, CONTESTED, STALE, and UNKNOWN.

SAME_OBSERVED means the same value was recently observed for the same deterministic fact identity. It is not a truth verdict. The consuming agent decides whether the evidence is sufficient for its own policy.

JavaScript / TypeScript Zero-State

js
import { SeenRelayZeroState } from 'seenrelay/zero-state';
const edge = new SeenRelayZeroState({  localMaxAgeMs: 30_000});
const result = await edge.guard({  coordinate: {    tool: 'catalog.read',    arguments: { id: 42 }  },  validate: async () => expensiveRead()});
console.log(result.value);

The default completed-result freshness window is 0. SeenRelay does not invent a TTL for arbitrary calls. Mutation/destructive operations must not be suppressed; generic core does not infer read-only safety from tool names, descriptions or untrusted annotations.

For MCP clients, seenrelay/mcp-auto can bind once around explicitly allowlisted callTool() operations. Unlisted tools pass through unchanged.

Classic shadow-first path

The original JavaScript/TypeScript and Python APIs remain available. Without an explicit reuse policy they CHECK, keep the original validation, and OBSERVE the independently obtained result best-effort.

js
const relay = new SeenRelayClient();
const validatePrice = relay.protectValidation({  fact,  validate: ({ conditionalHeaders }) => existingValidation(conditionalHeaders)});
const value = await validatePrice(knownValue);

Python exposes the equivalent protect_validation(...) path. Use Shadow Proof when you specifically want to measure public CHECK evidence before enabling classic bounded reuse.

Source-native revalidation

Source-native validators are preferable to guessing freshness. When a retained response carries a safe ETag or Last-Modified validator, a later eligible validation can try If-None-Match or If-Modified-Since. A 304 Not Modified response is confirmation from the source, not from SeenRelay.

The classic CHECK/OBSERVE path can also carry observer-supplied ETag / Last-Modified metadata as an explicitly unverified conditional-request hint. The caller still decides whether source confirmation is required.

Optional private L1

JavaScript/TypeScript Zero-State can use a caller-supplied private store plus codec for reuse across workers or restarts. SeenRelay provides an AES-256-GCM codec helper; the caller owns the key, storage and namespace.

Private values are not sent to the public SeenRelay service merely because private L1 is enabled. Store or codec failure fails open into the application's normal validation path.

Fact identity

SeenRelay uses the versioned seenrelay-fact-v3 identity contract. Identity precedence is:

  1. stable source-native locator (json_pointer, element_id, source_key);
  2. canonical machine predicate when no stable locator exists.

Human-readable subject text and mutable observed content do not enter the fact key. Source URLs are canonicalized deterministically without browsing. Credential- or signature-bearing source URLs are rejected before stateful admission.

See docs/PROTOCOL.md for the complete contract.

Observer provenance

OBSERVE supports optional transport-independent ed25519-v1 proof-of-possession. A valid proof establishes key possession, continuity, and payload integrity. It does not establish legal identity, independent real-world actor identity, or truth.

An intermediary provider-cache hit is not re-labeled as a new independent OBSERVE merely because a different caller received it.

Access and contribution

SeenRelay issues signed ephemeral operational leases without account creation. CHECK and OBSERVE are currently free to use. Contribution credit is based on later qualifying reuse rather than raw submission volume.

Hive classes describe operational contribution only; they are not identity or truth scores.

Public interfaces

The canonical domain is seenrelay.com.

  • Browser Accept: text/html at / receives the public landing page.
  • Generic/API requests to / receive the machine descriptor.
  • /service.json exposes the explicit machine descriptor.
  • /public-stats.json exposes privacy-safe aggregate activity.
  • /openapi.json exposes the REST contract.
  • /mcp exposes MCP 2026-07-28.
  • /quickstart and /clients provide integration instructions.

Product boundary

SeenRelay itself does not browse or search fact sources, perform on-demand external verification, call an LLM to decide truth, or expose a shared general-agent memory. UNKNOWN simply means no sufficiently recent reusable shared observation is available.

Client-side adapters can use source-native validation or integrate with existing providers, but provider adapters are optional and cannot become dependencies of the provider-independent core.

Architecture

  • Vercel managed deployment
  • Neon Postgres state store
  • Hono + TypeScript / Node 22
  • REST/OpenAPI
  • MCP 2026-07-28 through the official v2 server SDK
  • provider-independent JavaScript/TypeScript Zero-State client plus classic JavaScript/TypeScript and Python wrappers
  • authenticated human-only Control Room for runtime operations and incident controls

A2A is monitored but is not advertised as an implemented product interface.

Verification

npm run check performs TypeScript checks, product guardrails, production dependency auditing, structural tests, and runtime tests. Package Validation clean-installs built npm/PyPI artifacts. The Preview Release Gate additionally exercises REST, MCP, fact identity, security boundaries, runtime controls, and reuse accounting against the required Preview runtime commit, accepting a later serving SHA only when every intervening commit is outside the Vercel runtime boundary.

Builds use the committed lockfile and npm ci.

Maintenance

Dependabot and Standards Watch prepare isolated maintenance work. Production changes remain subject to compatibility, security, CI, and Preview verification gates.

Bootstrap

bash
npm cinpm run check# DATABASE_ADMIN_URL must be set only for this migration commandnpm run db:migrate

Deployment details are in docs/DEPLOYMENT.md.

来源:README.md,提交 c284eac

工具

2

check_fact

Check Fact Freshness

Cost preflight before repeated paid or slow source-backed validation, especially across an agent fleet. Use before paid web search, metered scraping, browser/extraction, rate-limited APIs or multi-step validation when the caller already has a known value. Returns SAME_OBSERVED, CHANGED_OBSERVED, CONTESTED, STALE or UNKNOWN. Only SAME_OBSERVED can be considered for caller-policy-gated reuse; every other status requires normal authoritative validation before OBSERVE. SeenRelay never browses or verifies externally.

输入参数fact必填known_value必填max_age_seconds

observe_fact

Contribute Fact Observation

After independently performing a source-backed validation, deposit the observed result for later CHECKs. Returns accepted=true when a new observation is stored or deduplicated=true for a recognized retry/recent duplicate. Never OBSERVE hearsay. Optional Ed25519 proof establishes key possession and continuity, not truth or real-world independence.

输入参数fact必填value必填observed_atobserver_idobserver_proofidempotency_keysource_validatorevidence_fingerprint

版本历史

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

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

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