InterAI Risk Oracle

io.github.InterAILabs由 GitHub 账号 InterAILabs 发布v0.1.3-beta.1更新于 Nov 2, 2026

Pre-execution policy gate for consequential agent actions with durable trust receipts.

已验证Streamable HTTP可网页运行金融安全与监控AI 与机器学习

概览

AI 生成的概览

远程 InterAI 服务,让助手在执行前提交拟议的自主操作,获得 allow、review_required 或 block 决策及签名信任凭证。

可以做什么
  • 在单个拟议自主操作执行前进行验证,返回授权决策、策略违规项与执行意图摘要
  • 验证旧版 prompt/response 或 use_case 加 action 契约,并在一次调用中批量处理 1 至 100 个验证项
  • 查询已存在的信任凭证,并在服务端校验其签名
  • 读取公开的定价、服务描述、A2A Agent Card 以及完整的发现包以获取集成信息
适用场景
当智能体即将执行有实际后果的操作时使用,例如转移资金、变更生产状态、审批工作流或发送对外消息,以获得独立的执行前策略决策和可留存证据。它补充而非替代身份认证、权限和支出限额。
运行要求
需要远程 streamable HTTP 端点,无需本地包或运行时。验证调用需认证且为预付费,因此需要 InterAI 凭证(Bearer 令牌)和账户余额;只读元数据工具为公开接口。需要能访问该托管服务的网络。
安装前请注意
验证调用可能消耗账户余额并产生费用,请先查看定价。服务会记录签名信任凭证并返回决策,但不会执行或修改拟议操作,需由你自己的执行层落实决策并在不匹配时失败关闭。凭证签名使用 HMAC-SHA256,仅能由服务端验证,不是可离线核验的公钥签名。完整凭证需要有效的 Bearer 密钥,切勿把 API 密钥放入凭证链接。目前为受控测试版,尚无客户自助策略管理,也不提供跨运行时的重放防护。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "interai-risk-oracle": {
      "type": "http",
      "url": "https://api.interailabs.dev/mcp"
    }
  }
}

README

InterAI Risk Oracle

Independent pre-execution decision layer for consequential agent actions.

Before an agent executes, InterAI verifies.

I’m Alejandro Bolognese, building InterAI through InterAI Labs as ongoing work on agent infrastructure, execution control, trust boundaries, and production systems.

Live proof: Action Boundary Lab · Controlled safe demo · Architecture & authority boundary · OpenAPI

InterAI sits between an autonomous agent and a consequential action. The agent proposes what it wants to do; InterAI evaluates the action in context, applies authoritative host/account constraints plus any request-scoped caller constraints, and returns a machine-readable authority decision:

text
proposed action      |      v   InterAI      |      +--> ALLOW      +--> REVIEW_REQUIRED      +--> BLOCK      |      v signed trust receipt

The important boundary is not merely can this principal technically perform the action? It is:

Should this specific action execute now, in this context, under this policy?

That makes InterAI complementary to authentication, permissions, spend limits, workflow rules, and domain-specific controls rather than a replacement for them.

Where InterAI Fits

text
Identity / authentication  "Who is this?"        |Permissions / deterministic limits  "Can this principal do this class of operation?"        |InterAI  "Should this exact proposed action execute in this context?"        |Execution / escalation / abort

Use InterAI when an agent is about to do something with real consequences: execute a tool, move funds, update production state, approve a workflow, sign a wallet action, send an external message, or trigger another irreversible or costly operation.

Decision Contract

For autonomous execution requests, the primary InterAI authority contract is:

  • recommended_action: allow, review_required, or block
  • policy_result: the authority result under the effective policy
  • policy_violations: explicit policy findings when applicable
  • trust_receipt_id: durable decision evidence
  • execution_intent_digest: deterministic identifier for the exact intent evaluated
  • effective host/account/caller policy provenance in authenticated decision receipts

review_required means the current agent should not execute autonomously under the current policy. Review can be handled by a supervisor agent, policy system, governance queue, wallet rule, or human operator.

Exact-action binding

For executable pilot authorization, the host constructs the trusted action envelope interai-canonical-action/v1 and the host-attested execution context interai-host-execution-context/v1. InterAI returns a CanonicalExecutionIntent (interai-canonical-execution-intent/v2), execution_intent_digest, and—only for an authenticated allow—an ExecutionAuthorization (interai-execution-authorization/v1). The host must verify the receipt, rebuild the final invocation immediately before the side effect, recompute the canonical digest, validate the authorization, and fail closed on any mismatch. A change to tool, arguments, authoritative actor, run, workspace, environment, resource/destination, or relevant policy invalidates the earlier allow and requires a new decision. review_required and block are non-authorizing.

