Add domain glossary, ADRs and agent docs

CONTEXT.md holds the glossary agreed during the design interview and the
French word shown in the interface for each term. The three ADRs record
the two data sources, GPUI through gpui-kit pinned at 0.9.1, and building
with the Windows toolchain driven from WSL.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
nessarandClaude Fable 5.2 committed 2026-11-16 09:04:08 +01:00
1 parent 91773387b3
commit 289ceed6a7
8 files changed
+240

No files matched your search

@@ -0,0 +1,17 @@
---
status: accepted
---
# Two data sources: the local game client and the Riot API
The app reads the local League client API for the active Account and for live state (champ select, end of a Match), and the Riot web API for Match history. We accept the cost of a second integration and a personal Riot API key because the client alone cannot backfill: measured on 2026-11-15, its match history endpoint returns only the 20 most recent games across all game modes and ignores paging, while the Riot API keeps about two years.
## Considered Options
- **Client only**: no API key, but history limited to 20 recent games, so past Seasons and any Match played while the app was closed for long would be lost.
- **Riot API only**: full history, but no knowledge of which Account is signed in and no champ select.
## Consequences
- The client API is unofficial and may change between patches; the app must keep working on stored Matches when it is unavailable.
- The app only ever reads from the client. It never picks, bans or acts on the player's behalf.
+18
View File
@@ -0,0 +1,18 @@
---
status: accepted
---
# GPUI through gpui-kit, pinned to an exact version
The interface is built with GPUI, taken through `gpui-kit` 0.9.1 pinned exactly, rather than the official `gpui` crate. The official crate on crates.io has been frozen at 0.2.2 since October 2025 and ships no components, while `gpui-kit` brings a current GPUI plus the data table and charts the statistics page needs. The cost is that GPUI's own code reaches us as `gpui-pre`, a snapshot of the Zed repository republished by the `gpui-kit` maintainer (Longbridge) and not by Zed, so we trust that maintainer for the framework itself.
## Considered Options
- **Official `gpui` 0.2.2**: published by Zed, but a year old and the table and charts would be hand-written.
- **Git dependency on the Zed repository**: official and current, but a heavy clone with no guaranteed matching component library.
- **egui or Tauri**: faster to a result, rejected because GPUI is a deliberate preference for this project.
## Consequences
- `gpui-kit` releases weekly and GPUI is pre-1.0: upgrades are deliberate, one version at a time, never a loose version range.
- This line needs a Rust newer than 1.93.
@@ -0,0 +1,18 @@
---
status: accepted
---
# Build with the Windows Rust toolchain, driven from WSL
The repository, shell, editor and git live in WSL, but the app is compiled by Windows' own `cargo.exe` invoked from WSL, with the build directory on `C:`. Real cross-compilation from Linux was the first choice and was abandoned after testing on 2026-11-15: with `cargo-xwin`, GPUI 0.2.2 compiles but the executable exits at launch, because GPUI loads its DirectX shaders from the build machine's source path in debug builds and only generates them in release builds when the build host is Windows. The Windows toolchain driven from WSL produced a visible, responsive window for both GPUI 0.2.2 and `gpui-kit` 0.9.1.
## Considered Options
- **Cross-compile from WSL with `cargo-xwin`**: fails at runtime as described; not retested on the current GPUI line.
- **Develop on Linux under WSLg, build for Windows at the end**: rejected, no Vulkan support was found in this WSL and it would test a platform that is not the target.
- **Move the repository to the Windows filesystem**: works, but gives up the WSL working environment for no gain.
## Consequences
- The UI-free core crate is still built and tested natively in WSL; only the GPUI app crate needs the Windows toolchain.
- Two Rust toolchains must stay recent enough: Windows' to build the app, WSL's for editor diagnostics and core tests.