Code standards¶
Coding conventions governing how Lore source is written.
What this folder is¶
Per-language, per-area conventions for error handling, logging, task spawning, testing, comments, and similar concerns. Each page is a Code-Standard doc — imperative rules paired with rationale, code examples, and reference tables.
The standards¶
- Error handling. Typed
thiserrorenums, the publicLoreErrorinterface, logging extension traits, and the no-unwraprule. - Logging.
tracingfor server and tool code, Lore macros for library code, and when to use each log level. - Task spawning. The
lore_spawn!macros that keepLORE_CONTEXTpropagating across async and blocking tasks. - Testing. Unit, async, and smoke test patterns, with the test-independence rules that keep them isolated.
- Comments and documentation. Rust doc-comment expectations and when a code comment earns its place.
Suggested starting points¶
- Writing a new Code Standard page? Start at the doc-standards walkthrough.
See docs/README.md for the full docs structure.