# The SourceLess book Eight volumes, one per subsystem, and an index. The eight exist because the rest of `docs/` describes what SourceLess is *for*, and that is a different question from what the code in this tree actually does. Those eight describe the code. The ninth, [CODEX.md](CODEX.md), describes the **documentation** — every published document in the repository, what each one is for, and the order to read them in. It is generated from `docs/site/codex.mjs` rather than written, so it cannot drift from the corpus it indexes, and `npm run codex:book:check` fails the build when it has. It is the only volume here that is not about the code. ## How to read them **Every claim is meant to carry a `file.ts:line`, and two kinds of citation carry different weight.** That is the point of the exercise, not a formatting habit: a statement about this system that cannot be traced to a line is a statement about an intention, and the two have diverged in this repository often enough that the distinction had to be made mechanical. But only one form is mechanically checked. - A citation written `` `Symbol` (`path.ts:NNN`) `` is **re-checked on every CI run** and fails the build if it no longer lands within 25 lines of that symbol's definition. **302 of these are checked on every run** (287 scored against a definition, 15 pointing at a call site or a comment where no definition exists to find, which the checker reports separately and does not fail on). Trust the number. - A **bare `file.ts:NNN` in a sentence is an anchor, not a coordinate.** Nothing re-points it. A measured sweep on 2026-09-12 found bare prose references in this book that had drifted **two to three thousand lines** — `CONSENSUS.md` §1 cited four call sites in `src/core/blockchain.ts` at `1722/2379/2606/3103` against a real `2896/4211/4561/5506`, with the behaviour described correct in every case. Those four were repaired; **the sweep was not exhaustive and others certainly remain.** When a bare number is wrong, the function name beside it is what to search for, and the named symbol is always given for that reason. *Corrected 2026-09-12.* This paragraph used to say, unconditional, "Every claim carries a `file.ts:line` … if you find a claim here without a citation, treat it as unverified" — which told a reader that a number in this book had been checked when roughly half of them are in the unchecked form. If you find a claim here without a citation, treat it as unverified; if you find one with a bare line number that lands somewhere unrelated, treat the number as stale and the named symbol as the claim. **They record what does not work as carefully as what does.** Each volume ends with a section naming the gaps in its own subsystem — features that exist but have no production caller, invariants checked by a method nobody calls, documentation that contradicts the code. Those sections are the most useful part of the book for anyone deciding whether to deploy this, and they were written to be read by someone looking for a reason not to. **A closed gap is amended, never deleted.** The entry stays and the resolution goes beside it, because a reader asking "was this ever reachable?" deserves the answer, and because an entry that was *wrong as stated* has to be able to say so rather than disappearing. `LEDGER_AND_STATE.md` §12.4 and `ECONOMICS.md` §11 are the worked precedents; `ECONOMICS.md` §12 carries the harder case, rows that were fixed and then reversed when a decision landed. The one thing that is never done is smoothing a register into a changelog. **Measured and reasoned are marked differently.** Where a number came from running something on a real host, the volume says so and gives the host. Where it came from arithmetic over the code's own constants, it says that instead. Several findings in here are arithmetic that no test exercises, and they are labelled that way rather than presented as results. **They are current as of the commit that added them and no later.** Line numbers move. When one is wrong, the surrounding text still tells you what to search for. Since 2026-09-07 that last rule has a mechanism behind it. `npm run citations` (`scripts/check-citations.mjs`) runs in CI and fails the build when a citation written as `` `Symbol` (`path.ts:NNN`) `` — or `` `Symbol` `path.ts:NNN` ``, or `` `Symbol()` `` — no longer lands within 25 lines of that symbol's definition. A bare `file.ts:line` in a sentence names no symbol, so all the gate can check is that the line exists: it is still an anchor to check rather than a coordinate to trust. Since 2026-11-18 their number can only fall. Each document's count of bare references is held at or below `scripts/citations-baseline.json`, and the way to lower it is to name the symbol the line points at. A citation to a call site or a comment, where no definition exists to find, is reported separately and does not fail the run. Each volume carries the commit its numbers were last re-pointed at. ## The volumes | Volume | Covers | |---|---| | [CONSENSUS.md](CONSENSUS.md) | PoE, Tyr slot leadership, Skuld/Norn density fork choice, Urd folding, Gladsheim seating, Nidingr evidence, Valkyrie attestation collection and stripping, and why settlement is depth | | [NETWORK.md](NETWORK.md) | SLNN, `str://`, Rune framing, the Bifrost handshake, Ratatoskr gossip, Gleipnir's three cost classes, Praeco discovery, Verdandi sync, Bragi identity gossip, the TCP transport and the Pulsar budget | | [LEDGER_AND_STATE.md](LEDGER_AND_STATE.md) | Yggdrasil, Glasir, Charon, per-record size gates, deferred execution, Mimir/Draupnir durable persistence, the derived depth line, and what a state root commits to | | [CONTRACTS_AND_VM.md](CONTRACTS_AND_VM.md) | AresLang, the ARES container, storage encoding, the StarW VM, determinism, Sindri, the templates and their executed exploits | | [CRYPTOGRAPHY.md](CRYPTOGRAPHY.md) | Aegis/Gemini hybrid signatures, ML-KEM, GodCypher, ZK13 v2, the Fafnir keystore, what the genesis builder accepts as key material, Lethe envelopes and the parallel verify pool | | [ECONOMICS.md](ECONOMICS.md) | The seven ledgers, the eSTR and CCOS premines, no-fees, post-mining, the Feeless Pool, Echo, the Stable Pool, ARSS, domain economics and the two ways out of a domain lock, Nemesis, and an invariant table | | [IDENTITY_AND_WALLET.md](IDENTITY_AND_WALLET.md) | STR.domain, wNFT, Helgrind burns, Handsal sales, Lethe, Skidbladnir, the authority model, recovery, and the integrator checklist | | [GOVERNANCE_AND_OPERATIONS.md](GOVERNANCE_AND_OPERATIONS.md) | Odin, the Althing, voting pools, Themis roles, Argus audit, Clio, Cerberus, Eir health, Nemesis, Hermod, Astrolabe; Snotra's realm register, key custody at the level of what it promises, and the Vidar and Hlin rollout and rollback gates | | [CODEX.md](CODEX.md) | Not a subsystem: the index to every published document in the repository, generated from the navigation the local documentation site serves | ## What the book is not It is not an argument that this chain is ready to hold value. Read [../BUILD_STATUS.md](../BUILD_STATUS.md) for that. ~~The verdict there is NO-GO.~~ *Corrected 2026-10-29:* that verdict is struck there, superseded by a launch on 2026-10-05 that was a decision taken over two unmet gates rather than a pass, and these volumes are part of the evidence for both halves of that sentence. Several of the defects fixed on this branch were found by writing these documents, which is the honest case for having written them and also a fair warning about how many assertions in a codebase go unchecked until somebody tries to explain them.