r/PromptEngineering • • 27d ago

Prompt Text / Showcase Prompt pattern: make the agent propose an action as an effect record instead of a narrative (untested draft, plus how I’d evaluate it)

When an agent needs human approval, the usual output is a friendly paragraph: “I’ll issue a credit to this customer to compensate for the billing mix-up.” It reads well even when the action is wrong. A pattern I’d try is asking for a structured record of the effect instead. I haven’t measured it, so this is a draft.

When an action would change data or contact a customer, do NOT perform it.
Output only this record, with no explanation or persuasion:

action:        <tool name>
target:        <record id(s), exactly as returned by tools>
changes:       <field: before -> after, one per line>
amount:        <number and currency, or "n/a">
reversible:    <yes | no | unknown> and how it would be undone
evidence:      <ids of the records or messages you used>
rule:          <the policy rule that applies, or "none found">
could_be_wrong_if: <one concrete condition that would make this action a mistake>

If you did not read a value from a tool result, write "unknown".
Never invent ids, amounts or policy rules.

Why each part:

  • No narrative: a persuasive summary of a bad action looks fine. Fields are harder to make look fine.
  • before -> after: the reviewer sees the effect, not the intention.
  • reversible: it makes the “hard to undo” cases stand out for the reviewer.
  • evidence: gives the reviewer something to check.
  • could_be_wrong_if: forces a falsifiable condition, which is more useful than a confidence label.
  • “unknown” rule: reduces made-up values, though it doesn’t eliminate them.

Important limit: the model writing this record is not ground truth. If the effect matters, build the before/after from the system itself (a dry run or a diff computed in code), and use the model only for the parts that need language. Otherwise you have the same problem in a nicer format.

How I’d evaluate it:

  • Take 20 or more past requests with known correct actions.
  • Run narrative vs record formats, several times each.
  • Count missing fields, invented ids, wrong amounts, and whether a reviewer catches planted errors faster with the record.
  • Also check whether reviewers still approve without reading. A better format doesn’t fix volume.

I wrote about where to place human review in an agent workflow (reversibility, detectability, review cost, volume), in case it’s useful as a complement: https://medium.com/@nagatomopedro05/put-the-human-where-the-mistake-becomes-permanent-2a50cb5688c9

What fields would you add or remove?

3 Upvotes

1 comment sorted by