Skip to main content

Comparison with Adjacent Concepts

The Spec Graph shares ideas with several existing approaches. This page clarifies the similarities and differences.

vs. Product Requirements Documents (PRDs)

AspectPRDSpec Graph
FormatProse documentStructured, typed graph
ActionabilityRequires interpretationMachine-parseable
VerificationManual reviewEvery node has pass/fail criteria
GranularitySection-levelAtomic nodes
RelationshipsImplicit in textExplicit typed edges

Similarity: Both describe what to build.

Difference: PRDs are narrative documents that require human interpretation. The Spec Graph is a structured, machine-actionable specification where every claim is verifiable.

vs. Architecture Decision Records (ADRs)

AspectADRsSpec Graph Decision Nodes
PurposeHistorical narrative of decisionsPrescriptive, living specification
StatusUsually immutable once acceptedCan evolve via supersedes edges
VerificationNoneRequired for every decision
RelationshipsCross-references in textTyped edges (depends_on, constrains)

Similarity: Both capture architectural and technical decisions.

Difference: ADRs are retrospective records ("We decided X because Y"). Decision nodes are prescriptive specifications ("X must be true, verified by Z").

vs. Design Tokens

AspectDesign Token SystemsSpec Graph Design Token Nodes
ContentValues (colors, spacing, fonts)Values + usage rules + relationships
VerificationBuild-time token validationNode-level verification criteria
ContextStandalone token systemEdges connect tokens to behaviors and constraints

Similarity: Both specify visual properties.

Difference: Standard design tokens are values in isolation. Spec Graph design token nodes include usage rules, verification, and edges to the behaviors they constrain.

vs. Domain-Driven Design (DDD)

AspectDDDSpec Graph Domain Nodes
FormatBooks, workshops, modeling sessionsDeclarative JSON specifications
ScopeMethodology and philosophySpecific data model
OutputMental models, code patternsVerifiable, machine-readable nodes

Similarity: Both model business concepts and establish ubiquitous language.

Difference: DDD is a methodology — a way of thinking about software. Domain nodes are concrete, verifiable specifications that capture the outcomes of domain modeling.

vs. Infrastructure as Code (IaC)

AspectIaC (Terraform, Pulumi)Spec Graph
ScopeInfrastructure resourcesEntire system intent
OutputRunning infrastructureRunning system (via manifestation)
AbstractionResource-levelIntent-level

Similarity: Both aim for predictable creation from declarative specifications.

Difference: IaC specifies infrastructure resources at a concrete level. The Spec Graph specifies system intent at a higher level — including behavior, architecture, domain, and constraints — leaving the agent to determine the concrete implementation.

vs. UML / System Modeling

AspectUMLSpec Graph
PurposeSystem documentation and visualizationSystem specification for manifestation
DiagramsClass, sequence, state, etc.Node graph with typed edges
VerificationNone (descriptive)Every node verifiable
ActionabilityReference for humansInput for implementing agents

Similarity: Both model system structure and relationships.

Difference: UML diagrams describe systems for human understanding. Spec Graph nodes prescribe system properties for agent implementation, with mandatory verification.

vs. OpenAPI / API Specifications

AspectOpenAPISpec Graph API Contract Nodes
ScopeHTTP API surfaceFull system specification
DetailEndpoint-level (paths, schemas)Intent-level (what the API must do)
GenerationCode from spec or spec from codeSystem manifestation from graph

Similarity: Both formally specify API contracts.

Difference: OpenAPI is a complete API surface description. Spec Graph API contract nodes capture intent and constraints, leaving implementation details to the agent. The two can complement each other — an API contract node might reference an OpenAPI spec as an artifact.

vs. BDD / Gherkin

AspectBDD (Given/When/Then)Spec Graph Behavior Nodes
FormatNatural language scenariosStructured JSON with expectation + constraints
ScopeUser-facing behaviorMulti-dimensional (behavior + architecture + ...)
VerificationScenario runner (Cucumber)Flexible (commands, HTTP, manual)

Similarity: Both capture observable system behavior.

Difference: BDD scenarios focus on user stories. Spec Graph behaviors are part of a larger graph that also captures the non-behavioral dimensions needed for predictable manifestation.