Skip to content

Commit 196ea4d

Browse files
authored
docs: design the ATOMesh RL rollout control plane (#77) (#98)
docs: design the ATOMesh RL rollout control plane The design every later task under #76 is planned from: ATOMesh's `/v1/rl/*` routes on SMG's protocol (smg@6c7bda1), the ATOM engine routes behind them (pause, refit from disk, trainer broadcast over RCCL, resume, `weight_version`), and the PD in-flight policy: P stamps each handoff with its `weight_version` and D prefills locally on a mismatch. Ends with an acceptance table for A1 to A9. Also adds the project's design principles as approved for #76, and indexes both in CLAUDE.md. Closes #77.
1 parent 2f9d30a commit 196ea4d

3 files changed

Lines changed: 695 additions & 0 deletions

File tree

‎CLAUDE.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,5 @@ Key entry points:
193193
| MiniMax-H3 (video+audio diffusion) | `recipes/MiniMax-H3.md` |
194194
| DeepSeek-V4.1-Flash | `recipes/DeepSeek-V4.1-Flash.md` |
195195
| Qwen3.8-Flash-Next mono decode | `recipes/Qwen3.8-Flash-Next-Mono-Program.md` |
196+
| ATOMesh RL control plane (pause / refit / resume) | `docs/atomesh_rl_control_plane.md` |
197+
| Design principles (RL line) | `docs/agent_team_principles.md` |

‎docs/agent_team_principles.md‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

Comments
 (0)