Skip to content
Skills Library
Programming · Writing

arc42-chapter-06-runtime-view

/arc42-chapter-06-runtime-view

Best practices for creating arc42 Chapter 6 "Runtime View". Use when documenting runtime scenarios, creating sequence diagrams, or describing dynamic system behavior. Helps identify which scenarios to document, how to create effective sequence diagrams, and how to avoid common anti-patterns. Use for runtime views, sequence diagrams, runtime scenarios, lifecycle flows, and recovery behavior.

Repository
situate ↗
Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Best practices for creating arc42 Chapter 6 "Runtime View". Use when documenting runtime scenarios, creating sequence diagrams, or describing dynamic system behavior. Helps identify which scenarios to document, how to create effective sequence diagrams, and how to avoid common anti-patterns. Use for runtime views, sequence diagrams, runtime scenarios, lifecycle flows, and recovery behavior.

Triggers from the description

Runtime View
Original author description

Best practices for creating arc42 Chapter 6 "Runtime View". Use when documenting runtime scenarios, creating sequence diagrams, or describing dynamic system behavior. Helps identify which scenarios to document, how to create effective sequence diagrams, and how to avoid common anti-patterns. Use for runtime views, sequence diagrams, runtime scenarios, lifecycle flows, and recovery behavior.

How it works

  1. Overview
  2. Content Checklist
  3. How Many Scenarios?
  4. Scenario Selection Criteria
  5. Notation Options
  6. Best Practices for Sequence Diagrams
  7. Structure Template
  8. Example: Well-Structured Runtime View
  9. Common Pitfalls
  10. Review Checklist
Original SKILL.md headings · 349 lines, 1,544 words
SKILL.md preview
---
name: arc42-chapter-06-runtime-view
description: Best practices for creating arc42 Chapter 6 "Runtime View". Use when documenting runtime scenarios, creating sequence diagrams, or describing dynamic system behavior. Helps identify which scenarios to document, how to create effective sequence diagrams, and how to avoid common anti-patterns. Use for runtime views, sequence diagrams, runtime scenarios, lifecycle flows, and recovery behavior.
---

# Runtime view

The CTO selects scenarios that explain consequential behavior rather than routine framework operations. Read the corresponding requirements, components, and relevant implementation first.

For each scenario, identify its trigger, preconditions, participants, exchanged information, and observable outcome. Use a sequence diagram or concise ordered description. Internal participants must correspond to chapter 5; external actors and systems must agree with chapter 3.

Show ordering, concurrency, state changes, and ownership only to the depth needed to explain the design. Include failure and recovery behavior where it affects correctness or user trust: partial completion, retries, duplicate requests, interrupted work, and unavailable dependencies.

Distinguish verified runtime behavior from proposed flows. Do not invent retry guarantees or consistency semantics. Link important choices to decisions and quality scenarios, and validate diagrams against the same component names and boundaries used elsewhere.

Examples and template values below are hypothetical, not Situate requirements or implementation evidence. Use the repository's AsciiDoc structure and approved catalog targets; adapt formats without creating parallel specifications.

## Overview

The Runtime View (Chapter 6) describes the **dynamic behavior** of the system - how building blocks interact at runtime to fulfill specific tasks. Unlike the static Building Block View (Chapter 5), it focuses on behavior, interactions, and temporal sequences.

### Key Difference: Runtime View vs Building Block View

| Aspect        | Building Block View (Chapter 5)      | Runtime View (Chapter 6)             |
| ------------- | ------------------------------------ | ------------------------------------ |
| **Focus**     | Static structure, decomposition      | Dynamic behavior, interactions       |
| **Content**   | Components, interfaces, dependencies | Scenarios, sequences, workflows      |
| **Question**  | "What exists?"                       | "How does it work?"                  |
| **Viewpoint** | Structural/Static                    | Temporal/Dynamic                     |
| **Notation**  | Component diagrams, class diagrams   | Sequence diagrams, activity diagrams |

## Content Checklist

A complete Runtime View should cover scenarios from these areas:

- [ ] **Important Use Cases/Features**: How building blocks execute core functionality
- [ ] **Critical External Interfaces**: Interactions with users and neighboring systems
- [ ] **Operation & Administration**: Launch, startup, shutdown sequences
- [ ] **Error & Exception Scenarios**: Failure handling and recovery

## How Many Scenarios?

Start with a few representative scenarios, often three to seven. Add scenarios when distinct risks or lifecycle boundaries need explanation; there is no fixed maximum.

Runtime scenarios are time-consuming to create and maintain. Focus on:

1. **Architecturally relevant** scenarios (not every use case)
2. **Complex, risky, or interesting** interactions
3. **Critical quality goals** (performance, security, reliability)
4. **Volatile external interfaces**
5. **Hard-won design decisions** that need explanation

> **Important**: Document scenarios primarily to **design and discuss** building blocks, not just for documentation. Keep only the essential ones.

## Scenario Selection Criteria

