---
library: "bootstrap"
slug: "Spec"
name: "Spec"
ref: "Spec#c953"
hash: "sema:Spec#mh:SHA-256:c9537551b2bfa2639c15270994fdbb5a52a41d098f499c5ed5d61945a7c50da7"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Spec"
---

# Spec

Rigorous requirement definition

Infrastructure · Data Structures

## Mechanism

A rigorous definition of requirements for an [Artifact](https://semahash.org/vocabularies/bootstrap/patterns/Artifact.md). It defines the shape, behavior, and [Constraint](https://semahash.org/vocabularies/bootstrap/patterns/Constraint.md)s that a target must satisfy. Distinct from [Plan](https://semahash.org/vocabularies/bootstrap/patterns/Plan.md) (how to build) or [Goal](https://semahash.org/vocabularies/bootstrap/patterns/Goal.md) (what to achieve), a Spec is the 'Definition of Done'.

## Invariants

- Verifiability: Every requirement must be testable (binary pass/fail).
- Immutability: Once defined, the Spec acts as a fixed contract.

## Where this came from

—

## Builds on

- [Artifact](https://semahash.org/vocabularies/bootstrap/patterns/Artifact.md) (references)
- [Goal](https://semahash.org/vocabularies/bootstrap/patterns/Goal.md) (references)
- [Constraint](https://semahash.org/vocabularies/bootstrap/patterns/Constraint.md) (references)
- [Plan](https://semahash.org/vocabularies/bootstrap/patterns/Plan.md) (references)

## Used by

- [AcceptSpec](https://semahash.org/vocabularies/bootstrap/patterns/AcceptSpec.md) (references)
- [Build](https://semahash.org/vocabularies/bootstrap/patterns/Build.md) (accepts)
- [FrameSpec](https://semahash.org/vocabularies/bootstrap/patterns/FrameSpec.md) (references)
- [MetamorphicTesting](https://semahash.org/vocabularies/bootstrap/patterns/MetamorphicTesting.md) (references)
- [SpecBinding](https://semahash.org/vocabularies/bootstrap/patterns/SpecBinding.md) (references)
- [SpecIntentCheck](https://semahash.org/vocabularies/bootstrap/patterns/SpecIntentCheck.md) (references)
- [StyleSpec](https://semahash.org/vocabularies/bootstrap/patterns/StyleSpec.md) (references)
- [Verification](https://semahash.org/vocabularies/bootstrap/patterns/Verification.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Spec#c953
- Hash: sema:Spec#mh:SHA-256:c9537551b2bfa2639c15270994fdbb5a52a41d098f499c5ed5d61945a7c50da7

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Spec
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Spec.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
