Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/ApplicationState/Internal/Recovery/
RecoverState.rs

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