<!-- SPDX-FileCopyrightText: 2026 Dan Finster and the Desert Sage Contributors --> <!-- SPDX-License-Identifier: BSD-4-Clause OR AGPL-3.0-or-later -->
The DS integration specification#
The contract between libds and the host that embeds it. What DS guarantees is in the language specification, and how libds is built is in the implementation specification. The source is specs/integration/, one JSON file per clause, and these pages are generated from it.
The public surface is one header, runtime/include/libds.h. Every callback registered on an engine returns ds_result_t. libds ships no threading primitives, and the integrator decides when the pump runs.
Integrator callback registry (
NCBK)Errors and result handling (
NERR)Series backends (
NSBK)Determinism and replay (
NDET)Metrics surface (
NMET)Defining dialects (
NDLC)