0043. No email address in outbound requests
Source:
docs/decisions/0043-no-email-in-outbound-requests.md. Generated at build time; edit the source file.
Date: 2026-11-21. Status: accepted.
Context
Section titled “Context”The Rust platform client built its User-Agent as chess-improver/0.1 (+mailto:{CONTACT_EMAIL}), so the owner’s email went to chess.com and Lichess on every request.
Decision
Section titled “Decision”- No outbound request to a third party (chess.com, Lichess, or any other) may carry an email address, in any header, query string or body. The reason is the owner’s privacy: the project owner’s standing rule is never to send their email to external services.
- Clients identify themselves by the project URL only. The fixed User-Agent is
chess-improver/0.1 (+https://github.com/chess-improver). ClientOptions.contact_emailis removed;user_agent()takes no arguments.CONTACT_EMAILis no longer read by the Rust backend or passed torust-dev.- The same rule applies to the R2 lichess-db download and to the web app’s chess.com calls.
- Regression test:
backend/crates/platforms/tests/client.rsasserts the chess.com and Lichess clients send (withCONTACT_EMAILset when run) exactly the fixed User-Agent, with no@.
Consequences
Section titled “Consequences”- chess.com may rate-limit or block an anonymous agent more readily; if so, revisit with a project-owned address, not a personal one.
Amendment (2026-11-23): the Rematch name
Section titled “Amendment (2026-11-23): the Rematch name”The project is now Rematch, so every outbound client (the Rust platforms, ai and lichess-db crates, the web app, the TS worker, and the npm and crates.io age checks) sends one fixed User-Agent, rematch/0.1 (+https://github.com/Terkea/rematch). The rule is unchanged: no email address, in any request.