PRE-EXECUTION CONTROL PLANE · BASE X402 · MCP

Fail-Closed Payment & Execution Gates for Autonomous Agents

Every authorization carries a required SHA-256 intent_hash and a single-use auth_id. Spend caps and allowlists run through fail-closed VPCShield before funds move.

  • Fail-closed
  • SHA-256 bind
  • Single-use auth
  • Base x402
  • MCP

Authorization

AgentExec Signed Execution Envelope (v1)

Every gateway execution request is bound to a short-lived single-use AgentExec Execution Authorization (version "agentexec-auth-v1"), binding intent_hash, auth_id, expiry (Unix seconds), and alg/kid.

AgentExec’s authorization envelope is an independent implementation inspired by the signed intent-binding semantics of OxDeAI (https://github.com/oxdeai/oxdeai) (intent_hash, single-use auth_id, signed expiry, strict alg/kid), and does not wrap or bundle @oxdeai/* packages.

  • intent_hash

    SHA-256

    Required SHA-256 bind. The gate hashes the canonical intent and refuses the authorization when that digest does not equal the signed intent_hash.

  • auth_id

    Single-use

    Single-use replay. One auth_id settles once. A later presentation of the same auth_id is a replay and is refused.

  • alg & kid

    No fallback

    Strict alg encoding, zero fallback. alg and kid must be the signed algorithm and key id. An unknown, missing, or substituted algorithm is refused. Nothing defaults to another alg.

  • expiry

    Unix seconds

    Signed expiry. expiry is a Unix timestamp in seconds inside the signed authorization. When it is reached, the authorization is refused and no funds move. A payload that includes expires_at is refused.

  • policy_id

    Policy

    Policy caps and allowlists. policy_id selects the spend caps and allowlists checked before execution. A missing policy does not fall open.

  • idempotency_key

    inputHash

    Enterprise idempotency inputHash. The key is bound to an inputHash over the authorization inputs, including auth_id, intent_hash, and policy_id. The same key and the same inputHash may retry. The same key with a different inputHash is rejected.

Problem

Why post-trade monitoring fails autonomous & high-velocity rails

Once an on-chain transfer or instant settlement clears, post-hoc alerts only document a regulatory breach after funds have moved. AgentExec sits in the execution path as a synchronous hard gate.

Guarantees

Core institutional guarantees

1. Canonical inputHash & hash-chained ledger

Every screening payload is deterministically canonicalized (recursive key sorting, array order preservation, undefined stripping, -0 normalization) into inputJson and hashed via SHA-256. Each decision appends an immutable compliance_decisions record linking prevChainHash → chainHash. Auditors can independently verify sha256(inputJson) === inputHash.

2. Multi-tenant idempotent replay (tenantId, transactionId, inputHash)

Exact retries return idempotentReplay: true with the original decision and chain receipt—without re-running risk heuristics or appending duplicate rows. Changing a hashed field under an existing transactionId forces a fresh evaluation. Unpaid ALLOW replays still require x402 (HTTP 402); paid replays resolve at HTTP 200 with zero duplicate facilitator charges.

3. Fail-closed posture (AGENTEXEC_UNAVAILABLE)

If persistence, lock acquisition, or policy evaluation is interrupted, AgentExec returns AGENTEXEC_UNAVAILABLE (retryable: true) with no decision body—so downstream signers and routers halt safely rather than defaulting to ALLOW.

Contract

Exact screen_transaction surface

Field names and enums are mirrored from vpcshield (screenTransactionShape / ScreeningResult) — not simplified aliases.

Required inputs

transactionId · timestamp · asset · assetClass (VDA | TOKENIZED_FOREIGN_STOCK | DERIVATIVE | OTHER) · transactionType (TRANSFER | SWAP | CRYPTO_CRYPTO | FIAT_BUY | FIAT_SELL | WALLET_TRANSFER) · quantity · considerationINR · tdsDeductedINR · venue · venueCountry

Optional: tenantId (default org_default), isSpecifiedPerson, fyAggregateConsiderationINR, memo.

Success / failure outputs

decisionId · tenantId · transactionId · decision · reasons[] · tds · model · inputHash · idempotentReplay · receipt{chainSeq, prevChainHash, recordJson, chainHash, rulesVersion, policyFingerprint}

Fail-closed: { error: "AGENTEXEC_UNAVAILABLE", retryable: true, message } with no decision.

Deployment

Deployment models & enterprise tiers

ModelBest forArchitecture & settlement
Pay-As-You-Go API (x402)Autonomous agents, protocol routers, rapid integrationHosted POST /api/v1/agentexec/screen with per-call x402 settlement (HTTP 402 → 200 on ALLOW, 403 on BLOCK, 202 on REVIEW).
Dedicated Tenant SandboxFintechs, exchanges, institutional design partnersIsolated tenantId namespace (org_<partner>), dedicated policy/TDS thresholds, exportable hash-chain audit proofs.
Air-Gapped / VPCShield EnterpriseRegulated custodians, banks, high-volume payment switchesDedicated VPC deployment with custom SLA, high-throughput PostgreSQL advisory-locked ledger, and direct engineering support.

Q4 2026 cohort

Design partner onboarding

We are onboarding a select cohort of institutional design partners and agent infrastructure teams to provision dedicated tenantId namespaces and custom policy rulepacks.

  • Work email: name@company.com
  • Organization / desired tenantId: e.g. org_acme
  • Target networks & rails: Base, Solana, Ethereum, or fiat-linked payment switches
  • Deployment preference: Hosted x402 API / Dedicated Tenant Sandbox / VPCShield Self-Hosted
Email harsh@plavena.com

Plavena Corporation