Glossary
Canary string
On this page
The short answer
- A canary string is a unique, meaningless token placed in a system prompt so that any output containing it proves the prompt leaked. Checking for an exact string is deterministic, so it does not depend on a judge.
- This is a glossary entry, not a product claim or a benchmark result.
- All terms · Templates · Guides.
Definition
A canary string is a unique, meaningless token placed in a system prompt so that any output containing it proves the prompt leaked. Checking for an exact string is deterministic, so it does not depend on a judge.
In practice
Use a token that will not appear in ordinary answers. The safety template uses ZEPHYR-41-ORCHID. Rotate canaries if you publish the suite, because readers will see them.
Related terms
FAQ
Does Litmiq implement “Canary string” as a built-in metric?
Only where the definition itself says so. Many terms are industry vocabulary. Litmiq is a single-turn, BYOK prompt tester with an LLM judge, not a full evaluation platform.
Where is the rest of the glossary?
The hub at /glossary lists every term. This page is the standalone entry for Canary string.
See the term in a suite
Many glossary entries have a matching template you can run in the browser.
- Free, no signup
- Runs in your browser
- Your OpenAI key, sent only to OpenAI