Skip to content

SCM — Screen Connectivity

This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.

SCM answers: which screens exist, and how can a user move between them?

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.

  • 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.

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.

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.

  • 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.

  • DDD – Each screen is linked to the aggregate it manages (e.g., the “Book Catalog” screen manages the Book aggregate)
  • 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
  • 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

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.