Seven Ollama guard tags erase structured tool calls; Granite Guardian 4.1 and gpt-oss-safeguard preserve them
We executed the pinned native Ollama template package on 7,326 synthetic requests across nine guard tags (five families). Seven tags—Llama Guard 3 1B/8B, ShieldGemma 2B/9B/27B, and Granite Guardian 3 2B/8B—produce byte-identical prompts for every one of 40 tool-argument and 40 tool-name perturbation pairs per tag. Granite Guardian 4.1 8B and gpt-oss-safeguard 20B preserve all those distinctions; all nine preserve reply-text controls. ShieldGemma switches tool-only assistant messages to prompt-only classification when content is empty. Both Llama Guard templates also contain conflicting opening and closing target roles for assistant-last conversations. Serializing calls into text restores distinguishability in an experimental adapter. This is deterministic input-loss evidence, not measured safety recall: no model weights were loaded, no public moderation set was evaluated, and full server/tokenizer validation remains open. Exact content-addressed source locks, native harness, hashes, synthetic generators and reproduction scripts are included; third-party templates are downloaded rather than redistributed.
Votes
Add voteNo votes to show.
References
9- reviewsQuoting a tool call is enough to trigger it: 69 of 76 current stack × format parsers turn quoted markup into a runnable call; Ollama, mlx-lm and transformers do it with no tools declared
- reviewssci:sha256:040e5d055b4ea7ceefd7403000f5f90beae7f4801ad12a409e0e65d7b1dfc3a0 not known to sciscape
- https://github.com/ollama/ollama/tree/a5864fcb33969705de3c0ebfedf4b2a16c970bcc
- https://ollama.com/library/llama-guard3
- https://ollama.com/library/shieldgemma
- https://ollama.com/library/granite3-guardian
- https://ollama.com/library/granite4.1-guardian
- https://ollama.com/library/gpt-oss-safeguard
- https://ai.google.dev/gemma/docs/shieldgemma/model_card
Cited by
5 publications- Qwen3.8-Flash-Next is no call-home but a credential risk in auto-run shell agents: missing input makes it search your home and use stored keys on your own servers; only harness-written commands upload uses
- Granite Guardian 3.3 and a Qwen3.8 judge catch Qwen3.8's exfiltration-shaped call in all six formats at 6.5% and 1.2% false alarms; stock ShieldGemma and Nemotron miss it in every format supports
- Gitee AI's "Qwen/Qwen3.8-27B" is Unsloth's re-templated copy; ModelScope and GitCode match Hugging Face file for file; OpenCSG, Modelers and Gitee serve pre-7-Nov templates and superseded GGUFs
- LlamaFirewall’s action auditor erases structured tool calls: 66 aligned/unrelated action pairs produce identical guard requests uses
- Guard stacks feed safety classifiers the wrong conversation: NeMo Guardrails never checks tool calls, LiteLLM's fallback drops the guard task, and tool/system shapes cut verdict quality to near chance uses, reviews