Document scenarios that are:

| Criterion                      | Example                                      |
| ------------------------------ | -------------------------------------------- |
| **Critical for understanding** | Core business processes                      |
| **Quality-critical**           | Real-time processing, security checks        |
| **Risky**                      | Complex algorithms, new technologies         |
| **External interfaces**        | Critical or unstable third-party APIs        |
| **Design-challenging**         | Required significant architectural decisions |

**Do NOT document:**

- Simple CRUD operations
- Standard framework behavior
- Trivial data flow without interesting interactions
- Everything "just to be complete"

## Notation Options

### 1. Sequence Diagrams (Recommended)

**Best for**: Detailed interactions between building blocks

**Advantages**:

- Clear responsibility assignment
- Shows temporal sequence
- Direct mapping to Building Block View

**Tools**:

- **PlantUML** (recommended): Text-based, version-control friendly
- Mermaid: Markdown-integrated
- Draw.io: Visual editing
- Enterprise Architect: Full UML modeling

**PlantUML Example**:

```plantuml
@startuml
actor User
participant "Frontend" as FE
participant "API Gateway" as GW
participant "Order Service" as OS
participant "Payment Service" as PS
database "Database" as DB

User -> FE: Submit Order
FE -> GW: POST /orders
GW -> OS: createOrder()
OS -> DB: save(order)
OS -> PS: processPayment()
PS --> OS: paymentResult
OS --> GW: orderConfirmation
GW --> FE: 201 Created
FE --> User: Success Message
@enduml
```

### 2. Activity Diagrams with Swimlanes

**Best for**: Complex workflows with parallel activities

**Advantages**:

- Shows decision points and branches
- Swimlanes assign activities to building blocks
- Good for high-level process flows

### 3. Flowcharts

**Best for**: Simple decision logic

## Best Practices for Sequence Diagrams

### DO:

1. **Map to existing building blocks**
   - Internal lifelines correspond to Chapter 5; external actors and systems correspond to Chapter 3
   - Use consistent naming

2. **Focus on partial scenarios**
   - Start in the middle of complex processes
   - Cut out boring, standard parts
   - Highlight interesting/risky interactions

3. **Use appropriate abstraction level**
   - High-level: Component interactions
   - Medium: Service calls
   - Low-level: Only if stakeholders need implementation details

4. **Include activation bars**
   - Show when components are active/processing
   - Clarifies concurrent operations

5. **Add explanatory notes**
   - Preconditions, postconditions
   - Business rules being enforced
   - Alternative paths briefly mentioned

6. **Group related messages**
   - Use `alt/opt/loop/par` fragments for:
     - Alternative paths (`alt/else`)
     - Optional steps (`opt`)
     - Loops (`loop`)
     - Parallel execution (`par`)

### DON'T (Anti-Patterns):

1. **The "Everything Diagram"**
   - ❌ One diagram showing the entire system flow
   - ✅ Multiple focused diagrams for specific scenarios

2. **The "Message Flood"**
   - ❌ Dozens of messages without grouping
   - ✅ Group related messages, use references (`ref`)

3. **The "Wrong Abstraction"**
   - ❌ Method-level detail when component-level suffices
   - ❌ Component-level when algorithm detail is needed
   - ✅ Match abstraction to stakeholder needs

4. **The "Orphaned Scenario"**
   - ❌ Scenarios not traceable to building blocks
   - ✅ Internal participants map to Chapter 5 and external participants to Chapter 3

5. **The "Forever Diagram"**
   - ❌ Diagrams spanning multiple pages
   - ✅ Split into logical parts, use `ref` frames

6. **The "Over-Detailed"**
   - ❌ Every getter/setter shown
   - ❌ Framework internals depicted
   - ✅ Focus on architecturally significant interactions

## Structure Template

```markdown
## 6. Runtime View

### 6.1 [Scenario Name]

**Scope**: [What use case/feature this covers]

**Trigger**: [What starts this scenario]

**Participants**: [Internal building blocks from Chapter 5 and external actors/systems from Chapter 3]

**Sequence**:
[PlantUML or description]

**Key Interactions**:

1. [Step description]
2. [Step description]
   ...

**Error Handling**:

- [What happens when things go wrong]

### 6.2 [Next Scenario]

...
```

## Example: Well-Structured Runtime View

````markdown
## 6. Runtime View

### 6.1 Order Processing

**Scope**: Core order creation and payment flow

**Trigger**: Customer submits order via web interface

**Participants**: Web UI, Order Controller, Order Service, Payment Gateway, Order Repository

**Sequence**:

