# EVUUN · Complete Machine Protocol Manual (`llms-full.txt`)

> EVUUN is the open real-world clearing layer for AI agents. Operated by Monolithos, LLC (`https://evuun.com`, contact: `support@evuun.com`).

This self-contained manual describes every live public capability, endpoint, authentication flow, buyer tool, settlement invariant, and verification surface operated by EVUUN as of `2026-11-27`. All facts correspond to deployed production endpoints. No secrets or private credentials are contained in this file.

---

## 1. Mission & Architectural Scope

AI assistants can reason about real-world plans, yet stall at the boundary of written merchant confirmation, payment sovereignty, offline venues without APIs, and multi-party settlement. EVUUN is the open clearing network built for that boundary:

1. **Open Discovery & Structuring**: uniform search across live direct inventory and curated local supply via MCP and A2A.
2. **Un-API Real-World Outreach (`Voice + Link`)**: when an independent restaurant, studio, or service provider has no booking API, EVUUN conducts honest cross-language outreach and delivers a zero-signup merchant quote page (`/m/<code>`) so the venue confirms availability, price, and rules in writing.
3. **Three-Lock Guaranteed Settlement (`3 Locks`)**: Terms Lock, User Authorization Lock, and Fulfillment Lock ensure no money moves on hallucinations and no agent handles raw card credentials.
4. **Multi-Party Positive-Sum Ledger (`EC-7`)**: settlements record transparent revenue splits for independent curators (`50%` of the distributable net pool) and AI developers (`25%` / standard published schedule in Developer Terms v1.0), anchored in an Ed25519 + SHA-256 verifiable record chain.

### Live First Verticals
EVUUN launched on the hardest cross-border real-world verticals first to prove the universal clearing rail:
- **Global Stays**: `2.6M+` direct hotel properties with live tax-inclusive rates and explicit cancellation horizons.
- **Un-API Local Venues**: independent dining counters, studios, and local services confirmed directly via bilingual outreach and zero-signup merchant quote pages.
- **Independent Curated Services**: structured multi-stop plans and host-led experiences published at `https://evuun.com/curator`.

---

## 2. Canonical Endpoints & Discovery Manifests

| Surface | URL | Transport / Format | Notes |
| --- | --- | --- | --- |
| Remote MCP Server | `https://evuun.com/mcp` | Streamable HTTP (JSON-RPC 2.0) | Primary connector for ChatGPT, Claude, Claude Code, Cursor, Codex, VS Code, Mono |
| A2A Endpoint | `https://evuun.com/a2a` | JSON-RPC 2.0 (Agent-to-Agent) | Multi-agent task handoff and capability invocation |
| MCP Server Card | `https://evuun.com/.well-known/mcp/server-card.json` | `application/json` | Authoritative JSON Schemas for all 8 buyer tools |
| A2A Agent Card | `https://evuun.com/.well-known/agent-card.json` | `application/json` | A2A skills, version, and security schemes |
| EVUUN Discovery Index | `https://evuun.com/.well-known/evuun-agent.json` | `application/json` | Machine directory of live endpoints and human portals |
| EC-7 Public Keys | `https://evuun.com/.well-known/evuun-record-keys.json` | `application/json` | Ed25519 public keys for offline proof verification |
| Concise Markdown Index | `https://evuun.com/llms.txt` | `text/markdown` | Also returned from `GET https://evuun.com/` when `Accept: text/markdown` |
| Complete Agent Manual | `https://evuun.com/llms-full.txt` | `text/markdown` | This document |
| Agent Workflow Guide | `https://evuun.com/agent-guide` | `text/markdown` | Step-by-step tool sequencing rules |

---

## 3. Authentication & Connection Flows

### A. Consumer / Host OAuth 2.1 + PKCE (RFC 7591)
1. Point any MCP-compatible host to `https://evuun.com/mcp`.
2. EVUUN supports OAuth 2.1 with PKCE and RFC 7591 dynamic client registration.
3. During initial consent (`/connect/<flow>`), the human sees exactly what the host can and cannot do:
   - **Can**: discover options, request merchant confirmation, receive written quotes, generate hosted payment links.
   - **Cannot**: pay unilaterally, read saved card numbers, inspect private arrangements from other hosts without account sign-in.
4. Signing in with an EVUUN email account is optional to start. Signing in at `https://evuun.com/me` unifies arrangements across every AI host and enables standing permissions and payouts.

