pub fn malformed_agent_comment_reason(doc: &str) -> Option<String>Expand description
Detect agent-looking HTML comment markers that were truncated before their
same-line --> terminator. The normal parser only sees complete comments,
so a CRDT/editor split like <!-- /agent:exchange -- can otherwise be
skipped or consume a later unrelated terminator.