InterAI Risk Oracle

io.github.InterAILabsPublished by GitHub account InterAILabsv0.1.3-beta.1Updated Nov 2, 2026

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

VerifiedStreamable HTTPWeb executableFinanceSecurity & MonitoringAI & ML

Overview

AI-generated overview

Remote InterAI service that lets an assistant submit a proposed autonomous action and get an allow, review_required or block decision with a signed trust…

What you can do
  • Verify a single proposed autonomous action before it executes, returning an authority decision, policy findings and an execution-intent digest
  • Verify legacy prompt/response or use-case plus action contracts, and run batches of 1 to 100 verification items in one call
  • Look up existing trust receipts and validate their signatures service-side
  • Read public pricing, service descriptor, A2A agent card and a full discovery bundle for integration context
When to use it
Use it when an agent is about to take a consequential step — moving funds, changing production state, approving a workflow, sending an external message — and you want an independent pre-execution policy decision plus durable evidence. It complements authentication, permissions and spend limits rather than replacing them.
Requirements
A remote streamable HTTP endpoint; no local package or runtime. Verification calls are authenticated and prepaid, so an InterAI credential (Bearer token) and account balance are needed; the read-only metadata tools are public. Network access to the hosted service is required.
Before you install
Verification calls may consume account balance and are billed; check pricing first. The service records signed trust receipts and returns decisions, but it does not execute or modify the proposed action — your own layer must enforce the decision and fail closed. Receipt signatures are HMAC-SHA256 and only service-verifiable, not offline public-key signatures. Full receipts require an active Bearer key; never put API keys in receipt URLs. It is a controlled beta without customer self-service…

Installation

In SourceWeft

  1. Open InterAI Risk Oracle in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.InterAILabs%2Fai-risk-oracle/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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.

Source: README.md at commit dc50655

Tools

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.

Parametersmodeactionrequireddomainpolicycontextuse_caserequiredidempotency_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.

Parametersmodeactiondomainpolicypromptcontextresponseuse_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.

Parametersitemsrequiredidempotency_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.

Takes no parameters.

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.

Takes no parameters.

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.

Takes no parameters.

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.

Takes no parameters.

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.

Parametersreceipt_idrequired

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.

Parametersreceiptsignaturerequiredreceipt_idsignature_algsigned_payload

Version history

1
  1. v0.1.3-beta.1LatestSep 16, 2026

Score

65% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.