Cheap shape check: does this text look like a standard unified diff
(diff --git header, or a paired --- /+++ file-header block)?
Used to produce actionable error guidance when a model submits a
git-style diff to apply_patch (which requires the *** Begin Patch
envelope). VT Code patch format never uses --- /+++ markers, so
this will not false-positive on valid VTE patches.
Cheap shape check: does this text begin with the VT Code patch envelope
(*** Begin Patch) or a bare file-operation header (*** Update File:,
*** Add File:, *** Delete File:)? Used by tool routing and
source-field selection to distinguish a real patch from raw file contents
or a unified diff. Intentionally cheap (prefix-only) — it does not
validate the full patch.