Repository navigation
Diagram Index
Mike Hall edited this page Nov 26, 2026
·
8 revisions
Focused visual references for high-context navigation across the wiki.
Canonical sources:
Audience: developers, reviewers, technical evaluators Applies to version: v1.6.0 Last verified: 2026-11-26 Reconfirm by: 2027-02-24
How the curated wiki diagrams and live auto-generated architecture views connect from high-level context down to runtime execution, persistence, observability, and delivery:
flowchart TB
Index["Diagram-Index (You are here)"]
subgraph AutoGen["Auto-Generated Live Views (phalanxduel.com)"]
C4["Groma C4 Explorer - /library/architecture/"]
Lib["Interactive Docs Library - /library/"]
end
subgraph System["System & Architecture"]
Ctx["System-Context-Diagram - Users, Clients, Server, DB, OTel"]
Cont["Container-Architecture-Diagram - Processes, Docker, Ports"]
end
subgraph Protocol["Gameplay, Protocol & Runtime"]
FSM["State-Machine-Diagram - Engine Phases (Rules v3.0)"]
Boot["Match-Bootstrap-Sequence-Diagram - Create / Join Handshake"]
Run["Runtime-Sequence-Diagram - WS & REST Action + Reconnect Loop"]
Life["Match-Lifecycle-Diagram - MatchActor, TTLs, Ledger"]
API["API-Surface-Diagram - HTTP Routes + /ws Messages"]
end
subgraph DataOps["Data & Observability"]
ERD["Database-ERD - Postgres Schema & Ledger"]
OTel["Telemetry-Pipeline-Diagram - OTel -> Jaeger & OpenObserve"]
end
subgraph Process["Delivery & Governance"]
Intake["Intake-Lifecycle-Diagram - Triage Labels & Backlog"]
Contrib["Contribution-Workflow-Diagram - Gates, Main / PR Delivery"]
end
Index --> AutoGen
Index --> Ctx
Index --> Intake
Ctx --> Cont
Ctx -.-> C4
Cont --> API
Cont --> OTel
Cont --> ERD
API --> Boot
API --> Run
Boot --> Life
Run --> FSM
Run --> Life
Life --> ERD
Run --> OTel
ERD -.-> Lib
API -.-> Lib
Intake --> Contrib
- Interactive Groma C4 Architecture Map - Live drill-down C4 explorer covering systems, containers, and components
- Interactive Documentation & Visual Library - Live SPA featuring For Players (match lifecycle, combat cascade, ways to play, competitive loop), Platform & Investor Overview, Database ERD, System Topology, Package DAG, and Fastify API Directory
-
Audience Diagrams Source (
AUDIENCE_DIAGRAMS.md) - Canonical Mermaid source in the game repository
Every curated wiki diagram carries three machine-checked header fields:
-
Applies to version:- target release tag (must match../game/package.jsonon minor/major bumps) -
Last verified:- ISO date (YYYY-MM-DD) when the diagram was audited against canonical source code -
Reconfirm by:- ISO expiration/reconfirmation date (default +90 days, or immediately on a minor/major release)
Run ./bin/check-diagram-freshness in the wiki repo to audit version drift and upcoming/past reconfirmation dates.
| Diagram | Scope | Applies to | Last Verified | Reconfirm By | Canonical Source(s) |
|---|---|---|---|---|---|
| System-Context-Diagram | Clients, server, DB, OTel | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/app.ts, docs/architecture/c4/context.md
|
| Container-Architecture-Diagram | Runtime containers & ports | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/app.ts, Dockerfile, docker-compose.yml
|
| State-Machine-Diagram | Canonical engine phases |
v1.6.0 (rules v3.0) |
2026-11-26 |
2027-02-24 |
engine/src/state-machine.ts |
| Match-Lifecycle-Diagram | Actor, TTLs, reconnect, ledger | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/match.ts, server/src/match-actor.ts
|
| Match-Bootstrap-Sequence-Diagram | Create/join handshake | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/ws-handler.ts, server/src/routes/matchmaking.ts
|
| Runtime-Sequence-Diagram | WS/REST action & reconnect loop | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/match.ts, engine/src/turns.ts
|
| API-Surface-Diagram | Public REST + /ws routes |
v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/routes/*.ts, server/src/app.ts
|
| Database-ERD | Postgres schema & ledger | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/db/schema.ts |
| Telemetry-Pipeline-Diagram | OTel -> Jaeger & OpenObserve | v1.6.0 |
2026-11-26 |
2027-02-24 |
server/src/instrument.ts, client/src/telemetry.ts
|
| Contribution-Workflow-Diagram | Delivery & local gates | v1.6.0 |
2026-11-26 |
2027-02-24 |
CONTRIBUTING.md, AGENTS.md
|
| Intake-Lifecycle-Diagram | Triage labels & Backlog states | v1.6.0 |
2026-11-26 |
2027-02-24 |
docs/agents/triage-labels.md, backlog/tasks/
|
- What-is-Phalanx
- Quick-Start-Paths
- Diagram-Index
- Technical-Tutorial
- Gameplay-Assurance-and-Combat-Mathematics
- State-Machine-Diagram
- Project-Status
- Production-Release-Updates
- Project-Timeline-and-Continuity
- Roadmap-Now-Next-Later
- Known-Limitations
- Resolved-Limitations
- Interactive C4 Map
- Visual Library SPA
- System-Context-Diagram
- Container-Architecture-Diagram
- State-Machine-Diagram
- Match-Lifecycle-Diagram
- Match-Bootstrap-Sequence-Diagram
- Runtime-Sequence-Diagram
- API-Surface-Diagram
- Database-ERD
- Telemetry-Pipeline-Diagram
- Contribution-Workflow-Diagram
- Intake-Lifecycle-Diagram