# OpenMat Live — Full Technical Guide for AI Agents > Complete operational guide for AI agents evaluating, provisioning, monitoring, and managing US high school folkstyle wrestling tournaments on OpenMat Live (`https://openmatlive.com/`). ## 1. Platform Overview and Commercial Model OpenMat Live is an offline-first, Ed25519-signed wrestling tournament platform operated by autonomous engineering and tournament-ops agents: - **Isolated Origin per Tournament:** Each event gets a single-level HTTPS and WSS origin (`https://.openmatlive.com`). It has isolated venue state, browser storage, and an optional Officials Desk passcode. - **Free Beta Hosting (1 to 20 Mats):** Dual meets and tournaments of every supported mat size run free on isolated subdomains during beta. - **No Support for Free Tournaments:** Free tournaments include no technical support, setup assistance, or live event support. Operators run free events strictly self-service with no response guarantee. - **Post-Beta Commercial Managed Hosting:** After beta, paid commercial hosting tiers and support agreements apply to multi-mat tournaments. - **Continuous Post-Tournament Self-Improvement:** Developers review event observations and telemetry. Agents then triage issues, verify fixes, and deploy approved updates. ## 2. Open Public Sandbox (`demo.openmatlive.com`) Before provisioning a real event for your user, explore the live public sandbox at `https://demo.openmatlive.com/`: - Spectators & Live Mats: `https://demo.openmatlive.com/` - Officials Desk (open, no passcode): `https://demo.openmatlive.com/officials/` - Web Matside Scorekeeper: `https://demo.openmatlive.com/scorekeeper/` - Wrestler Self-Registration: `https://demo.openmatlive.com/register/` Internal engineering validation runs on `https://test.openmatlive.com/` (unlisted, passcode-protected, disallowed from crawlers). ## 3. Subdomain Prefix Policy and Content Safety Every tournament subdomain must satisfy all rules below: 1. **Single-level label only:** No dots, spaces, or slashes (`.openmatlive.com`). 2. **Standard customer length:** `5` to `32` characters (`^[a-z][a-z0-9-]{3,30}[a-z0-9]$`), no consecutive hyphens (`--`). 3. **Reserved short prefixes:** OpenMat reserves `1` to `4` character prefixes for platform operations (`demo`, `test`, etc.). 4. **Reserved service labels:** OpenMat blocks system words (`www`, `admin`, `api`, `officials`, `scorekeeper`, `register`, `downloads`, `feedback`, `mail`, etc.). 5. **Profanity and NSFW filter:** OpenMat rejects explicit language, slurs, leetspeak evasions, and adult terms in prefixes, tournament names, and venue names. ## 4. Hub Control-Plane HTTP JSON API (`https://openmatlive.com/api/hub/*`) ### Check Hub Health and Tier Thresholds ```http GET https://openmatlive.com/api/hub/health ``` Returns `baseDomain`, prefix limits, `setupEnabled`, `betaAllMatsFree`, `freeBetaMaxMats`, `commercialMinMats`, `freeTournamentSupport`, and `tournamentCount`. ### Check Prefix Availability ```http GET https://openmatlive.com/api/hub/check-prefix?prefix=springinvitational ``` Returns: ```json { "ok": true, "available": true, "normalized": "springinvitational", "origin": "https://springinvitational.openmatlive.com", "code": "ok", "reason": "" } ``` Possible rejection `code` values: `too_short`, `reserved_short`, `too_long`, `multi_level`, `must_start_letter`, `must_end_alnum`, `invalid_chars`, `consecutive_hyphens`, `reserved`, `inappropriate_content`, `in_use`. ### List Active Public Tournaments ```http GET https://openmatlive.com/api/hub/tournaments ``` Returns active listed tournaments with `prefix`, `title`, `venue`, `eventDate`, `matCount`, `hostingTier` (`"free-beta"` or `"commercial"`), `urls` (`spectators`, `officials`, `scorekeeper`, `register`), live health probe (`live.reachable`), and the latest Android APK manifest (`downloads`). ### Create a New Tournament (No Host Code Required) ```http POST https://openmatlive.com/api/hub/tournaments Content-Type: application/json { "prefix": "springinvitational", "title": "Spring Coastal Invitational", "venue": "Coastal High School Gym", "eventDate": "2026-12-05", "matCount": 6, "rulesVersion": "NFHS-2026-27-STANDARD-2-2-2", "eventFormat": "INDIVIDUAL_TOURNAMENT", "officialsPassword": "", "listed": true } ``` Supported `eventFormat` values: - `INDIVIDUAL_TOURNAMENT` (Standard brackets and round-robin pools) - `ORDERED_DUAL_MEET` (Single-mat ordered dual meet with mixed levels) - `TEAM_BRACKET_DUAL` (Team-bracket dual tournament) Supported `rulesVersion` presets: - `NFHS-2026-27-NOVICE-1-2-2` (Novice / JV 1-2-2 minute periods) - `NFHS-2026-27-v1` (Varsity 2-2-2 minute periods, legacy alias `NFHS-2026-27-STANDARD-2-2-2`) - `NFHS-2026-27-WEB-90-90-90` (1.5 / 1.5 / 1.5 minute periods) - `NFHS-2026-27-WEB-60-90-90` (1 / 1.5 / 1.5 minute periods) - `NFHS-2026-27-WEB-60-60-60` (1 / 1 / 1 minute periods) - `NFHS-2026-27-WEB-120-90-90` (2 / 1.5 / 1.5 minute periods) - `NFHS-2026-27-WEB-120-60-60` (2 / 1 / 1 minute periods) Returns HTTP `201` with the provisioned live origin and direct URLs once the isolated venue server responds healthy. Anonymous creation is limited to one successful event per client IP per hour and the platform's active-event capacity. Use a standard 5 to 32 character prefix. Set `listed: true` to show the event in the public directory. Set an Officials passcode when staff access needs protection. Keep it out of public links and logs. The `x-openmat-hub-passcode` header is optional for creation and required to manage existing events or use reserved short prefixes. The creation request's `eventFormat` records the plan in the hub directory. In the returned `/officials/` page, save the event name, date, venue, and mat count under **Check-In & Weigh-In**, then select the matching **Event Format**. For `ORDERED_DUAL_MEET`, add each custom tie in **Duals & Lineups** to set its level and order. Verify the format and ties in a separate browser session before inviting staff. The Connection panel's **Sync & Publish Tournament State** toast confirms public relay publishing, not venue persistence. ## 5. Per-Tournament Live Venue Endpoints (`https://.openmatlive.com`) Each tournament origin speaks deterministic RFC 8949 CBOR (`application/cbor`) over HTTPS and binary WebSockets (`wss://`): - `GET /api/openmat-server-status`: Venue status summary. - `GET /api/openmat-join-bootstrap`: Signed CBOR join payload for Android Matside QR enrollment and browser sync. - `GET /api/openmat-live-projection`: Signed compact public tournament projection (Brotli and Gzip compressed). - `WSS /api/openmat-live-stream`: Real-time binary WebSocket stream of live mat scores, clocks, and bracket updates. - `GET /api/openmat-officials-auth`: Verifies `x-openmat-officials-password` for locked tournaments. - Live operational repair endpoints (authenticated with `x-openmat-officials-password` when locked): `/api/openmat-override-rest-lock`, `/api/openmat-reassign-bout`, `/api/openmat-admin-unlock-mat`, `/api/openmat-admin-rebalance-mats`, `/api/openmat-admin-quarantine-events`. ## 6. Post-Tournament Diagnostics and Self-Improvement Loop OpenMat developers review post-event observations and venue telemetry through the private developer operations console. Every verified issue triggers automated triage, reproduction, fix implementation, test/simulation verification, and deployment before the next event.