If your agent can delete user data, your prompt isn’t a prompt, it’s a contract
dev.to·23h·
Discuss: DEV
🤖AI Coding Tools
Preview
Report Post

Most agent demos look great… until the agent touches something irreversible.

A DSAR agent (GDPR/CCPA: export my data / delete my data) is the perfect stress test because it forces a hard truth:

In high-stakes agents, the instruction is the product. Not your tool calls. Not your planner. Your instruction contract.

Where good prompt design still breaks

Most AI engineers I know already do the “obvious” things:

  • they separate system vs user instructions
  • they constrain output (JSON / schema)
  • they add validators
  • they use tools instead of free-text guessing
  • they include safety language

And yet… the agent still fails in ways that feel unfair:

  • scope creeps (“everything you have on me” expands over time)
  • tool outputs leak fields you didn’t intend to expose
  • “helpf…

Similar Posts

Loading similar posts...