// PART 00
Why this book exists
This book is the developer map of General Bots. The platform is a Rust workspace with a large web UI, a BASIC runtime, AI pipelines, channel adapters, an app registry, and a security model.
The old reference material is still useful, but it grew around a different product shape. This book reorganizes that material around the current source tree, the current product profiles, and the way the runtime actually boots.
Who this book is for
Three readers, in the order the parts serve them:
| Reader | Start with | Why |
|---|---|---|
| A developer joining the project | Part 0–1 | Where the code lives, what boots when, which crate owns what |
| An operator running an instance | Part 2 | Building from source, containers, scaling, troubleshooting |
| An integrator extending the product | Part 6, 8, 11 | App catalog, REST/WS surface, how to add an app, a channel or a keyword |
What makes this book different
Every claim here is traceable to a file in the repository. The book follows the repository’s maintenance rule: a claim that cannot be verified against the code is deleted, not softened. Concretely:
- Authorities are named. A page about ports points at the source that binds them; a page about BASIC keywords points at the keyword crates. If a page quotes a port, a flag name, a model name or a default value that cannot be reproduced from the authority tables, the sentence is wrong.
- Generated references are generated. The REST, WebSocket, schema and BASIC reference pages are produced by scripts (
scripts/gen_api_reference.py,gen_schema_reference.py,gen_basic_reference.py) from the code and fail a drift check. - Unimplemented is said out loud. Where the field has a capability this platform does not implement — a model router with no caller, a retrieval strategy that is not wired — the page says so in a short table instead of implying otherwise.
What this book is not
- Not a user manual. The suite apps are documented from the reader’s point of view elsewhere; here they appear only as code surfaces (registry entries, commands, routes).
- Not a roadmap. Plans and work-in-progress live in GitHub issues, not in documentation. What is written here is what the product does today.
- Not a substitute for the source. The code changes weekly; this book names the file that settles a question so you can re-check it.
How the book is organized
Parts 0–2 cover the machine: the workspace layout, the network contract, the build, and the deployment containers. Parts 3–5 go inside the running server: the core engine, the assistant pipeline, and the data layer. Parts 6–8 describe the surfaces a developer integrates with: apps and UI, channels, and the API contracts. Parts 9–11 are the working agreement: security, testing, and how to extend the product. Part 12 and the appendices are reference material you will return to.