Skip to content

Match

A Match records that a specific Game was played, by whom, under what shared configuration, and with what result for each participant. It is the anchor of gaming history: everything else in this domain — identity resolution and statistics — ultimately traces back to Matches.

A Match owns its MatchParticipants and optionally references a reusable Playset: what was played besides the Game (expansions, variants, scenario). Without a Playset it is the base game. It never references a GhostPlayer or CanonicalPlayer directly — only through a MatchParticipant (see MatchParticipant).


A Match is responsible for:

  • referencing exactly one Game;
  • referencing at most one Playset, shared across all its MatchParticipants; the expansions that were played are those of the Playset;
  • optionally referencing which Community, if any, it was played within.
  • owning one or more MatchParticipants, one per player;
  • enforcing that no GhostPlayer appears in more than one MatchParticipant within the same Match;
  • recording its owner — the User who recorded it (the recorder);
  • exposing its status: Draft or Finalized;
  • exposing and enforcing its Edit Requests Toggle.

A Match is NOT responsible for:

  • identity resolution or claiming — that belongs to ClaimRequest and ClaimEdge;
  • computing statistics — Matches are read by statistics computation, not responsible for it;
  • deciding whether a proposed change is approved — that belongs to MatchEdit; Match only enforces its own invariants once a change is applied.

  • A Match has exactly one owner, fixed at creation. Ownership is never transferred.
  • A Match has at least one MatchParticipant.
  • A Match has at most one MatchParticipant per GhostPlayer.
  • A Match has at most one Playset.
  • A Match’s Playset, if any, must belong to the same Game as the Match itself.
  • A Match’s Edit Requests Toggle can only be changed by its owner.
  • A Draft Match is changed directly by its owner and accepts no MatchEdits.
  • A Finalized Match never returns to Draft. Its participants, results, Loadouts and Playset change only through a MatchEdit (see MatchEdit); only when it was played and its Edit Requests Toggle remain directly editable by its owner.
  • A Finalized Match is never deleted.

A Match is recorded by its owner as a Draft, together with its MatchParticipants (and their Loadouts, where applicable) and, optionally, a Playset and/or a Community reference. The Playset is an existing one, or a new one created together with the Match.

While it is a Draft, the owner changes everything directly — the MatchParticipants are replaced as a whole, and one that is left out is removed — and may delete the Match, which removes it from everyone’s history.

The owner finalizes the Match once it is complete. Finalizing is one-way: from then on the Match is part of every participant’s gaming history and is never deleted. Its MatchParticipants, results, Loadouts and which Playset it references change only through a MatchEdit — which changes the reference, never the content of any Playset, since Playset content is immutable (see Playset). When it was played and its Edit Requests Toggle can still be changed by its owner directly.


  • Match references Game;
  • Match references Playset (0..1);
  • Match owns MatchParticipant (1..N);
  • Match optionally references Community;
  • Match is recorded by (owned by) User;
  • Match is targeted by MatchEdit.

  • MatchRecorded
  • MatchFinalized
  • MatchDeleted (Draft only)
  • EditRequestsEnabled
  • EditRequestsDisabled

Match is the Aggregate Root. MatchParticipant and Loadout are child entities within it — none of them has identity or lifecycle independent of their Match. All consistency rules that span multiple MatchParticipants (e.g. no duplicate GhostPlayer, a coherent set of results) are enforced here, which is also why MatchParticipant and Loadout were deliberately not modeled as their own Aggregate Roots.


  • Minimum MatchParticipants: this model allows a Match with a single MatchParticipant, to accommodate solo games. Confirm this is intended rather than requiring at least two.