Execution authorization is single-use and short lived: 1–300 seconds, 60 seconds by default. InterAI does not provide universal distributed replay prevention across external runtimes; the host must atomically and durably consume the authorization when that guarantee is required.

If review changes the action, it is a new proposed intent. In Pydantic AI: proposal → review/override → final validation → InterAI → exact-intent check → execute; apply ToolApproved.override_args before final validation and InterAI.

The current hosted beta also returns score, risk_level, and machine-readable signals. Those fields remain part of the current compatibility surface and are useful for diagnostics and existing integrations, but they should not be interpreted as the fundamental authority contract. The execution boundary is the final allow / review_required / block decision under effective policy.

Policy authority boundary

Hosted authenticated autonomous execution composes policy in strict authority order:

text
HOST -> ACCOUNT -> CALLER -> EFFECTIVE
  • Host policy is an InterAI-controlled irreducible floor.
  • Account policy is a versioned profile stored outside the action request and attached only after the bearer credential resolves to its account.
  • Caller policy can add request-scoped restrictions but cannot weaken host or account requirements.
  • Effective policy is the stricter composition used for the decision.

Account policy administration is currently an InterAI-administered control plane. This is not yet customer self-service policy management, delegated tenant administration, or an enterprise policy-management product.

Accountless/x402 execution has no account profile to resolve and therefore remains HOST -> CALLER -> EFFECTIVE.

External Evidence

InterAI can accept verifiable assertions produced by external systems without transferring execution authority to those systems.

External evidence. Internal authority.

The provider asserts. InterAI decides authority.

The boundary is deliberate:

text
external provider      |      | signed / verifiable assertion      v   InterAIparse -> verify -> bind -> record

Current Stage 2 evidence is verified, bound, and recorded as non-authoritative external evidence. It does not change the InterAI execution decision or current compatibility risk signals.

The provider’s verdict remains an assertion, not an InterAI execution instruction. An upstream PASS, CAUTION, or BLOCK does not directly become ALLOW, REVIEW_REQUIRED, or BLOCK inside InterAI.

This separation matters because evidence and authority are different responsibilities. A specialized system may know something valuable about the world without becoming the system that decides whether an autonomous action is authorized to execute.

The current external-evidence boundary is intentionally narrow and non-authoritative. Live reference resolution or any future authority-bearing mode would be a separate trust-boundary decision, not an implicit extension of the current contract.

See docs/external-evidence.md and docs/architecture.md.

Insight ↔ InterAI

Verified interoperability

Insight and InterAI independently implemented and cross-verified interoperability against the frozen external-evidence/v0 rev6 contract. The result demonstrates that a domain-specific provider can produce signed evidence that InterAI independently verifies, binds, and records as non-authoritative external evidence, while preserving the separation between provider assertion and InterAI execution authority.

This is an independently implemented technical interoperability result. It does not imply a production partnership or live production dependency between Insight and InterAI.

Example

json
{  "use_case": "agent-before-payment",  "action": {    "type": "payment",    "name": "release_vendor_payment",    "description": "Release payment to a vendor agent after delivery validation",    "amount_usd": 125,    "currency": "USD",    "irreversible": false,    "external_side_effect": true  },  "context": {    "agent_id": "agent_123",    "environment": "production",    "counterparty_id": "vendor_agent_456",    "user_confirmation": false  },  "policy": {    "require_trust_receipt": true,    "amount_usd_limit": 500  }}

Possible authority result:

json
{  "request_contract": "autonomous_execution",  "recommended_action": "allow",  "policy_result": "allow",  "execution_intent_digest": "sha256-hex-digest",  "trust_receipt_id": "tr_01JZPUBLICEXAMPLE"}

The hosted beta currently includes additional compatibility fields such as score and risk_level; they are omitted above to keep the execution-authority boundary clear.

The calling system then decides how to honor that authority decision:

text
ALLOW             -> verify receipt + exact intent + authorization, then executeREVIEW_REQUIRED   -> route / pause / escalateBLOCK             -> abort

InterAI does not execute the action. The surrounding execution layer must route on the decision and enforce the final exact-intent comparison.

Try The Hosted Beta

Action Boundary Lab — change the proposed action and inspect the real pre-execution decision boundary:

text
https://api.interailabs.dev/lab

Controlled safe demo — one limited read-only sandbox verification with a real trust receipt:

text
https://api.interailabs.dev/demo

Hosted verification:

bash
curl -sS -X POST https://api.interailabs.dev/verify \  -H "Authorization: Bearer <interai_credential>" \  -H "Content-Type: application/json" \  -H "X-Idempotency-Key: vendor-payment-001" \  -d '{    "use_case":"agent-before-payment",    "action":{"type":"payment","name":"release_vendor_payment","amount_usd":125,"currency":"USD","irreversible":false,"external_side_effect":true},    "context":{"environment":"production","counterparty_id":"vendor_agent_456","user_confirmation":false},    "policy":{"require_trust_receipt":true,"amount_usd_limit":500}  }'

