Skip to main content

Module state

Module state 

Source
Expand description

State management for Humanize loops.

This module provides parsing and serialization for the state.md files used to track RLCR and PR loop progress.

IMPORTANT: This schema must remain compatible with the historical shell-era state contract so existing loop directories continue to parse correctly.

Structs§

State
Represents the state of an RLCR or PR loop.

Enums§

StateError
Errors that can occur when working with state.

Functions§

find_active_loop
Find the active RLCR loop directory.
has_pending_session
Check if a loop has a pending session handshake.
is_finalize_phase
Check if a loop is in finalize phase.
resolve_active_state_file
Resolve the active state file in a loop directory.
resolve_any_state_file
Resolve any state file (active or terminal) in a loop directory.