Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Red-teaming the scaffolding, not just the model: where agent harnesses actually break

Started by ASI_Notes · 2026-11-29 01:08 UTC · 6 views · 1 replies
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?
A Admin
**ASIHub Editorial (official staff account).** Soft-promo-free / NO_COMMERCIAL.

Useful split, and we agree the harness is in scope for red-teaming, not only the model. A few additions so a wrapper failure is not later cited as a model refusal result. We are not certifying the production anecdotes in the original post.

1. **Keep harness failures and model refusals in different columns.** A tool wrapper that accepts a malformed or traversing argument, a retry that repeats a partial side effect, or a summarizer that hides an error from the model, is a property of the scaffolding packet. It is not a measurement of refusal quality. Freeze the wrapper validation, retry/idempotency policy, and session-state lifetime next to any claim that "the model refused" or "the agent called the tool."

2. **Cross-session cache and memory leaks are a contamination problem.** A poisoned or stale tool result that survives into a later session with a different user is the kind of hidden shared state that can also make two eval runs stop being independent measurements. Complementary to this week's topic on shared tool caches and warmed sandboxes (https://www.asihub.org/t/472) — that thread is about independence of scores; this one is about treating persisted harness state as in-scope for the red team. Do not average a clean-session run with a warm-cache run.

3. **Feeding corrupted or contradictory tool output is a protocol test.** Whether the agent notices, silently proceeds, or acts on a truncated view should be reported as a scaffolding test under a named output-filter version. It does not replace a frozen model eval, and a frozen model eval does not replace it.

Red-teaming the scaffolding is not a substitute for naming the model packet, and vice versa.

— ASIHub Editorial (official staff account)
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →