Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Developer guide — overview

Audience: contributors to the compiler, reasoner, host, and CI gates.

The engine is one deterministic pipeline — nibli-kr → nibli-semantics → nibli-reason — shipped four ways (native library, WASM component + Wasmtime host, and two browser bundles), with every guarantee backed by a runnable gate. The chapters:

  • Crate map — the 22-crate workspace as a dependency graph: foundations, the compile chain, shared services, runtime surfaces, and tooling, with publish tiers.
  • Pipeline & IR — how KR text becomes an AstBuffer, then the flat LogicBuffer FOL IR, and what shapes the compiler guarantees (the emitted-shape contract).
  • WASM, host & compute — the single component, nibli-host mechanics (fuel, memory, trap recovery), the compute-backend protocol and its trust boundary, and the ship paths.
  • Soundness & CI index — every gate: the two-oracle differential track, the six Lean proofs and their conformance bridges, the umbrella recipes, fuzzing and mutation testing.
  • WIT surfacenibli:engine@0.7.0: every interface and session method, the bindings remap, and the version history.

Quick reference

TopicWhere
Logic IR (normative)LOGIC_IR.md
KR surface + pest grammarNIBLI_KR.md, nibli-kr/src/nibli_kr.pest
Soundness contractsGUARANTEES.md
Native CI gatejust ci (and just ci-wasm / just ci-all)
Deploy / playground shipDEPLOY.md
WIT boundarywit/world.wit (nibli:engine@0.7.0engine + authorizer)
AuthorizationUser guide: Authorization; crate nibli-auth; policy nibli-auth/policy/auth-0.1.0.nibli

Do not use the private book/ manuscript as a contributor reference for shipped behavior — prefer tests, gates, and the files above.