pub async fn prepare_delete(
runtime: &KhiveRuntime,
token: &NamespaceToken,
args: &Value,
expected_kind: Option<AtomicDeleteKind>,
) -> RuntimeResult<AtomicOpPlan>Expand description
expected_kind: None when the caller omitted kind (no check, parity
with canonical’s own optional discriminator); Some(_) enforces an
exact-parity mismatch check against the resolved record’s actual
substrate/specific kind, mirroring handle_delete’s
entity.kind != *expected / note.kind != *expected checks.