Start with the task you are doing. Read the linked section, then follow its source and test pointers; the documents below are not a required reading list.
| Task | Start here |
|---|---|
| Set up, build, or submit a change | Contributing |
| Find the crate that owns a behavior | Source map |
| Design module or crate interfaces | Command, build, and runtime responsibilities (proposed) |
| Write or clean up a test | Testing |
| Find an E2E scenario by topic | E2E scenario index |
| Measure fixture overhead or retain a test workspace | Test-directory diagnostics |
| Look up a Moon command as a user | English manual or Chinese manual |
| Change MoonBuild behavior | The glossary, then the relevant route below |
Source and tests establish current behavior. References describe that behavior; designs and migrations may describe work still to do. Call out conflicts with accepted decisions or references when proposing a change.
Rupes Recta is the default build engine. Inspect legacy moonbuild paths when
they own the behavior being changed or compatibility is part of the task.
| When changing | Start here | Follow when needed |
|---|---|---|
| Project discovery, modules, packages, imports | Modules and packages | Architecture: discovery, module resolution, package resolution |
| Workspaces or package selection | Workspace behavior | Directory and environment facts |
| Planning, lowering, artifacts, or execution | Pipeline overview | Package build process, artifact dependencies, RR special cases |
| Build configuration scope and phase ownership | Configuration selection decision | Pipeline overview, conditional compilation |
| Compiler arguments or backend support | Compiler commands | Supported targets, conditional compilation, virtual packages |
| Compiler-proposed source fixes | moon fix |
Prebuild outputs, Testing |
| Native builds, C stubs, ABI, or CRT | Native ABI decision | C toolchain resolution, toolchain layout |
moon test, filtering, driver events, or promotion |
moon test execution flow |
Writing tests for Moon |
| stdout/stderr, logs, or progress | Command communication vocabulary and output decision | CLI lifecycle, output migration |
| Dry-run output | Dry-run behavior | CLI lifecycle |
moon run process launch, stdin, signals, or cleanup |
moon run process lifecycle |
This is the CLI process layer; runtime internals use the Moonrun route below. |
| Moon home, global caches, or cleaning | Moon home layout | Cache design, artifact dependencies |
| Registry package execution or installed binaries | moonx or moon install |
moonx dispatch decision, binary discovery |
| Prebuild tasks, bundles, or indirect dependencies | Prebuild, bundle, or indirect dependencies | Toolchain layout for packaging |
| Wasm runtime imports, Handles, async hosts, V8, or Wasmtime | Async host boundary decision | Moonrun developer guide |
- Contributing and Testing own contributor procedures.
CONTEXT.mdowns project vocabulary. It is not an implementation specification.docs/adrowns accepted, hard-to-reverse decisions and their trade-offs.docs/dev/designowns cross-cutting designs, invariants, and reconsideration criteria.docs/dev/referenceowns descriptions of implemented MoonBuild behavior and must change with that behavior.docs/dev/researchcontains non-normative investigations that inform design choices but do not define implemented behavior. Existing comparisons include dependency-tree deduplication and GitHub permalink installation.- Command output migration owns the sequencing of that in-progress migration.
docs/manualanddocs/manual-zhown user-facing command documentation.- Source and tests remain the final evidence for what the current revision actually implements.
When editing a page, keep its purpose explicit and link to facts owned elsewhere. Remove obsolete instructions after checking their source; Git retains the old text. Keep temporary audits and proposals out of behavior references. Update this index when a page moves or its audience changes.
The repository-local moon-development skill
teaches coding agents how to use this index without copying its routing table.
- 0001: Async Wasm Host Boundary
- 0002: Native ABI Policy Belongs to Toolchains
- 0003: Dispatch Moonx By Executable Name
- 0004: Separate Command Results from User Logs
- 0005: Use Unified Planning and Execution for Standalone Builds
- 0006: Model Providers as Build Graph Topology
- 0007: Separate Command, Build, and Runtime Responsibilities (proposed)
- 0008: Select Build Configuration Before Package Resolution