Skip to content

docs: add OTP supervision tree diagram to README#18

Merged
errantsky merged 5 commits intomainfrom
claude/add-otp-diagram-NUIXs
Feb 27, 2026
Merged

docs: add OTP supervision tree diagram to README#18
errantsky merged 5 commits intomainfrom
claude/add-otp-diagram-NUIXs

Conversation

@errantsky
Copy link
Owner

Adds a two-panel ASCII box diagram showing the full RLM.Supervisor
tree with a zoomed-in view of the per-run RunSup → Run → Worker/eval
subtree, plus a short prose explanation of the async-eval invariant.

https://claude.ai/code/session_019ezC43UTPqkASCCgerwvXF

Adds a two-panel ASCII box diagram showing the full RLM.Supervisor
tree with a zoomed-in view of the per-run RunSup → Run → Worker/eval
subtree, plus a short prose explanation of the async-eval invariant.

https://claude.ai/code/session_019ezC43UTPqkASCCgerwvXF
The previous diagram showed RLM.Worker (d+1) as a child of
RLM.Worker (depth 0), implying OTP supervision nesting. In reality
DynamicSupervisor.start_child/2 is always called on the run's single
worker_sup, so all workers at all depths are flat siblings. The
parent-child relationship is tracked in an ETS table owned by RLM.Run.

Updated diagram and prose to reflect this accurately.

https://claude.ai/code/session_019ezC43UTPqkASCCgerwvXF
- Remove the 27-line file tree (already in CLAUDE.md / GUIDE.html)
- Add "How it works" section with a flowchart Mermaid diagram showing
  the iterate loop, async eval, and recursive lm_query spawning
- Replace ASCII OTP tree with a Mermaid graph diagram that includes
  all 11 supervisor children in their correct startup order, plus the
  per-run DynSup/Task.Sup subgraph and a dashed ETS node showing that
  worker parent-child relationships are NOT encoded in OTP supervision
- Add OTP glossary blockquote for readers unfamiliar with Elixir
- Turn architecture boundaries into a table
- Reorder sections: concept → quick start → usage → architecture →
  observability → distributed (advanced) → security → license
- Move Distributed Erlang section to bottom (advanced feature)
- Merge prerequisites into Quick start

https://claude.ai/code/session_019ezC43UTPqkASCCgerwvXF
@errantsky errantsky merged commit b0f1830 into main Feb 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants