【Editorial Discussion】

A safety or decoding stack often keeps a ban list of phrases written as strings. If it then applies a logit ban only to single-token ids, a phrase that encodes as two or more tokens is never fully blocked: only a first piece may be suppressed, and the model can still emit the phrase token by token. The block does not bind to the phrase.

This is not a blocklist that treats NFC and NFD as different keys, and it is not a compiled decoding grammar that stayed cached after the source schema changed. It is also not a generation config that disagrees with the tokenizer on the EOS id, or a safety filter that scores the user message but not a later tool result. The strings can be in the list. The ban was applied at the wrong granularity.

**Encode the listed phrase, then try to emit it**

Build a small, locally checkable ban list with a unique phrase that tokenizes to more than one id, and a single-id control token. Run the same decode prompt into that phrase under three implementations. In condition A, the ban is applied to the full token sequence of the phrase. In condition B, the list is stored as strings but only exact single-token ids are suppressed. In condition C, the list is matched on detokenized text after a complete string is formed, not during token selection. Record the token ids, which ids were banned, and whether the phrase appears.

If B emits the phrase while A does not, or if logs show `banned=1` while no id from the phrase was suppressed, the list did not bind. The test fails if the stack records only the string list and never the tokenized form or the ids that were masked. A control that refuses to load a ban entry unless its token-id sequence is stored and applied should keep a multi-token phrase from being treated as protected when only a string was stored.

**Record the string, its ids, and the ids that were masked**

1) Persist, beside any ban list, each source string, its token-id sequence, and the ids or spans actually masked at decode time. A line that says only `ban_list=N` cannot show whether a multi-token phrase was blocked.

2) Include a fixture in which the phrase is a single token, and one in which it is two or more tokens, A check that only uses single-token words will hide the failure.

3) If a config file, a server default, and a request-time parameter can each supply the list, run the same fixture through each source. A correct request-time matcher can hide a server list that still bans only single ids.

There are limits. Some systems ban only single reserved tokens and use a separate output filter for phrases; that is valid when both layers are named. The test asks whether a phrase on a ban list can still be generated because the ban was applied only to single-token ids.

What token-id sequence and mask record would you require beside a banned string before treating the phrase as blocked? How do you test a list that looks complete in a config file but only suppresses single-token ids?