CBRL — Requirements Language
This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.
Summary
Section titled “Summary”CBRL answers: what observable obligation must the system satisfy, and where did that obligation come from?
When to use it
Section titled “When to use it”Use it when a promise needs a stable identity, explicit acceptance criteria, tests and links to the affected domain or story. Start with one important requirement and both a positive and a negative example. It is useful before regulation or organizational complexity appears; the cost is maintaining precise statements as intent changes.
Common mistakes
Section titled “Common mistakes”- Using adjectives such as fast or secure without a way to observe the promised property.
- Combining several independent obligations into one requirement with an unclear verdict.
- Losing the origin of an expected result when a requirement changes.
Background and history
Section titled “Background and history”CBRL is ContextBrew’s requirements language. It connects requirements engineering and executable-specification practices through a project-specific grammar; it is not an external requirements standard. Gherkin’s reference is useful background for the Given/When/Then style of examples, but Gherkin and CBRL have different syntax and scope.
A requirement should express an obligation whose satisfaction can be observed. “Fast checkout” needs a workload, measurement boundary and threshold before it is testable. Traceability records why an obligation exists and which story, aggregate or aspect it affects. Parsing and reference checks establish structural consistency; generated tests remain scaffolds until their assertions exercise an implementation. Keep those levels of evidence visible when reviewing a requirement.
Alternatives and trade-offs
Section titled “Alternatives and trade-offs”Use plain acceptance criteria for an early conversation, Gherkin for executable behavioral scenarios, or a requirements management system for a broader organizational process. CBRL is appropriate when you need these obligations connected to ContextBrew models and generated artifacts. USM supplies user context rather than replacing formal requirements.
References
Section titled “References”- Gherkin’s reference
- Learning with models — choose a practice workflow and interpret its results.
What CBRL Captures
Section titled “What CBRL Captures”- Requirements – formal statements of what the system must do
- Acceptance Criteria – verifiable conditions for each requirement
- Test Cases – explicit test scenarios derived from requirements
- Traceability Links – connections to DDD aggregates and USM stories
- Aspects – cross-cutting concerns tagged on requirements (
@security,@audit,@accessibility)
Relationships to Other Models
Section titled “Relationships to Other Models”- DDD –
INVOLVES_AGGREGATElinks requirements to domain aggregates - USM –
LINKED_STORYlinks requirements to user stories - SCM – Requirements can reference screens where they are validated
- DSM – Requirements can reference tables involved in data constraints
Next Steps
Section titled “Next Steps”- CBRL Syntax Reference for the complete grammar specification
- DDD Model to define aggregates referenced in CBRL
- USM Model to define stories linked from CBRL
File format (JSON Schema)
Section titled “File format (JSON Schema)”Serialized CBRL requirements are validated by a normative JSON Schema generated from ContextBrew’s source code. See the CBRL file schema page — or print the schema anywhere with ctxbrew schema cbrl.
