Skip to main content

Module apply

Module apply 

Source
Expand description

Execute exactly one stored plan, or refuse because the world moved.

An apply that recomputed its intent from the tree could act on something the operator never saw. So it reads the plan that was reviewed, re-observes the target under the exclusive lock, recomputes the fingerprint, and compares. A difference is a refusal that names what moved, never a silent re-plan.

The execution is the transaction the skill installer already proved: stage beside each destination, journal before the first replacement, replace one file at a time, write the record last. A run that does not finish leaves a journal the next invocation resolves before it plans anything new.

Structs§

Request
What an apply is given.

Functions§

apply
Execute one stored plan.
moved
Every semantic input that moved between the plan and the apply.