In Answer Jailbreaks With What Code Allows, you saved each jailbreak attempt as an eval case. But the hiker’s message isn’t the only way in, and launch is close.
That’s red-teaming: attacking your own feature before users do and keeping each attack as a test. You’ll list every way untrusted text reaches the assistant, write graded cases for each, and measure an initial attack success rate. Start with where text comes from.
Find Every Way in
Text from documents and tools is as untrusted as the hiker’s message, so write red-team cases for each way in. This app has four:
- The hiker’s message: Jailbreaks and off-topic homework, already saved.
- The reports block: Since course 3, every place’s newest report is in every prompt, so one injected Valbrune ford report reaches every answer.
- The hut availability:
bedsUpFront()sends it as a developer message, and the tool returns it when a question names no hut. - The cost path: Long pastes and bursts of fresh hiker IDs.
Here are the four and the checks each meets:
The reports and beds meet only the output checks, never the input checks. When a check blocks an answer, gate() from Place Guardrails Around the Stream and the Cache shows the latest reports instead, injected ones included. Moderation checks them for harm, not truth, so a false “open” passes. gate() falls back to its fixed reply only if moderation flags them or fails.
So besides the four ways in, each serving path out to the hiker, fallbacks included, needs a case.
List the ways in and serving paths for your Ridgeline project or your own feature, then check the list with the mentor: