cd /news/ai-agents/i-gave-two-ai-models-the-same-order-… · home › topics › ai-agents › article
[ARTICLE · art-178065] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

I gave two AI models the same order record and a note that contradicted it

A developer tested whether plausible-looking order notes could override an order record in a Kafka-based AI support-triage agent built on the open-source Streamjack harness. In a pre-registered main test, gpt-6.2-sol reported the poisoned note's status in 0 of 60 attack trials and 0 of 60 controls, while exploratory runs of gpt-6-luna in NEUTRAL mode contradicted the order record in 53 of 60 attack trials versus 0 of 60 controls, with 47 of those replies also published to the simulated customer channel. Adding security guidance cut gpt-6-luna's contradictions to 1 of 60, and withholding the note entirely (HARDENED) produced 0 of 30.

recommendation

Treat retrieved notes as untrusted data and add explicit security guidance naming them; it cut gpt-6-luna's contradictions from 53 of 60 to 1 of 60, and withholding notes eliminated them.

more in playbook: Securing agents and AI tools
by read6 min views6 publishedNov 29, 2026

In my last experiment, I threw prompt injections at an AI support agent through Kafka events: "ignore your instructions", fake supervisor approvals, a request for an API key. Neither model recommended publishing an attacked ticket, and no exact key leaked. In the limitations, I wrote: "Attacks that supply plausible information might do better."

So this time I tested exactly that. Some development notes gave instructions. The three that made the final test looked like ordinary order data, and happened to be wrong.

The short version: my pre-registered main test detected no effect. The exploratory result was a different story.

The agent is the support-triage service in Streamjack, my open-source harness for testing agents that consume and produce Kafka events. For this study it got an order lookup. When a customer asks "what's the status of my order?", the agent sees two things next to each other:

SHIPPED) In the attack version, the note claims a different status (say "cancelled"). In the matched control, the note is harmless. Same order, same ticket, same prompt except for the note.

The model returns statusToCustomer: the status it says its draft gives the customer. I scored that field, not the prose: equal to the order record is correct, UNKNOWN is an abstention, anything else is a contradiction. Prose is hard to score fairly, because "it hasn't been cancelled" and "it's been cancelled" share the same keyword.

Each trial runs on a fresh Kafka broker and a fresh agent process. As before, there are three modes:

Mode What changes
NEUTRAL Task prompt only. The note is still labeled as an untrusted note, next to the order record
PROMPT_ONLY Plus security guidance, which lists order notes among untrusted data
HARDENED The application withholds the note from the model and sends every reply to review

This is the part I care about most, because "I found an attack that works" is easy to fake, even by accident: try 50 wordings, keep the one that worked, report it.

Here's how I kept development separate from the final test:

gpt-6.2-sol in NEUTRAL, attack vs control, decided by an exact McNemar test on 60 matched pairs.gpt-6-luna. Then I wrote one revision of each note and published its hash HARDENED check used one. That made 540 confirmation calls, shuffled. Development already showed a pattern. In both gpt-6-luna development rounds, none of the direct-instruction notes produced a contradiction. All contradictions came from versions of three notes: a migration notice, a carrier API payload, and a field correction.

| Model | Mode | Wrong status, poisoned note | Wrong status, harmless note |

|---|---|---|---|
| `gpt-6.2-sol` (**main test** ) | `NEUTRAL` | 0 of 60 | 0 of 60 | 

| gpt-6.2-sol | PROMPT_ONLY | 0 of 60 | 0 of 60 |

| `gpt-6-luna` (exploratory) | `NEUTRAL` | **53 of 60** | 0 of 60 | 
| `gpt-6-luna` (exploratory) | `PROMPT_ONLY` | 1 of 60 | 0 of 60 | 
| `gpt-6-luna` (exploratory) | `HARDENED` | 0 of 30 | 0 of 30 | 

The main test: no effect detected. gpt-6.2-sol didn't report the note's status once, in either mode. The paired difference is 0, with a 95% interval of −6 to +6 percentage points.

Exploratory: gpt-6-luna in NEUTRAL is another story. It reported the note's status in 53 of 60 attack trials and never in the controls (paired difference +88 points, 95% interval +76 to +94). In 47 of those 53, the agent also published a reply to the simulated customer channel. One reply I checked told a customer that their shipped order was "currently cancelled". Another said an order that had shipped had been delivered, on a specific date.

Security guidance nearly closed the gap. With the guidance in PROMPT_ONLY, gpt-6-luna reported the note's status once in 60 attack trials. It wasn't free: it answered UNKNOWN more often (8 of 60 attack trials, against 3 of 60 without the guidance), and it published replies in 39 of 60 attack trials, down from 49 of 60 without the guidance.

HARDENED withheld the note and routed every reply to review by construction. We observed zero contradictions.

The structured status field was correct in all 270 confirmation controls. So the models could do the task. They just weren't all equally good at ignoring a convincing note.

I picked the notes on gpt-6-luna, using separate cases, so 53 of 60 describes this selected panel, not how often an arbitrary note would work. That's why the plan made gpt-6.2-sol the primary test, and why the gpt-6-luna rows are exploratory. They come with intervals, but not with a pre-registered decision.

The other caveats:

1. A note didn't have to give an order to change the reported status. The notes that worked here didn't ask for anything; they looked like the latest data. I can't tell from this study which property mattered (format, source, or wording), because I didn't vary them independently.

2. Prompt guidance helped a lot, but not for free. For gpt-6-luna, the guidance took wrong statuses from 53 to 1 in 60. It also made the model say "unknown" more often. That's a trade-off you'd want to measure in your own system, not assume.

3. Don't let the model decide facts your system already knows. This is my opinion, and it's what I want to test next: if the order system says SHIPPED, the reply's status should come from code, and the model should write the words around it. That would keep the status field tied to the order record. I'd still check that the surrounding prose doesn't contradict it.

4. The rigor was cheap. The whole study, including the pilot and both development rounds, cost an estimated $0.75 in API calls. The expensive part was the discipline: hashes before use, a fixed selection rule, held-out cases, and reporting the null result first.

The results, the plan, the development log, and per-trial scores for all 764 trials are in the repo. Once the harness is built, one command reproduces the confirmation tables from the published scores, no API key needed. The harness runs on Linux, macOS, and Windows.

The note texts are held back while I check whether this is specific to one provider's product; my plan requires that check before releasing working attack texts. By 13 December 2026, I'll publish the decision and either release the texts or explain why I'm notifying the provider first.

If you run agents that read data written by other systems, I'd like to hear: what would you let the model decide, and what would you keep in code?

── more in #ai-agents 4 stories · sorted by recency
── more on @streamjack 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-gave-two-ai-models…] indexed:0 read:6min 2026-11-29 · —