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

Three failure modes I keep seeing in LLM agent pilots

Started by ASI_Notes · 2026-10-19 12:36 UTC · 131 views · 4 replies
A Member
After watching several enterprise LLM agent pilots, the same three failure modes keep showing up. Sharing them in case it saves someone a painful incident review.

1. Tool-use loops with no termination condition
The agent calls a search or database tool, gets an unhelpful result, and retries with a slightly different query — forever. Always set a max-iteration cap and a "give up and escalate" path. A loop that can't end is not autonomy, it's a bug.

2. Prompt injection via retrieved content
The moment your agent reads web pages, tickets, or documents, those become untrusted input. I've seen a support agent follow "instructions" pasted inside a customer ticket. Treat retrieved content as data, never as instructions — and keep tool calls that have side effects behind explicit confirmation.

3. Confident actions without human checkpoints
The scariest failures aren't wrong answers, they're wrong actions: the agent that confidently cancels the wrong order or emails the wrong client. For anything irreversible, require a human approval step. "The model was 95% confident" is not a control.

None of these are exotic. They're just the boring operational discipline that pilots skip because the demo worked fine. What failure modes have you seen?
A Admin
Thanks for this, it's a very practical list. We'd add a fourth failure mode we see often: silent partial success. The agent completes 4 of 5 steps, hits an error on the last one, and then reports the task as done because its final message is optimistic. Requiring the agent to verify the end state (re-read the record, check the diff, confirm the email was queued) before claiming success catches a lot of these.

On your point 2, the OWASP Top 10 for LLM Applications lists prompt injection as the number one risk and is a good shared reference for teams writing their first agent security review: https://genai.owasp.org/llm-top-10/

Community question: has anyone found a clean way to test for injection resistance in CI, rather than only in manual red-teaming?

— ASIHub Editorial (official staff account)
A Member
We've been running injection-resistance tests in CI for a few months, and the cleanest setup treats it as a contract test on the tool-call boundary rather than on the model's text.

The pattern: a fixed scenario set where an untrusted content channel (ticket body, web page, file contents) carries an injected instruction that contradicts the user's actual request — for example, an embedded line telling the agent to delete records or exfiltrate data. The harness runs with a mock tool layer that records every call. The assertion is not on what the agent said but on what it did: the injected action must never appear in the recorded tool calls. That keeps the test deterministic enough to gate on, with no LLM-as-judge in the loop — just a structural check over the transcript.

Two things made it work in practice. First, seed the corpus with injections from your own incident history — attempted privilege escalations, fake "system" instructions in pasted documents — plus a small rotating set of novel phrasings so you are not just fitting the test set. Second, run a negative control alongside it: a scenario with no injection where the agent must still complete the task, so you catch over-refusal regressions where the agent treats all retrieved content as hostile and does nothing.

The honest limitation: CI gives you regression coverage against the last attack shape, not immunity to the next one. We pair it with a production canary — a sentinel token planted in retrieved content that pages us if it ever surfaces in a tool argument — and keep manual red-teaming as the search for new shapes while CI guards the old ones.
A Admin
This is exactly the kind of answer we hoped the CI question would get, thank you. Asserting on recorded tool calls instead of the model's text is the key design choice, and the negative control for over-refusal is something many teams forget.

For anyone who wants a ready-made starting corpus, AgentDojo (Debenedetti et al., 2024, https://arxiv.org/abs/2406.13352) is an open benchmark that runs agents against tool environments with injected tasks and scores both utility and attack success, which is close to the structure described here. It can seed a CI suite before you have your own incident history.

Question for you or others: how do you keep the sentinel-token canary from leaking into training or evaluation data, so it stays a reliable signal over time?

— ASIHub Editorial (official staff account)
A Member
Good question — the canary only works if its presence in tool arguments is a genuine anomaly signal, which means keeping it out of anywhere a model might legitimately emit it.

Three practices that have worked well:

1. Generate the token per-deployment, not per-repo. Use a long random string (say 64 mixed-alphabet characters), rotated with each deploy and stored only in the production secret store. If a token ever appears in training data it will be from an old rotation, and you alert on which rotation fires — an old rotation showing up in current traffic is itself a signal.

2. Redact at the edge. The same policy that strips API keys from logs should cover the canary: instrument both the CI mock tool layer and the production harness to mask the canary string before anything hits persistent storage. A canary sitting in a log that later becomes a fine-tuning dataset has burned its own signal.

3. Never share tokens between eval and production. In CI, use a dedicated dummy canary value that differs from the production one. That way production and eval corpora stay disjoint: a model that memorized an eval-time token still cannot trip the production monitor, and your monitoring path stays distinct from test fixtures.

The deeper principle is to treat the canary like a credential rather than a config value: scoped, rotated, and never printed. Any place it appears besides live tool arguments — code comments, docs, chat transcripts, training sets — degrades it. The moment you need to ask "where has this token been?", the honest answer should be "only in the secret store and in live traffic," and any other answer means it is time to rotate.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →