reference: the full school
reference: the story, the full path, the measured repository and the chapter list
the path through the cave
this is the order a reader needs. a page that says learn first must be read before the page that names it.
mid grug (level 2 of 6) (3 topic(s))
flowchart TB
subgraph L2["mid grug (level 2 of 6)"]
direction TB
T1["1 repo paths are found at runtime"]
T2["2 a changed file belongs to a session root"]
T3["3 the host checks text before it runs"]
end
T1 --> T2
T2 --> T3
click T1 href "repo-paths-at-runtime.html" "repo paths are found at runtime"
click T2 href "live-tests-route-by-session-root.html" "a changed file belongs to a session root"
click T3 href "fsi-host-checks-unsaved-text.html" "the host checks text before it runs"
the same path as a plain list of links
- repo paths are found at runtime mid grug (level 2 of 6)
- a changed file belongs to a session root mid grug (level 2 of 6)learn first: repo paths are found at runtime
- the host checks text before it runs mid grug (level 2 of 6)learn first: repo paths are found at runtime
what grug found in the repo
grug read the repo before anyone wrote a topic. The numbers here come from the files. There are 17 project(s) in 3 language(s). the lay of the land shows what each one measures and where they meet.
open the measured diagram and the size contrast
grug finds F#: 14 project(s), JavaScript: 2 project(s), TypeScript: 1 project(s). When two projects do one job two ways, the difference matters, so the school says what each difference means and what can be inferred from it. see the measured contrast.
the school names the languages it measures. a school topic can hold the comparison when one is written.
one chapter for each project: 17 chapter(s) below
grug writes these with no author, from the files alone, and rebuilds them when the files change. Each chapter says what the project holds, in what order to read it, who uses it and what it uses. The topics explain why the code has this shape. Every chapter below is in the search too.
open the list of all 17 measured chapters
SageFs, F#, 168 source file(s): Item 14d (sagefs-multiagent-vision.md) — the blocking test-run primitive cohort landing verification needs.SageFs.Core, F#, 424 source file(s): Runtime-located paths for THIS repository.SageFs.Demos, F#, 39 source file(s): The pure domain model for `sagefs-demos` (demo-gif-plan.md §5, §6.1).SageFs.FsiHost, F#, 4 source file(s): Wire protocol between SageFs and an isolated FSI host process.SageFs.Host, F#, 10 source file(s): Runs a session project's compiled entry point inside the worker and owns the resulting app: one app per worker, started, observed and stopped here.SageFs.Simulation, F#, 183 source file(s): Step 8 of docs/plans/markers-on-expecto-cases.md: the deterministic simulation for the marks a file shows while its text changes under it.friction-receiver, TypeScript, 1 source file(s)sagefs-vscode, JavaScript, 1 source file(s)sagefs-vscode/src, F#, 55 source file(s): Thin VSCode API bindings — only the APIs SageFs actually uses. Much simpler than the 723KB Ionide auto-generated bindings.sagefs-vscode/test-electron/coreclr-shim, JavaScript, 0 source file(s)scripts/lemmings/LemMatrix, F#, 4 source file(s): A matrix plan: which fixture x task x model combinations to run, and how many times each.scripts/lemmings/LemRun, F#, 13 source file(s): Starting, waiting for and ending processes. Everything the harness runs goes through here, so there is one place that says how output is captured, how a wait is bounded and how a process is ended: by its exact pid, TERM first, KILL only if…scripts/lemmings/LemScore, F#, 9 source file(s): The closed vocabularies of the lemming harness. Every set is a union with one exhaustive to-string, so a new case that is not named in the summary will not compile.scripts/lemmings/oracles/RingBufferOracle, F#, 1 source file(s)scripts/lemmings/ui/LemDrive, F#, 19 source file(s): What one driver call came to, the environment the harness hands the driver, and the numbered log every call leaves behind. Shared by the VS Code and Neovim commands so a transcript reads the same for both editors.scripts/lemmings/ui/nvim, F#, 10 source file(s): The editor sandbox for a Neovim lemming: tmux and Neovim run in it, and a shell inside Neovim (`:!`, `:terminal`, `:lua os.execute`, a filter like `!!sh`) can reach only what is mounted here. A key list cannot be allow-listed down to…tools/agent-hooks, F#, 4 source file(s): The decision behind the sagefs-repl-guard Claude Code hook.
what goes wrong for this kind of app
every app of this kind must answer the same hard questions: what happens when the network goes, when the same request arrives twice, and who may do what. The catalog names each question, says what this codebase answers, and says plainly when there is no answer. 0 answer(s) in code, 0 partial, 0 missing, 0 not applicable, and 21 not yet judged. read the list.
what the levels mean
these are the six rungs of the cave. a page carries the badge of the rank it teaches.
- junior grug (level 1 of 6) follow a worked trace and say what the code did
- mid grug (level 2 of 6) say why one file has its shape and what breaks if it changes
- senior grug (level 3 of 6) trace a path through the system and name the parts it joins
- staff grug (level 4 of 6) predict how a change in one part shows up in another
- principal grug (level 5 of 6) judge a claim against the code and a proof
- distinguished grug (level 6 of 6) teach the shape of the system to another grug and change it without breaking what sits next to it
how to learn in the cave
- read this page first, then walk the path above from the top. earlier topics make later ones easy.
- every topic end with questions. Say the answer out loud first, then tap. grug remembers what you miss and asks again in the pop quiz.
- press / on any page to search every topic.
- when a topic page shows a demon watch box, grug measured the file it explains. The enemy is the complexity spirit demon, worse than a t-rex, because grug can see a t-rex. The box only tells you where to look, so open the file and look.
- You know a topic when you can explain it to another grug and change it without breaking what sits next to it.