```plantuml
@startuml
actor Customer
participant "Web UI" as UI
participant "Order\nController" as OC
participant "Order\nService" as OS
participant "Payment\nGateway" as PG
participant "Order\nRepository" as OR

Customer -> UI: submit order
UI -> OC: POST /orders
OC -> OS: createOrder(orderData)

alt validation succeeds
    OS -> OR: save(order)
    OS -> PG: charge(paymentData)

    alt payment succeeds
        PG --> OS: success
        OS -> OR: updateStatus(CONFIRMED)
        OS --> OC: orderConfirmation
        OC --> UI: 201 Created
        UI --> Customer: success page
    else payment fails
        PG --> OS: failure
        OS -> OR: updateStatus(FAILED)
        OS --> OC: error
        OC --> UI: 402 Payment Required
        UI --> Customer: retry payment
    end
else validation fails
    OS --> OC: validationError
    OC --> UI: 400 Bad Request
    UI --> Customer: show errors
end
@enduml
```

**Key Design Decisions**:

- Synchronous payment processing for immediate feedback
- Order saved before payment to maintain audit trail
- A retryable charge needs a stable idempotency key and a provider contract that deduplicates it. The diagram omits this mechanism; document it before claiming duplicate-charge prevention.
- A timeout may leave payment outcome unknown. Distinguish that case from a definite rejection; reconcile uncertain charges before retrying.

### 6.2 System Startup

**Scope**: Application initialization sequence

**Trigger**: Container orchestrator starts service

**Participants**: [Listed...]

[...]
````

## Common Pitfalls

### 1. Documentation for Documentation's Sake

**Problem**: Creating scenarios because "arc42 requires Chapter 6"

**Solution**: Only document scenarios that help stakeholders understand or that helped you design

### 2. Static-Dynamic Mismatch

**Problem**: Runtime scenarios don't match building blocks in Chapter 5

**Solution**: Verify internal participants against Chapter 5 and external actors and systems against Chapter 3

### 3. Over-Specification

**Problem**: Documenting implementation details that change frequently

**Solution**: Stay at architectural level; implementation details belong in code comments

### 4. Under-Specification

**Problem**: Scenarios too vague to be useful

**Solution**: Include concrete message names, data flow direction, and key decisions

### 5. Ignoring Error Cases

**Problem**: Only documenting "happy path"

**Solution**: Include at least one error scenario for critical flows

## Review Checklist

Before finalizing your Runtime View:

- [ ] Internal participants map to Chapter 5 and external actors/systems to Chapter 3
- [ ] Scenario names are descriptive (not just "Scenario 1")
- [ ] At least one error/exception scenario included
- [ ] Abstraction level matches stakeholder needs
- [ ] PlantUML/textual diagrams are version-controlled
- [ ] Scenarios are numbered consistently
- [ ] Complex scenarios are split into logical parts
- [ ] Each scenario has a clear scope description

## Quick Reference

| When to Use            | Notation                     | Example             |
| ---------------------- | ---------------------------- | ------------------- |
| Component interactions | Sequence diagram             | Service calls       |
| Complex workflows      | Activity diagram + swimlanes | Multi-step process  |
| Simple decision logic  | Flowchart                    | Authorization check |
| High-level overview    | BPMN                         | Business process    |

## Further Reading

- arc42 Documentation: https://docs.arc42.org/section-6/
- PlantUML Sequence Diagrams: https://plantuml.com/sequence-diagram
- arc42 Tips by Keyword: https://docs.arc42.org/keywords/

Versions

The database has no other skills named arc42-chapter-06-runtime-view.

Database snapshot: 13.11.2026 · package version 28b6402f0873 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100arc42-chapter-03-context-scope
    Guide for creating arc42 Chapter 3 "Context and Scope" documentation. Use when documenting system boundaries, creating context diagrams, defining external interfaces, or distinguishing between business and technical context. Helps with scope definition, interface documentation,…
  • 100arc42-chapter-10-quality-requirements
    Create and refine arc42 Chapter 10 "Quality Requirements" documentation. Use when defining quality requirements, creating quality trees (ATAM), formulating quality scenarios, prioritizing quality attributes, or using ISO/IEC 25010 categories as discovery prompts. Helps with…
  • 100scenario-architect
    Model business scenarios as detailed sequence diagrams with API calls. Use when architecture exists in 3-technical-plan/1-architecture/ but 3-technical-plan/2-scenario-implementation/ is empty. Scenarios must be complete user action paths, NOT single API calls.
  • 100complete-sequence-diagrams
    Use to add Mermaid sequenceDiagram blocks to the SAD's runtime view (sad.md §6) — one per critical flow, showing how a request moves between generic participants with happy + error paths. Triggers on "complete sequences for {slug}", "sequence diagram for {slug}", "draw the…
  • 100diagrams
    Use when creating technical diagrams as code. Covers Mermaid for architecture, sequence, and flow diagrams, choosing the right diagram type, and keeping diagrams accurate as the system changes. Trigger on "draw an architecture diagram", "make a mermaid sequence diagram",…
  • 90sequence-flow
    Use when the user wants to see how a request, command or feature actually runs: call order, "what happens when X", runtime flow, or sequence diagrams. Traces real calls through the code and writes docs/codemap/sequence-flow.md.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.