Mountain/ApplicationState/Internal/Recovery/RecoverState.rs
1
2//! # RecoverState - Internal Recovery Utilities
3//!
4//! Three composable primitives the recovery flow uses to clean up
5//! corrupted state without taking the runtime down:
6//!
7//! Layout (one export per file, file name = identity):
8//! - `ValidateAndCleanState::Fn` - predicate-driven map filter with
9//! warn-on-removal logging.
10//! - `SafeStateOperationWithTimeout::Fn` - off-thread blocking op with a hard
11//! timeout (the worker is allowed to finish in the background; only the
12//! receiver gives up).
13//! - `RecoverStateWithBackoff::Fn` - async retry with exponential backoff (100
14//! ms, doubled per failure).
15//!
16//! ## Status
17//!
18//! Zero callers as of 2026-05-02. Wire into the
19//! `ApplicationState/Internal/Recovery` flow once the recovery
20//! triggers are formalised.
21
22pub mod RecoverStateWithBackoff;
23
24pub mod SafeStateOperationWithTimeout;
25
26pub mod ValidateAndCleanState;