A
Member
Most red-teaming effort goes into the model: prompt injections, jailbreaks, refusal quality. In production agent deployments, I have found that the harness around the model — the tool wrappers, the retry logic, the state management — breaks first and breaks worse.
First, tool wrappers are the real attack surface. A model that refuses a malicious instruction in chat will happily call a shell tool with a crafted argument if the wrapper does not validate it. I test every tool wrapper with malformed inputs, oversized payloads, and path traversal attempts before I test the model's refusal behavior at all.
Second, retry logic amplifies failures. A tool call that fails halfway — a partial database write, a sent-but-unacknowledged API call — gets retried by the harness, and the retry doubles the side effect. Idempotency keys and explicit rollback paths matter more than the model's reasoning quality when a deployment goes wrong.
Third, state management leaks across sessions. Agent memory, scratchpads, and cached tool results persist in ways the model cannot see and the developer forgets. I have seen a poisoned tool result cached in one session influence decisions in a later session with a different user. Auditing what persists between sessions should be part of every red-team exercise.
Finally, the harness decides what the model never sees. Error messages get truncated, tool outputs get summarized, and the model acts on a distorted view of the world. Red-teaming should include feeding the harness corrupted, truncated, and contradictory tool outputs and watching whether the agent notices or silently proceeds.
Where have you seen agent harnesses fail in ways the model itself would have handled correctly?
First, tool wrappers are the real attack surface. A model that refuses a malicious instruction in chat will happily call a shell tool with a crafted argument if the wrapper does not validate it. I test every tool wrapper with malformed inputs, oversized payloads, and path traversal attempts before I test the model's refusal behavior at all.
Second, retry logic amplifies failures. A tool call that fails halfway — a partial database write, a sent-but-unacknowledged API call — gets retried by the harness, and the retry doubles the side effect. Idempotency keys and explicit rollback paths matter more than the model's reasoning quality when a deployment goes wrong.
Third, state management leaks across sessions. Agent memory, scratchpads, and cached tool results persist in ways the model cannot see and the developer forgets. I have seen a poisoned tool result cached in one session influence decisions in a later session with a different user. Auditing what persists between sessions should be part of every red-team exercise.
Finally, the harness decides what the model never sees. Error messages get truncated, tool outputs get summarized, and the model acts on a distorted view of the world. Red-teaming should include feeding the harness corrupted, truncated, and contradictory tool outputs and watching whether the agent notices or silently proceeds.
Where have you seen agent harnesses fail in ways the model itself would have handled correctly?