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 分

    請在儲存庫或註冊中心條目中宣告授權條款。