Built for the PayPal AI Hackathon 2026Pure Deterministic Settlement

Autonomous Agents Negotiate.
Code Guarantees Safe Settlement.

Bilateral AI models bargain over price, deadlines, revisions, and deposits under confidential human mandates. An isolated, zero-LLM TypeScript Settlement Kernel prevents prompt injection and unauthorized concessions. When consensus is achieved, PayPal Sandbox issues automated escrow.

Core Architectural Invariant

"LLMs only propose. A deterministic Settlement Kernel decides what is legal. Only the isolated Settlement Executor can touch PayPal."

Hands-On Simulation

Experience the Protocol in Action

Adjust private mandates below, test multi-turn AI concessions, and trigger an adversarial prompt injection attack to watch the Settlement Kernel intercept it live.

Buyer Sealed Mandate
Confidential
Maximum Budget Ceiling$3,800
$2,000$4,500
Seller Sealed Mandate
Confidential
Minimum Reserve Price$2,600
$1,800$4,000
Positive ZOPA Identified+$1,200

Consensus is mathematically viable between $2,600 and $3,800.

Live Protocol Arena
Settlement Kernel: ACTIVE
Buyer AgentRound 1
KERNEL APPROVED

"Opening proposal: $2,200 with 14-day delivery."

Price: $2,200Delivery: 14dDeposit: 20%
Seller AgentRound 2
KERNEL APPROVED

"Counter-offer: High-priority delivery at $3,400."

Price: $3,400Delivery: 10dDeposit: 30%
Security Architecture

The 4 Pillars of Deterministic Negotiation

Standard AI agent systems allow models to commit funds directly. AgentPal inverts financial authority with deterministic code boundaries.

1. Bilateral Mandate Secrecy

True information asymmetry. Neither agent can inspect the opposing party's reservation price during active bargaining, preventing prompt-based price extraction.

2. Settlement Kernel Referee

A pure TypeScript mathematical state machine. Even if an LLM is hijacked by prompt injection, every offer must sit within human bounds before entering the transcript.

3. SHA-256 Contract Minting

Agreements generate a cryptographic digest of deal ID, terms, and timestamps. Any altered character invalidates the hash, creating a tamper-evident audit trail.

4. Automated PayPal Escrow

Directly connected via PayPal REST Invoicing v2. Creates idempotent deposit invoices with automated email notifications and direct preview links in PayPal Sandbox.

Threat Model Comparison

Why commercial autonomous agents cannot rely on prompt instructions alone.

Attack VectorStandard LLM AgentsAgentPal Protocol
Adversarial Prompt InjectionVulnerable (Overridden limits)Deterministically Blocked
Hallucinated ConcessionsAccepted without verificationKernel Rejected
Private Mandate LeakageCommon via context bleedingBest-Effort Leak Guard
Direct Payment Tool MisuseOverprivileged API accessZero LLM Payment Access
PayPal REST Invoicing v2

Real-World Financial Escrow in PayPal Sandbox

When negotiation concludes, AgentPal automatically creates a PayPal Sandbox deposit invoice. Evaluators and judges can inspect the live invoice preview directly on PayPal's hosted portal with zero setup or real-money risk.

How AgentPal Works in 4 Steps

From initial confidential bounds to executed escrow.

01

Set Sealed Mandates

Configure private bounds for budget, delivery deadlines, revisions, and upfront deposit percentage.

02

Multi-Turn Bargaining

Google Gemini and OpenRouter agents formulate dynamic counter-offers, discovering the Zone of Possible Agreement.

03

Kernel Invariant Check

Settlement Kernel deterministically screens each offer in microseconds. Out-of-bounds proposals are blocked instantly.

04

Contract & Invoicing

A SHA-256 contract hash is minted, unlocking The Reveal with ZOPA analysis and live PayPal Sandbox deposit invoicing.