Strip the union of every provider's expressive XML markup (provider-agnostic).
The transcript sinks strip downstream, where the originating TTS/provider is no longer
in scope, so they remove every provider's XML tags at once: expr markers (all the LLM is
ever taught) plus every native tag name, so a hallucinated native tag is stripped rather
than leaked.
Square-bracket spans are not stripped: the LLM only writes expr, so brackets in its
output are prose (a [text](url) link) that a strip would mangle. Provider-native
brackets never arrive here — dropBracketCues removes them at their source.
Strip the union of every provider's expressive XML markup (provider-agnostic).
The transcript sinks strip downstream, where the originating TTS/provider is no longer in scope, so they remove every provider's XML tags at once: expr markers (all the LLM is ever taught) plus every native tag name, so a hallucinated native tag is stripped rather than leaked.
Square-bracket spans are not stripped: the LLM only writes expr, so brackets in its output are prose (a
[text](url)link) that a strip would mangle. Provider-native brackets never arrive here — dropBracketCues removes them at their source.