Patch plans exist to convert a natural-language edit request into a deterministic operation list. They are not a full programming language.
replace_textfill_anchorinsert_paragraph_afterinsert_paragraph_beforeremove_paragraphclone_table_rowfill_table_rowstrip_direct_formattingset_paragraph_styleset_run_stylemerge_runsfix_element_orderanchorheading_textparagraph_text_exactparagraph_indextable_anchorxpath (advanced, not default)If the operation implies section topology changes, numbering rebuilds, header/footer graph edits, or
relationship rewrites, the patch plan should escalate from X to D or S.