r/SpecDrivenDevelopment • u/SysModeler • 2d ago
How systems engineering is solving the "prose specs can't go red/green" problem in SysML v2
A recurring theme here is that a Markdown spec can't go red or green on its own—readable for humans and LLMs, but opaque to automated checkers.
Systems engineering hit this same wall in SysML v1, where requirements were just opaque text strings. SysML v2 fixes this by making a requirement def a specialized kind of constraint definition. One block holds the ID, human-readable doc text, typed parameters, an explicit subject, and an evaluable require constraint:
requirement def <'REQ-001'> MaxTakeoffMass {
doc /* The vehicle shall not exceed 5000 kg at takeoff. */
subject vehicle: LaunchVehicle;
attribute maxMass: MassValue = 5000 [kg];
require constraint { vehicle.totalMass <= maxMass }
}Because maxMass is a typed quantity and the rule is a formal Boolean expression, tools can query thresholds and evaluate compliance directly.
Parameterized reuse (no copy-paste)
Binding a typed subject lets you define a contract once and instantiate it across components with overridden budgets via :>>:
requirement stage1Mass: MassBudgetCompliance {
subject = firstStage;
:>> allocatedMass = 3200 [kg];
}You can also declare actor and stakeholder roles directly in the spec, while non-Boolean/qualitative requirements stay in doc text alongside the model.
(If you prefer watching on YouTube or want to save it for later, the full walkthrough is here: https://youtu.be/_OyuW8fKEJs)
For folks building SDD workflows with coding agents: do you think agents stay more aligned with Markdown + generated tests, or would a typed, constraint-embedded spec language reduce drift?