Skip to main content

attach_annotations

Function attach_annotations 

Source
pub fn attach_annotations(
    plan: EditPlan,
    annotations: &PlanAnnotations,
) -> Result<EditPlan, PlanError>
Expand description

Attaches typed evidence to a legacy edit plan without overwriting fields.

The PlanErrorCode::ExtensionConflict guard below compares against the plan’s existing extensions. On a plan decoded through crate::weavatrix_edit::DeclaredEditPlan that map is empty, so the guard cannot fire and a genuinely colliding wire document is accepted with its original members already gone.