Authoritative Fastify Routes & Endpoints (21 total)
| Method | Endpoint | Subsystem / Tag | Authority Scope |
|---|---|---|---|
| GET | /health | System | Authoritative Node.js (Port 3001) |
| GET | /ready | System | Authoritative Node.js (Port 3001) |
| GET | /docs | Documentation | Authoritative Node.js (Port 3001) |
| GET | /api/matches/lobby | Matchmaking | Authoritative Node.js (Port 3001) |
| POST | /api/matches/:id/join | Matchmaking | Authoritative Node.js (Port 3001) |
| POST | /api/matches/:id/action | Gameplay | Authoritative Node.js (Port 3001) |
| GET | /api/matches/:id/state | Gameplay | Authoritative Node.js (Port 3001) |
| GET | /api/matches/:id/verify | Assurance | Authoritative Node.js (Port 3001) |
| GET | /api/matches/history | Gameplay | Authoritative Node.js (Port 3001) |
| GET | /api/stats | Leaderboard | Authoritative Node.js (Port 3001) |
| GET | /api/stats/:userId/history | Leaderboard | Authoritative Node.js (Port 3001) |
| GET | /api/spectator/matches | Spectator | Authoritative Node.js (Port 3001) |
| GET | /api/spectator/matches/:id/stream | Spectator | Authoritative Node.js (Port 3001) |
| WS | /ws | Realtime | Authoritative Node.js (Port 3001) |
| GET | /api/store/products | Economy | Authoritative Node.js (Port 3001) |
| POST | /api/store/create-checkout-session | Economy | Authoritative Node.js (Port 3001) |
| POST | /api/store/verify-purchase | Economy | Authoritative Node.js (Port 3001) |
| GET | /api/store/inventory | Economy | Authoritative Node.js (Port 3001) |
| GET | /api/store/loadout | Economy | Authoritative Node.js (Port 3001) |
| POST | /api/store/equip | Economy | Authoritative Node.js (Port 3001) |
| POST | /api/store/stripe-webhook | Economy | Authoritative Node.js (Port 3001) |
Live Tournament & Demonstration Domains & Ports Accessibility Matrix
| Service Target | Port | DNS Status | Host LAN Bind | Live Probe | Tournament Verdict | Action |
|---|---|---|---|---|---|---|
| Game Client (TLS) | :443 | MATCH | * (LAN) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Game Client (HTTP) | :80 | MATCH | * (LAN) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Game Server (Direct) | :3001 | MATCH | * (LAN) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Demo Presentation | :443 | MATCH | * (LAN) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Demo Cockpit Bridge | :3333 | MATCH | 127.0.0.1 (Loc) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Admin Console | :443 | MATCH | * (LAN) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Vite Dev Server | :5173 | MATCH | 127.0.0.1 (Loc) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| PostgreSQL Database | :5432 | MATCH | 127.0.0.1 (Loc) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| OTel Collector | :4318 | MATCH | 127.0.0.1 (Loc) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| OpenObserve (o2) | :5080 | MATCH | 127.0.0.1 (Loc) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
| Jaeger UI | :16686 | MATCH | 127.0.0.1 (Loc) | 200 OK (2.1ms) | READY | Ready for tournament duelists. |
โ๏ธ 1. Column Cascade & Suit Boundary Map
15-Second Rules Visual
Front Attacker
โฃ / โ amplify offense
โ
โฃ / โ amplify offense
Opposing Front Card
Absorbs first
โ โฆ โ
Absorbs first
Opposing Back Card
โฆ Diamond boundary absorbs spillover
โ โฅ โ
โฆ Diamond boundary absorbs spillover
Opponent Life Points
โฅ Heart boundary cushions ยท 0 LP = Win
โฅ Heart boundary cushions ยท 0 LP = Win
In Classic mode, surviving cards reset to full health between turns; in Cumulative mode, chip damage persists.
๐ช 2. Player Skill Ladder & Mode Journey
8 Bot Tiers + Ranked PvP
1. Guest Quick Start
Zero-friction browser play
Zero-friction browser play
2. Scout โ Grunt
Random โ Heuristic training
Random โ Heuristic training
3. Soldier (MCTS 100)
Plans 1โ2 turns ahead
Plans 1โ2 turns ahead
4. Specialist Bots
Veteran ยท Destroyer ยท Sentinel ยท Blitz
Veteran ยท Destroyer ยท Sentinel ยท Blitz
5. Champion (MCTS 1000)
Tournament-grade apex AI
Tournament-grade apex AI
6. Ranked PvP & LAN
4 Elo ladders ยท Spectator casting
4 Elo ladders ยท Spectator casting
๐ 3. Player-Friendly 5-Step Turn Loop
Source: docs/system/AUDIENCE_DIAGRAMS.md
1. Deploy (Hand โ 2ร4 Grid) โ
2. Attack or Pass โ
3. Column Cascade โ
4. Reinforce & Draw โ
5. Victory Check (0 LP / Forfeit / Pass Limit)
EXHAUSTIVE COMBAT PROOFS
2,355,388
+ 71 rule evidence checks
ENGINE P99 LATENCY
0.225 ms
6,259 actions/s in-process
CLIENT SURFACES
4 + LAN
Web ยท Go CLI ยท MCP ยท Offline LAN
TUTORIAL PIPELINE
22 Episodes
10 Shorts 9:16 ยท 12 Long 16:9
SECURITY & BOUNDARIES
0 / 0
0 HIGH/CRIT CVEs ยท 0 dep violations
๐๏ธ Platform Moat: One Engine โ Many SurfacesLow COGS
Pure deterministic TypeScript engine powers React Web, Go duel-cli, MCP AI agents, and zero-cloud-cost LAN tournament hosting from one OpenAPI/AsyncAPI contract.
@phalanxduel/engine (0.225ms p99)
โโโถ Web Client (play.phalanxduel.com)
โโโถ Go duel-cli (REST + WS ACK replay)
โโโถ MCP Server & Autonomous Bots
โโโถ Offline-Capable LAN Tournament Host
โโโถ Web Client (play.phalanxduel.com)
โโโถ Go duel-cli (REST + WS ACK replay)
โโโถ MCP Server & Autonomous Bots
โโโถ Offline-Capable LAN Tournament Host
๐ Provable Fair-Play & Esports Trust ChainTournament Ready
Server-authoritative transitions, hidden-hand redaction, spectator delay, and canonical SHA-256 per-turn hash chains make every match publicly auditable.
Action โ MatchActor (Authoritative)
โโโถ Redacted Projection โ Spectator Delay
โโโถ SHA-256 Hash Chain โ GET /api/matches/:id/verify
โโโถ Redacted Projection โ Spectator Delay
โโโถ SHA-256 Hash Chain โ GET /api/matches/:id/verify
๐ Acquisition, Retention & Monetization FlywheelNon-P2W
Automated content distribution feeds frictionless guest play, deep competitive retention, and ethical cosmetic/venue monetization.
Acquire: 22 YouTube Tutorials + Battle Calculator + LAN QR
Retain: 4 Elo Ladders + 19 Rarity Achievements + Dual Loop
Revenue: Cosmetic Cardbacks + Supporter Pass (Stripe) + Venue Kits
Retain: 4 Elo Ladders + 19 Rarity Achievements + Dual Loop
Revenue: Cosmetic Cardbacks + Supporter Pass (Stripe) + Venue Kits
๐ก๏ธ Assurance Pyramid & Automated Content EngineDue Diligence
Production discipline verified continuously in CI plus automated Playwright + Zoe TTS + media-pipeline video generation.
Proofs: 2.35M Combat Oracle ยท fast-check ยท Stryker Mutation
Maps: Groma C4 ยท Graphify (12.7k nodes) ยท OTel + Jaeger
Media: Playwright โ FFmpeg EBU R128 โ media-pipeline staged/
Maps: Groma C4 ยท Graphify (12.7k nodes) ยท OTel + Jaeger
Media: Playwright โ FFmpeg EBU R128 โ media-pipeline staged/