
PAI
AI-native agreements that structure, fuzz, accept, fund, and settle through conversation.
Demo
About
PAI is programmable agreement infrastructure for digital work. A user can describe an agreement in natural language, and PAI converts it into a structured Agreement Object, checks the terms for ambiguity and execution risk, asks for clarification when needed, and creates a canonical agreement with an immutable version and cryptographic hash. Each party independently reviews and accepts the exact same agreement before binding their wallet. PAI Core then manages the agreement lifecycle from DEFINE → ACCEPT → FUND → DELIVER → SETTLE, with an exception path for disputes and resolution. The architecture is designed to remain chain-independent: intelligence, agreement logic, acceptance and dispute workflows live in PAI Core, while settlement is handled through execution adapters. In the ETHOnline build, we demonstrate the full canonical agreement flow through READY_TO_FUND, an Arc Testnet settlement adapter, and indexed settlement history through The Graph.
How it's made
PAI is built as a modular TypeScript/Solidity system. The backend uses Node.js, TypeScript, Prisma and PostgreSQL, while the frontend uses React and Vite. Agreement intelligence runs through a local Qwen3 model, but the model is not trusted as the final authority: its structured extraction is followed by a deterministic Agreement Check that independently detects issues such as ambiguous currency, missing settlement assets and subjective acceptance criteria. After clarification, PAI persists a canonical agreement, creates immutable revision 1, computes a server-side SHA-256 agreement hash, and requires the CLIENT and CONTRACTOR to accept the same agreementId + agreementVersion + agreementHash tuple. Wallet ownership is then bound through the PAI Core lifecycle, progressing the agreement to READY_TO_FUND only after both parties have accepted and bound wallets. The blockchain execution layer is separated behind adapters. For ETHOnline we built an Arc Testnet settlement adapter for USDC approval and AgreementEscrow funding/settlement transactions. Arc settlement events are indexed with The Graph into Agreement, Milestone and SettlementEvent entities, giving PAI a verifiable read model for funding and settlement history. The demo includes live Arc transaction proof and a live Graph query showing a completed agreement, released milestone and indexed transaction history. Telegram is used as a lightweight agreement interface so users can create, clarify and accept agreements without starting from a traditional dApp UI. The main architectural goal was to keep PAI Core chain-independent so future Stellar, Solana and other execution adapters can reuse the same agreement lifecycle instead of rebuilding the product for every chain.