BCDD — Behavioural Contract-Driven Design
The acronym BCDD stands for Behavioural Contract-Driven Design, that is design driven by contracts on behaviour. BCDD is a language for specifying the behaviour of a system through its interfaces with the outside, called boundaries. A BCDD description consists of text files containing CSCs (Capability State Contract: a contract on what can be requested and on what can be seen) and entities.
bcdd is the command-line program that checks CSC files. Its four commands are new, check, refine and
ratify.
Why BCDD
- Not just software. A CSC describes a system only through its boundaries, that is its interfaces with the outside: what can be requested of it and what can be observed from outside. It does not describe how the system is built. The same language can therefore describe software, hardware and mixed systems, including complex ones; the manual's real case is an audio measurement kit.
- A formal language for generative models. The aim is a precise and complete language for communicating with generative language models: a description that leaves as little room as possible for interpretation of what is required.
- Closed at every level of detail. CSCs and entities can be written at different levels of detail, from the whole
system down to a single part. An entity made of parts that passes
bcdd checkis closed: every boundary that a part uses is provided by another part or used by the entity towards the outside, every public boundary is entrusted to a part, and every boundary provided is used. It is therefore complete at its level of detail: whoever builds it finds no boundary missing. Whether the system can actually be built is not somethingbcddchecks. - The language model as an assistant.
bcdd refineand the editor's “Complete” button use a language model, through Claude Code, to propose questions and lines of the contract. The operator answers, chooses and approves: nothing becomes part of the contract without approval (bcdd ratify).
Taking part
BCDD is at version 1.0-beta: the language and the programs work, but they have not yet been tried enough on real cases. We are looking first for testers: people who try BCDD on a system they know (software, hardware or mixed) and report what they wrote, what was difficult and what the results were. Anyone who wants to go further can also discuss the language, improve the examples and the documentation, or work on the programs. Collaboration is voluntary.
To take part, introduce yourself in GitHub Discussions, the project's public discussion area: say what interests you and which contribution you would like to start with. Alternatively, write to bcdd@nolisoft.it.
Documents
- The BCDD manual: description of the language: the boundary and the guarantee, assumptions, entities, guarantees that a program can check, up to the complete procedure; it includes a real case (an audio measurement kit).
- The BCDD grammar: syntax rules of CSC files (including entities and formulas), use of the commands
bcdd new,bcdd checkandbcdd ratify, the errors reported and the report ofbcdd check.
Download
- Packages for Linux and Windows:
bcddandbcdd-editorready to run, with documents and licences.
Version and licences
- Version of the documents and of
bcdd: 1.0-beta. - Documents: CC BY 4.0 licence (Creative Commons Attribution 4.0 International).
- Software: BSD-3-Clause licence.
- Copyright 2026 Noli Paolo.

