pub fn record_intent(
dir: &Path,
intent: EnrollmentIntent,
) -> Result<AppendOutcome, JournalError>Expand description
Convenience for the provisioning hooks: append one intent through the
process-global cached writer for dir, serialized against every other
in-process caller. The cached instance keeps its replay/conflict indexes
in memory (no re-read per call); durability across restarts still comes
from the journal file itself, re-validated on the first open.