Coverage Summary for Class: RegionState (core.state)
| Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| RegionState |
100%
(1/1)
|
100%
(1/1)
|
|
100%
(2/2)
|
100%
(7/7)
|
// FILE: core/src/main/kotlin/core/state/RegionState.kt
package core.state
/**
* Region simulation state.
*
* ## Contract
* Holds world/region parameters that affect content scaling and systemic pressure (e.g., threat scaling).
*
* ## Invariants
* - [stability] is expected to be bounded.
* Current PoC uses 0..100 and clamps updates into this range.
*
* ## Determinism
* Pure data container. Deterministic evolution requires deterministic reducer logic.
*
* @property stability Regional stability score (expected range 0..100).
*/
data class RegionState(
val stability: Int
)