{
  "lexicon": 1,
  "id": "net.bisks.skymash.vote",
  "defs": {
    "main": {
      "type": "record",
      "description": "One person's head-to-head pick between two nominated accounts on skymash. `a` and `b` are the pair, DID-sorted ascending so the same matchup always produces the same record key regardless of vote order; `winner` is whichever of the two the rater clicked. One record per (rater, pair) — the record key is `<a>_vs_<b>` — so changing your mind on a matchup overwrites the previous vote in place instead of stacking duplicate votes. The network-wide Elo leaderboard is computed client-side by replaying every such record, sorted by votedAt, across every rater's repo (listReposByCollection + a live Jetstream subscription). Written and read by skymash (https://skymash.bisks.net).",
      "key": "any",
      "record": {
        "type": "object",
        "required": ["a", "b", "winner", "votedAt"],
        "properties": {
          "a": {
            "type": "string",
            "format": "did",
            "description": "The lexicographically smaller DID of the two accounts being compared."
          },
          "b": {
            "type": "string",
            "format": "did",
            "description": "The lexicographically larger DID of the two accounts being compared."
          },
          "winner": {
            "type": "string",
            "format": "did",
            "description": "Which of `a` or `b` this rater picked. Must equal one of the two."
          },
          "votedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this vote was last cast/changed, as an ISO 8601 datetime — the Elo replay processes votes in this order."
          }
        }
      }
    }
  }
}
