Test whether a markdown document contains an H2-H4 heading whose visible text (after stripping a single optional leading emoji + whitespace) matches the given pattern. Anchoring to a real heading prevents the loose "anywhere in the file" matches that earlier versions of the methodology-reflection gate allowed.
Test whether a markdown document contains an H2-H4 heading whose visible text (after stripping a single optional leading emoji + whitespace) matches the given pattern. Anchoring to a real heading prevents the loose "anywhere in the file" matches that earlier versions of the methodology-reflection gate allowed.