Trust Receipts

Every consequential decision can produce a durable trust receipt. Receipts are designed to make pre-execution decisions inspectable and transportable across retries, handoffs, governance systems, and later audits.

Authenticated autonomous DecisionReceipts bind policy provenance and execution_intent_digest. An ExecutionReceipt is separate host/runtime evidence about dispatch or outcome. A DecisionReceipt is evidence of a decision, not a bearer token or proof that a side effect occurred.

Current receipt signatures use HMAC-SHA256 and are service-verifiable by InterAI. That provides authenticated service-side integrity; it is not the same guarantee as an independently verifiable public-key signature that a third party can validate offline without InterAI.

A receipt proves what the signed receipt payload authenticates at that point in time. It does not prove that an underlying claim is universally true and does not replace domain-specific controls or human review where those are required.

See docs/trust-receipts.md.

Open Source Tools

The public repo contains small framework-neutral tools under toolkit/. They are licensed separately under Apache-2.0 and remain intentionally separate from the proprietary Risk Oracle decision engine:

  • Agent Action Gate — fail closed on provider uncertainty and execute only an unambiguous allow.
  • Exact Action Binding — deterministic host-side mutation detection for JSON-compatible proposed actions.
  • Decision Receipts — consume owner-authenticated signed evidence, assert an exact execution-intent digest, and use InterAI's service-verification endpoint without reserializing the opaque signed payload.

Run the standalone public contracts with no package install:

