← Back to Systems CatalogProprietary Architecture

Wetaego

Polymorphic Multi-Vertical Commerce OS, W3C WebMCP Agent Runtime & Driverless Hardware POS

https://wetaego.com
Production
Wetaego Production Interface
6 Polymorphic
Vertical Engines
SELECT FOR UPDATE
Concurrency Lock
8 WebMCP Tools
Agent Client Tools
Zero-Daemon Driverless
Thermal Print Mode

Executive Architectural Overview

Polymorphic commerce operating system serving 6 enterprise verticals (Dining, Hospitality, Boutique Retail, Wellness, Trades, and Creative Studios) under a single high-assurance PostgreSQL schema. Features autonomous browser checkout via W3C WebMCP, Gemini Live multimodal voice/vision scanning, driverless ESC/POS printing over WebUSB/WebSerial, and RFC 9727 machine discovery.

Core Architectural Accomplishments

Engineered polymorphic multi-tenant PostgreSQL architecture with strict RLS isolation, atomic decrement RPCs, and SELECT FOR UPDATE row-locking preventing concurrency collisions.
Implemented the W3C WebMCP specification at platform level, dynamically registering 8 canonical tools on document.modelContext with mandatory human-in-the-loop payment gates.
Published 14 open machine-discovery standards (RFC 9727, RFC 8288, Coinbase x402, Machine Payment Protocol) enabling autonomous agents to settle invoices via HTTP 402.
Built Tego: real-time voice and vision co-pilot via Gemini Multimodal Live API over 16kHz/24kHz bidirectional WebSockets with driverless zero-daemon ESC/POS thermal printing over WebUSB and WebSerial.

Deterministic Guarantees

Concurrency Model
Row-level locks (SELECT FOR UPDATE), atomic inventory decrements, and idempotent payment webhooks.
AI & Protocol Layer
W3C WebMCP (8 client tools), RFC 9727 discovery, Gemini Multimodal Live API (PCM audio + 1 FPS video).
Database & Infrastructure
PostgreSQL 16 with RLS tenant isolation, Supabase Realtime, Upstash Redis caching, Serwist PWA.
SUBSYSTEMS • ARCHITECTURAL MODULES

Integrated System Components

MODULE 01

Polymorphic Multi-Tenant Architecture

Serves 6 distinct industries under one PostgreSQL database schema with strict RLS tenant isolation, polymorphic table joins, and custom schema triggers.

MODULE 02

W3C WebMCP Autonomous Agent Layer

Registers 8 canonical client tools (search_catalog, add_to_cart, initiate_checkout, submit_order) on document.modelContext for autonomous browser agents with a mandatory Human-in-the-Loop payment gate.

MODULE 03

Tego Voice & Vision Copilot

Gemini Multimodal Live API running over raw PCM WebSockets (16kHz in, 24kHz out) with adaptive vertical personas, barge-in support, and 1 FPS camera video stream for physical menu scanning.

MODULE 04

Driverless Hardware Peripheral Engine

Zero-daemon ESC/POS thermal receipt printing and automated cash drawer kicks executing directly from the browser over WebUSB, WebSerial (RS232 COM), and WebBluetooth.

MODULE 05

Machine Discovery & Multi-Rail Settle

Enables autonomous AI bot purchases via HTTP 402 paywalls, x402 protocols, Paystack checkout, and a Bearer-authenticated Staff MCP Server (/api/mcp) for fleet management.

PRODUCTION STACK • VERIFIED

Technology Architecture Matrix

Frontend & Runtime
  • Next.js 16 (React 19)
  • Tailwind CSS v4
  • Serwist PWA (Offline-First)
  • HTML5 Canvas
  • Zustand + IndexedDB Sync
DB & Concurrency
  • PostgreSQL 16
  • Supabase Realtime
  • Row-Level Security (RLS)
  • SELECT FOR UPDATE Locks
  • 20+ PL/pgSQL Atomic RPCs
  • Upstash Redis
AI & Realtime
  • W3C WebMCP (document.modelContext)
  • Gemini Multimodal Live API
  • 16kHz/24kHz Bidirectional WebSockets
  • Vercel AI SDK
  • 1 FPS Camera Vision Pipeline
Payments & Protocols
  • RFC 9727 & RFC 8288 Discovery
  • Coinbase x402 Micropayments
  • Machine Payment Protocol (MPP)
  • Paystack Cards & Transfers
  • Bachs USDC/USDT/SOL
  • WebUSB / WebSerial ESC/POS Driverless