|
| 1 | +# Design principles: ATOM (junyyang-amd/ATOM, RL line) |
| 2 | + |
| 3 | +A designer, a design reviewer and an agent ruling on an escalation weigh a |
| 4 | +decision against the agent-team skill's default principles (`principles.md` |
| 5 | +in the agent-team skill: the simplest solution that meets acceptance, |
| 6 | +measure before deciding, reuse first, no speculative generality, fix shared |
| 7 | +code, prefer reversible choices, follow conventions, change public |
| 8 | +interfaces only when the requirement does) and the project principles |
| 9 | +below. The project principles win a conflict. Both decide how to build, |
| 10 | +never what: goals and acceptance belong to the requirement in the umbrella |
| 11 | +issue. |
| 12 | + |
| 13 | +## Project principles |
| 14 | + |
| 15 | +1. **Unit tests run without a GPU.** New logic gets a CPU test under |
| 16 | + `tests/` (or a Rust test in `atom/mesh`) that mocks AITER and |
| 17 | + `torch.cuda` the way the suite already does; GPU behaviour is proven by |
| 18 | + `tools/rl/accept.py`, not the gate. Why: the PR gate is CPU-only. |
| 19 | + Source: `CLAUDE.md` (Build & Test & Lint). |
| 20 | +2. **With RL off, nothing changes.** The control plane and the engine |
| 21 | + endpoints are inert unless enabled (`--enable-rl` on ATOMesh); inference |
| 22 | + requests take the path they took before. Why: production inference |
| 23 | + (AgentX) uses neither. Source: LLM-Booster#456 (SMG's `--enable-rl`), |
| 24 | + LLM-Booster#455. |
| 25 | +3. **SMG's protocol is the spec.** Where ATOMesh's RL routes, selectors, |
| 26 | + bodies or responses differ from smg@6c7bda1, the difference is a bug |
| 27 | + unless the design names it and why. Why: frameworks on `smg.rl` must |
| 28 | + need no change. Source: LLM-Booster#456 (Client). |
| 29 | +4. **Correctness is compared against a server started fresh on the same |
| 30 | + checkpoint**, with the same settings and prompts, never against a |
| 31 | + remembered number. Why: it isolates what the refit changes. Source: |
| 32 | + LLM-Booster#456 (Acceptance). |
| 33 | +5. **GPU work runs only on the nodes the owner names**, and a node that |
| 34 | + becomes unavailable is the owner's to replace. Source: Rulings |
| 35 | + [#30](https://github.com/junyyang-amd/ATOM/issues/30#issuecomment-6826722899), |
| 36 | + [#30](https://github.com/junyyang-amd/ATOM/issues/30#issuecomment-6867816403), |
| 37 | + [#63](https://github.com/junyyang-amd/ATOM/issues/63#issuecomment-6909252785). |
| 38 | +6. **Every `ATOM_*` environment variable is defined in |
| 39 | + `atom/utils/envs.py`.** Why: one place documents and defaults them. |
| 40 | + Source: `CLAUDE.md` (Key entry points: Env vars). |
0 commit comments