Decision Records
One decision per record, never edited after it is written. To overturn one, write a new record and mark the old one as superseded at the top. Each record has background, decision and consequences (including what was given up). The full originals are in docs/decisions/ of the project repository, written in Chinese.
0001 Native frontends, the Gateway and container engines
Section titled “0001 Native frontends, the Gateway and container engines”Status: accepted (2026-12-06).
- Native frontends: fcitx5 on Linux, TSF on Windows, InputMethodKit on macOS.
- One Gateway in the middle: the frontend talks only to it, and it aggregates, picks and ranks.
- Engines are all containers, anywhere. A new engine is a new container plus an entry in the Gateway configuration.
- Three contracts:
client,engine, andingest(reserved). - The outbound exit is separate, asynchronous and one way; the Reducer and record centres are not in this phase.
0002 Transport: gRPC
Section titled “0002 Transport: gRPC”Status: proposed (2026-12-06). It becomes accepted after a minimal prototype has checked the latency from the frontend to the Gateway and how the Windows frontend integrates.
clientandengineuse gRPC with contracts described in.proto;ingestis undecided.- To verify: keystroke latency, how Windows TSF integrates (it may need a thin local proxy process), and how the local connection is made.
0003 Language, engine layout and code origin
Section titled “0003 Language, engine layout and code origin”Status: accepted (2026-12-06).
- Rust for the Gateway and the engines, C++ for the frontend.
- One directory per engine; capabilities are what the engine declares; Doubao is one container with two capabilities.
- In this phase each capability is routed to one engine.
- Code is selectively copied from two source repositories and then evolved, not moved wholesale.