← Glossary
Glossary · AI and agent workflows
Behavior specification
The statement of what a program should do, written so that a check can be derived from each line.
A behavior specification combines behavior examples, edge cases with their expected outputs, the input contract, and non-goals. Its quality is measured by checkability, not length: a long description of intent can leave the decisive case undecided, while three example rows can settle it. Some projects fix the order of this work in a procedure, such as the feature-spec skill from a DeepLearning.AI course; the transferable part is the order, behavior first and code after.