Skip to content

Diagram Index

Mike Hall edited this page Nov 26, 2026 · 8 revisions

Diagram Index

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

Meta-Diagram (Map of Diagrams)

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
Loading

Player, Partner & Investor Overviews (Auto-Generated)

Diagram Freshness & Version Matrix

Every curated wiki diagram carries three machine-checked header fields:

  • Applies to version: - target release tag (must match ../game/package.json on 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/

Recommended Reading Order

  1. System-Context-Diagram
  2. Container-Architecture-Diagram
  3. State-Machine-Diagram
  4. Match-Lifecycle-Diagram
  5. Match-Bootstrap-Sequence-Diagram
  6. Runtime-Sequence-Diagram
  7. API-Surface-Diagram
  8. Database-ERD
  9. Telemetry-Pipeline-Diagram
  10. Technical-Tutorial

Clone this wiki locally