Skip to content

CBRL — Requirements Language

This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.

CBRL answers: what observable obligation must the system satisfy, and where did that obligation come from?

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.

  • 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.

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.

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.

  • 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)
  • DDD – INVOLVES_AGGREGATE links requirements to domain aggregates
  • USM – LINKED_STORY links requirements to user stories
  • SCM – Requirements can reference screens where they are validated
  • DSM – Requirements can reference tables involved in data constraints

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.