Note 01 · Concepts
The 5C Model: Connecting Intent to Implementation
Capability represents the value dimension; Context, Container, Component, and Code represent the structural dimension—held together by Foundations and Changes.
Traditional C4 diagrams explain how a software system is structured, from system context down to code, but leave out why a slice exists and what user promise it must keep. SpecPlane's 5C Model (Schema v9.2.1) adds Capability alongside C4's four structural layers, anchored by two cross-cutting layers: Foundations and Changes.
Two dimensions, not a five-tier stack
A common misconception is to treat Capability as "Level 0" stacked hierarchically above C4. It is not. Capability is the value dimension (product intent, user outcomes, and behavioral promises), whereas Context, Container, Component, and Code form the structural dimension (how the system is built and deployed).
In practice, value cuts across structure. A single capability routinely spans multiple containers and components—for example, user onboarding touching an API gateway, a billing service, and a notification worker. SpecPlane models this many-to-many relationship explicitly through bidirectional links (implements on containers/components paired with realized_by on capabilities), validated by check_sync and validate.
The five Cs
Capability — Why and What
Capabilities capture product intent: responsibilities, user journeys (flows), business value, and non-negotiable constraints. In examples/tiny-saas, capability.authentication states the security promise "Password reset links expire in 60 minutes" and declares realized_by links to container.api and component.password_reset. Phase 1 teams can author capabilities before deciding on any architecture.
Context (System) — The Big Picture
The System layer (system.<name>) maps actors, external systems, system boundaries, and the capabilities the product delivers as a whole. In examples/tiny-saas, system.tiny_saas binds capability.authentication, capability.billing, and capability.notifications to container.api.
Container — Architectural Structure
Containers (container.<name>) represent independently deployable or runnable units—APIs, web apps, databases, or background workers. Each container records which capabilities it implements, which foundations it uses, and which components it contains.
Component — Functional Building Blocks
Components (component.<name>) organize cohesive responsibilities inside a container, along with internal and external dependencies (dependencies.internal ↔ depended_on_by). When an engineer runs blast on capability.authentication, SpecPlane traverses these structural links to reveal component.password_reset and component.notifier without exploding across unrelated parts of the repo.
Code — Implementation
In Schema v9.2.1, Code stays real software in Git. SpecPlane deliberately does not mirror source files into YAML, nor does the kernel parse ASTs. Instead, Code connects to Component specs in three lightweight ways:
- Optional
implementation.realization.pathson a component (such assrc/auth.pyoncomponent.password_reset), audited against the repository withspecplane reconcileand used bycheck_syncto map Git diffs to spec IDs. - Component constraints and non-duplication boundaries read during
retrieve. - Automated checks already bound in a change's
success.yamland executed byrun.
Cross-cutting layers: Foundations and Changes
Two cross-cutting layers keep the five Cs coherent over time:
- Foundations (
foundation.<name>) hold shared invariants, security baselines, and architecture rules (such asfoundation.security_baseline) that multiple containers and componentsuse. Because foundations are terminal nodes duringblasttraversal, shared rules stay visible without flooding every impact graph with unrelated dependents. - Changes (
specs/changes/<slug>/) stage proposed deltas to capabilities, containers, components, and verification criteria (success.yaml) alongside pull requests. Live YAML remains the source of truth for shipped behavior untilpromotemerges an approved change packet.
Together, the 5C graph gives humans and AI coding agents one shared map from user promise to implementation—without turning specifications into a second copy of the codebase.
See SpecPlane on a real workspace: inspect live capabilities, blast graphs, and staged changes without installing anything.