Skip to main content

apply_validated_patch

Function apply_validated_patch 

Source
pub fn apply_validated_patch(
    current: &MissionConfig,
    patch: &Value,
) -> Result<MissionConfig>
Expand description

Apply a partial JSON patch to an effective mission config and validate the merged result exactly as the engine would before accepting it.

Submission surfaces use this before enqueueing config-change, while the engine repeats the check when it drains the command. The second check is still required because another queued patch may win the race in between.

This is the OPERATOR entry point (every caller of it is a human-driven, authorized surface). The run loop’s drain path uses apply_validated_patch_from with PatchSource::Inbox.