SCM — Screen Connectivity
This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.
Summary
Section titled “Summary”SCM answers: which screens exist, and how can a user move between them?
When to use it
Section titled “When to use it”Use it when navigation, route ownership or a multi-step journey matters. Start with three screens and name each transition. Include recovery and empty/error destinations where they affect the journey. SCM describes connectivity, not visual design; a service or library without screens usually has no need for it.
Common mistakes
Section titled “Common mistakes”- Treating every database record as a separate screen.
- Drawing a happy path without empty, error or expired-state recovery.
- Interpreting a hidden navigation link as an authorization check.
Background and history
Section titled “Background and history”Screen Connectivity is a ContextBrew model for a familiar design concern: making navigation structure explicit. It is related to site maps, UI flow diagrams and route inventories, but its particular file format and cross-model links belong to ContextBrew. Mermaid’s diagram guide provides a portable diagramming alternative; it does not define SCM semantics.
A screen is a meaningful destination, while a transition explains a supported move. Model a route parameter as part of the screen’s route contract rather than inventing a screen for every record. Separate a navigation link from authorization: a hidden button does not prove the backend denies access. Discovered routes can provide a useful starting inventory, but a human still needs to check the intended user journey and exceptional paths.
Alternatives and trade-offs
Section titled “Alternatives and trade-offs”Use a site map for a lightweight page inventory, a wireframe for layout, or a router’s source code for implementation details. USM explains the user’s goal and ACM expresses who may access the destination. None of these alone establishes all three concerns.
References
Section titled “References”- Mermaid’s diagram guide
- Learning with models — choose a practice workflow and interpret its results.
What SCM Captures
Section titled “What SCM Captures”- Screens – nodes representing pages, views, or routes in your application
- Navigation – directed edges representing how users move between screens
- Screen Properties – each screen links to a DDD aggregate, USM story, and CBRL requirements
- Route Parameters – dynamic segments and query parameters for each screen
SCM is inspired by structural GUI modeling tools like Octopus.do. It focuses on connectivity and architecture, not visual layout.
Relationships to Other Models
Section titled “Relationships to Other Models”- DDD – Each screen is linked to the aggregate it manages (e.g., the “Book Catalog” screen manages the
Bookaggregate) - USM – Each screen is linked to the user story it fulfills
- CBRL – Each screen references the requirements verified on that screen
- DSM – Screens can reference the tables whose data they display or modify
Next Steps
Section titled “Next Steps”- DDD Model to define the aggregates your screens manage
- USM Model to define stories your screens fulfill
- DSM Model to define the data layer your screens interact with
File format (JSON Schema)
Section titled “File format (JSON Schema)”The serialized SCM model (models/scm.json inside a .ctxbrew archive) is validated by a normative JSON Schema generated from ContextBrew’s source code. See the SCM file schema page — or print the schema anywhere with ctxbrew schema scm.
