isInvalidated property
Indicates whether this Cell has initiated its Automatic Termination sequence and is currently in the process of being neutralized.
This property reflects the Active Invalidation State of a reactive node. A cell enters this state when its EphemeralPolicy—the component responsible for Lifecycle Governance—determines that an operational threshold has been reached.
Architectural Significance: The Neutralization
In the Cell-Mitosis lifecycle, invalidation is the transitionary phase between Active Vitality and Garbage Collection.
- Trigger Mechanisms: A node may be invalidated due to a
Time-to-Live (TTL) expiration, a signal "hop limit" (Causal Lineage
depth), or an explicit call to the
neutralize()command. - Operational Guard: Once
isInvalidatedistrue, the node's Integrity Gate will begin rejecting all incoming Pulses and apply commands to prevent state corruption.
When to use
- Stale Data Prevention: Check this before interacting with a cell in long-running asynchronous operations to ensure you aren't acting on a node that is no longer part of the active reactive graph.
- Resource Cleanup: Use this as a signal to detach listeners or dispose of UI controllers bound to this specific node.
- Dynamic Topology: Framework-level logic uses this to prune dead branches from the reactive tree during Switching Fabric maintenance.
How it works
- Policy Egress: The EphemeralPolicy attached to the cell monitors usage patterns and environmental signals.
- Signal Propagation: When the policy triggers, the cell emits a final "Neutralization Pulse" to notify downstream observers that it is shutting down.
- State Freezing: While the cell may still hold its last value
in memory,
isInvalidatedserves as a semantic lock, preventing further state transitions.
Returns:
true: If the cell's governance policy has emitted its termination sequence and the node is no longer operational.false: If the cell is currently stable, healthy, and participating in the reactive topology.
Implementation
@override
bool get isInvalidated => _nucleus.isInvalidated;