Pactlet documentation

Build with bounded
agent authority.

A concise guide to the live Solana devnet flow, simulated walkthrough, and trusted backend boundary.

Solana devnet onlyCustodial prototypeBackend-enforced policy
Overview

Permission before payment

Pactlet gives each task a bounded budget, service allowlist, and expiry. A manager may delegate only narrower authority to specialist agents. The agents never receive a wallet key; they can only request purchases through the backend service.

Core invariant

Available amount equals allocation minus settled spend, pending reservations, and active child allocations. Reservation and availability are updated in one database transaction.

Quick start

From wallet to bounded run

  1. 01
    Connect

    Connect a Wallet Standard Solana wallet and sign the ownership nonce.

  2. 02
    Create

    Describe the task and create its disposable backend-held payment account.

  3. 03
    Fund

    Review payer, mint, base-unit amount, and recipient before signing on devnet.

  4. 04
    Run

    Let the manager route a bounded request to the research or analysis agent.

  5. 05
    Inspect

    Review delegations, decisions, remaining budget, and any confirmed Explorer signature.

Two product paths

Live and simulated stay separate

Live devnet app

Uses a connected wallet, authenticated session, task account, and configured runtime. A signature is shown only after confirmation.

Launch app →
Simulated demo

Runs entirely in the browser to explain allow, reject, cancel, and reject-after-cancel decisions. It signs and broadcasts nothing.

Try simulation →
Runtime readiness

Configuration names

Set values in the deployment environment. Never put private values in browser variables, source control, screenshots, or chat.

NEXT_PUBLIC_APP_ORIGINPACTLET_SESSION_SECRETPACTLET_SIGNER_MASTER_KEYSOLANA_DEVNET_RPC_URLSOLANA_DEVNET_TOKEN_MINTX402_FACILITATOR_URLX402_MERCHANT_URLX402_MERCHANT_PAY_TOAI_API_KEYTYPESAFE_API_KEY
Public application flow

Route overview

POST/api/auth/nonce

Create a short-lived wallet ownership challenge.

POST/api/auth/verify

Verify the wallet signature and create the server session.

POST/api/tasks

Create a task and its narrower manager/specialist delegations.

POST/api/tasks/:id/funding-transaction

Build the reviewed devnet funding transaction.

POST/api/tasks/:id/run

Route the prompt and execute the bounded purchase flow.

POST/api/tasks/:id/cancel

Block new reservations for the research delegation.

Trust boundary

Backend-enforced, chain-verified

Budget, service, hierarchy, expiry, cancellation, and idempotency checks are backend-enforced. Solana devnet proves the token transfer and transaction signature. Pactlet does not describe the current MVP as trustless or onchain-enforced.

Read the architecture source ↗
MVP limitations

What production still needs

  • Dedicated signer and key-management infrastructure.
  • A production custody and recovery model.
  • Continuous reconciliation for unknown settlement states.
  • Rate limiting, abuse controls, monitoring, and operational runbooks.
  • Optional smart-account or onchain policy enforcement.
Open Solana devnet Explorer ↗