architecture/concurrency-immutability

concurrency immutability Shipped

What this lens looks for

Default to immutable values; introduce mutability only where necessary; prefer value types over reference types; contain mutation behind clear boundaries; Kotlin: val/data class/StateFlow; TypeScript: const/useState; C#: readonly/record/ImmutableList

What its verifier checks

Shared data structures are immutable by default; mutable state contained behind StateFlow/ObservableObject/thread-safe wrappers; C# DTOs use record types; no mutable shared fields accessed from multiple concurrent contexts without synchronization