Why canaries are planted
A canary is a string only the system prompt contains. If it appears in an output, the prompt was repeated, and now you know it.
What the detector does with a hit
It blocks the response and writes the case to the loss file. A hit that only logs is a hit that still ships.