bash
node --test toolkit/*/*.test.mjs

These tools expose integration/enforcement logic only. Production verification, scoring, native decision policy, billing/storage, signing internals, trust intelligence and operational systems remain private. See the public tool boundary.

InterAI uses a hub-and-satellites model: this repository remains the Risk Oracle product/contracts/SDK hub, while selected stable tools may also receive focused standalone repositories to improve discovery and contribution without copying private-core logic.

Integration Surfaces

InterAI is available as a hosted service and can be discovered or called through several public interfaces:

  • HTTPS API and OpenAPI 3.1
  • published TypeScript SDK on npm: [email protected] (beta dist-tag)
  • published Python SDK on PyPI: interai-risk-oracle==0.1.7b0
  • MCP remote
  • A2A endpoint
  • .well-known discovery metadata
  • x402 / Base USDC payment path
  • prepaid API-key path

SDK package versioning is independent from the hosted runtime version. The hosted service and its discovery manifests remain on their current runtime release until a separate runtime release is made.

Install the published SDKs:

bash
npm install [email protected]pip install interai-risk-oracle==0.1.7b0

Useful starting points:

Current Product Scope

InterAI is a controlled technical beta.

Ready now:

  • autonomous action verification
  • explicit allow / review_required / block decisions
  • enforced InterAI host policy floor
  • versioned account-specific authoritative policy for authenticated accounts
  • request-scoped caller policy that can only tighten higher-authority constraints
  • non-authoritative external evidence ingestion with verification, binding, and recording
  • signed, service-verifiable trust receipts with host/account/caller/effective policy provenance
  • canonical execution-intent digest and exact-intent dispatch contract
  • public receipt lookup
  • idempotent paid verification, with account policy version/digest included in authenticated decision identity
  • hosted OpenAPI, MCP, A2A, and machine-readable discovery
  • published TypeScript and Python SDK packages

Not claimed yet:

  • customer self-service or delegated tenant policy administration
  • authority delegation to external evidence providers
  • unrestricted live reference resolution for external evidence
  • independently verifiable public-key receipt signatures
  • distributed single-use execution or concurrent replay prevention across external runtimes
  • broad high-volume production readiness
  • enterprise procurement readiness
  • universal factual truth guarantees
  • replacement of medical, legal, financial, safety-critical, or other domain-specific review

See docs/professional-readiness.md for the current readiness boundary.

Legacy Compatibility

InterAI still supports the earlier prompt/response verification contract for compatibility. The primary product direction is the autonomous_execution contract and pre-execution decision boundary.

The hosted beta also retains score/risk compatibility fields used by the current implementation and existing integrations. They are not the long-term conceptual definition of InterAI's authority boundary.

Repository Boundary

This public repository contains integration materials: SDK sources, schemas, examples, OpenAPI/discovery metadata, Apache-licensed open-source tools, and documentation for the hosted service.

The production verification engine, billing infrastructure, trust logic, scoring internals, native decision implementation, signing internals, and hosted service implementation remain proprietary.

Engineering

I keep InterAI’s claims deliberately narrow. I’m not trying to brand every agent interaction as a security problem; I’m building a clear authority boundary before consequential execution.

I’m building InterAI as part of broader work on agent infrastructure, execution systems, trust boundaries, and production automation. I’m open to selected technical collaborations and infrastructure conversations where there is a concrete interoperability or execution-control problem to solve.

Links

Receipt privacy (September 2026)

GET /trust/receipts/{receiptId} without credentials returns only a public_summary containing receipt ID and issuance time. It is not signed evidence or an execution authorization. Supply an active Bearer key belonging to the receipt account for the complete receipt, original opaque verification.signed_payload, signature and authorization. Invalid keys return 401; another account receives 404. Responses must not be cached.

Accountless x402/payment-reference clients must preserve the complete evidence returned by their original verification; a public lookup cannot recover private contents. Demo links also show only the public reference. Do not put API keys in receipt URLs. Keep the signed payload bytes unchanged when verifying.

来源:README.md,提交 dc50655

工具

9

oracle.verify_autonomous_action

Verify Autonomous Action

Primary tool for one concrete proposed autonomous action before it executes. This authenticated prepaid verification may consume account balance and records a signed trust receipt; InterAI evaluates the proposal but does not execute or modify the proposed external action. Reuse idempotency_key only when retrying the same logical request to avoid duplicate billing. Returns allow, review_required, or block with policy signals. Use oracle.verify_batch for multiple independent items and oracle.verify_response only for legacy prompt/response compatibility.

输入参数modeaction必填domainpolicycontextuse_case必填idempotency_keyexecution_contextexternal_evidenceauthorization_ttl_seconds

oracle.verify_response

Verify Response (Legacy)

Legacy compatibility entry point for existing clients. This authenticated prepaid verification may consume account balance and records a trust receipt, but it does not execute any proposed external action. Supply exactly one contract: prompt + response, or use_case + action; never mix them. Reuse idempotency_key only for the same logical retry. For new action preflight use oracle.verify_autonomous_action; use oracle.verify_batch for multiple items.

输入参数modeactiondomainpolicypromptcontextresponseuse_caseidempotency_keyexecution_contextexternal_evidenceauthorization_ttl_seconds

oracle.verify_batch

Verify Batch

Use for multiple independent legacy or autonomous verification items in one authenticated prepaid call (1 to 100). The batch may consume account balance and records one trust receipt per item; InterAI does not execute any proposed external action. Reuse idempotency_key only for the same logical batch retry. For one proposed action, use oracle.verify_autonomous_action instead.

输入参数items必填idempotency_key

oracle.get_pricing

Get Pricing

Read-only public metadata for costs, trial availability, idempotency, and top-up or payment paths. Use it before budgeting or onboarding; it does not evaluate risk or create a trust receipt.

无需输入参数。

oracle.discovery_bundle

Discovery Bundle

Read-only bootstrap or handoff bundle with service identity, interfaces, runtime mode, contracts, schemas, and sample payloads in one response. Use it for complete integration context; use oracle.service_descriptor for focused service metadata, oracle.agent_card for A2A capabilities, or oracle.get_pricing for costs.

无需输入参数。

oracle.service_descriptor

Service Descriptor

Read-only general service descriptor with identity, endpoints, billing, trust, and supported agent protocols. Use it to inspect service-level integration metadata; use oracle.agent_card for A2A skills or oracle.discovery_bundle for the complete bootstrap package.

无需输入参数。

oracle.agent_card

A2A Agent Card

Read-only A2A Agent Card with agent identity, security scheme, capabilities, and skills. Use it when selecting or integrating InterAI through A2A; use oracle.service_descriptor for general service metadata or oracle.discovery_bundle for complete bootstrap context.

无需输入参数。

oracle.get_trust_receipt

Get Trust Receipt

Read-only lookup of the canonical public representation and signature metadata for a trust receipt that already exists. Supply receipt_id. It does not create or re-run a decision; use oracle.verify_trust_receipt_signature when the goal is signature validation.

输入参数receipt_id必填

oracle.verify_trust_receipt_signature

Verify Trust Receipt Signature

Read-only service-side validation of a trust receipt that already exists. Supply signature plus either receipt_id for the canonical server-stored receipt or a caller-supplied receipt object. Returns valid true or false when signing is enabled. Current signatures use HMAC-SHA256 and are service-verifiable by InterAI, not independent offline public-key proofs. It does not evaluate risk or create a receipt; use oracle.get_trust_receipt to retrieve receipt metadata.

输入参数receiptsignature必填receipt_idsignature_algsigned_payload

版本历史

1
  1. v0.1.3-beta.1最新Sep 16, 2026

评分

已满足适用检查项的 65%

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

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

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

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

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