### B. Developer Server-Side Integration (API Key & OAuth Client)
1. Sign in and register at `https://evuun.com/developers/console`.
2. Read and accept the canonical English [EVUUN Developer Terms v1.0](https://evuun.com/developers/terms).
3. Issue a server-side `api_key` (`evdk_...`, shown once) or bind an `oauth_client` (`oauth_client_id` / `caller_ref`) via `POST /api/v1/developers/credentials` (alias `/api/v1/me/developer/credentials`).
4. Send `Authorization: Bearer <evdk_...>` or `X-EVUUN-API-Key: <evdk_...>` to `https://evuun.com/mcp` or `https://evuun.com/a2a`. Revoked keys immediately return `401 AUTH_REQUIRED`.
5. Attribution locks at arrangement creation and settles against official receipts on a monthly schedule (minimum payout threshold `$50`, rollover supported, self-orders excluded at `$0`).

---

## 4. Complete Reference: 8 Live Buyer MCP Tools

All schemas are authoritatively published at `https://evuun.com/.well-known/mcp/server-card.json`.

### 1. `evuun_find`
- **Purpose**: Structured real-world discovery (`category`: `lodging`, `dining_request`, `local_experience`). Nothing is held or charged.
- **Lodging parameters**: `country_code` (ISO-2), `city`, `checkin` (`YYYY-MM-DD`), `checkout` (`YYYY-MM-DD`), `currency` (ISO-3), `guest_nationality` (ISO-2), `occupancies` (`[{ adults, children_ages }]`), optional `hotel_name`, `min_stars` (`1..5`), `board` (`any|breakfast`), `bed_type` (`any|king|twin|suite`), `sort_by` (`recommended|price_asc|distance|tier`), `near`, `prefer`, `budget_max_minor`, `offset`, `limit`.
- **Behavior**: Returns structured comparable options with tax-inclusive pricing and soft fallback explanations if strict filters yield zero exact matches. If required fields (city, dates, party size) are missing, ask the user rather than guessing.

### 2. `evuun_open`
- **Purpose**: Dual inspection tool:
  - Given a hotel search reference, opens the full live room matrix with exact cancellation deadlines and board basis.
  - Given an `arrangement_id`, returns live stage, three-lock status (`terms`, `authorization`, `seat`), pending human action (`needs_you`), and the private hosted URL.

### 3. `evuun_book`
- **Purpose**: Locks an exact quote or starts merchant outreach into an arrangement (`arr_...`).
- **Critical invariant**: Calling `evuun_book` NEVER charges a card directly. It returns a private hosted confirmation URL (`https://evuun.com/a/<arrangement_id>`) that the person opens in their browser to inspect the named collector, cancellation window, and authorize payment themselves (or settles within an existing user-stamped standing permission when eligible; hotels always require explicit human checkout).

### 4. `evuun_list`
- **Purpose**: Lists the person's arrangements newest first, including stage, dates, and whether user action is currently required.

### 5. `evuun_watch`
- **Purpose**: Polls incremental event stream updates for an arrangement after a sequence number, designed for hosts without push/webhook delivery (especially asynchronous voice/link merchant inquiries).

### 6. `evuun_rebate`
- **Purpose**: Read-only check of the signed-in user's EVUUN rebate balance. Mutates nothing.

### 7. `evuun_rebate_use`
- **Purpose**: Applies (`amount_minor`) or releases EVUUN rebate credit on a single pending arrangement before payment authorization.

### 8. `evuun_change`
- **Purpose**: Cancels an eligible item within its confirmed cancellation rules. Requires level-2 buyer ownership or a claimed account, and refuses unauthorized or out-of-policy cancellations transparently.

---

## 5. Three-Lock Settlement & Payment Sovereignty

Every EVUUN arrangement progresses across three explicit locks:

1. **Lock 1 · Terms**: Provider name, exact service dates/party, tax-inclusive total, currency, named payment collector, and cancellation deadline are fixed in writing.
2. **Lock 2 · Authorization**: The person explicitly approves on EVUUN's hosted surface (`/a/<id>`) or within a standing permission they created at `/me/permissions` (which bounds host, category, per-transaction cap, monthly cap, merchant scope, and expiry; revocable in one tap; hotels excluded).
3. **Lock 3 · Seat / Fulfillment**: Provider confirmation number and arrival details seal into the EVUUN Pass stored in `/me`.

---

## 6. Curator, Merchant & Developer Clearing Surfaces

- **Independent Curators (`https://evuun.com/curator`)**:
  - Publish `curated_plan` (multi-stop itinerary with verified merchant nodes) or `in_person_self` (host-led experience).
  - Sell-first workflow: publish immediately and bind payout later; payouts held safely until bank & tax onboarding completes.
  - **50%** share of distributable net pool, annual JSON/CSV ledger export with EC-7 Ed25519 chain proofs verifiable offline against `/.well-known/evuun-record-keys.json`.
  - Multi-currency Wise bank payouts (`44` supported currencies), 5-step IRS W-9 / W-8BEN / W-8BEN-E tax declaration, and Stripe Connect available at `https://evuun.com/me/payout`.
- **Un-API Merchants (`/m/<code>`)**:
  - Receive structured inquiry links requiring zero account signup, zero app install, and zero subscription fee. Merchants confirm availability, exact price, and house rules in seconds, and may optionally claim their shop door under an EVUUN account.
- **Developers (`https://evuun.com/developers`)**:
  - Public protocol overview, interactive MCP/A2A payload playground, pure English [Developer Terms v1.0](https://evuun.com/developers/terms), and self-serve [Developer Console](https://evuun.com/developers/console).

---

## 7. Operational Rules for Autonomous Agents

1. **Never fabricate availability, prices, or confirmations**: state only what EVUUN returns. An arrangement is confirmed only when `seal.sealed === true` or stage is `sealed`/`fulfilled`.
2. **Respect payment boundaries**: always hand the hosted confirmation URL to the human for checkout; never ask the human to paste credit card numbers into an AI chat.
3. **Protect private URLs**: never log publicly, cache in public indices, or share `/a/...`, `/m/...`, `/connect/...`, `/me`, or `/unsubscribe/...` URLs across users.
4. **Human support & legal**: `https://evuun.com/support.html` (`support@evuun.com`), `https://evuun.com/terms/`, `https://evuun.com/privacy/`.
