Module rehydration

Module rehydration 

Source
Expand description

Snapshot rehydration — effect emission rules for state restored from a CP-supplied HostRolloutSnapshot (RFC-0005 §9.5 / LIFT #3).

LIFT #4: bootstrap-applied state must re-prime worker channels via the same Effect contract as ordinary transitions. The agent’s reducer caches HostRolloutState directly from the snapshot (the canonical state lives on CP, not in an event ladder), but every worker that re-primes on a state change — probe runners, activation drainer, soak detector — must learn about the rehydration through an Effect.

Adding a new worker re-priming need lands here (one match arm), not in every bootstrap entry point.

Functions§

rehydration_effects
Effects to emit immediately after applying a HostRolloutSnapshot to the agent’s in-memory state. Workers consume these to refresh any cached per-rollout state seeded by prior process incarnations.