How to Write an AI Agent Task With a Withhold List

9 min read

Make this article actionable

Send the article context into Vife Agent and turn it into a plan, checklist, or draft you can keep working on.

Open in Agent

A shared inbox, a stack of invoices, and one instruction: clear it and pay what is actually due.

That is an ordinary request, and it is where agents fail expensively. ShellBench — a benchmark built with researchers at The OpenClaw Foundation, Parsewave, Hugging Face, Red Hat and UC Berkeley from more than 10 million anonymized real agent interactions — ran each task three times under identical conditions. According to TechCrunch's report on November 24, even the most advanced models from OpenAI, Anthropic and Meta failed everyday tasks more than a third of the time, and agents recommended duplicate or incorrect invoice payments 40.3% of the time (TechCrunch, November 24, 2026).

The usual response is a longer prompt. The more useful response is a shorter document: a withhold list attached to the task, plus three mechanical checks that catch what the prompt cannot.

What a withhold list is

A withhold list is a task-level list of data the agent must never read, copy, quote or act on — and, for each item, what it should do instead.

It is not an organization-wide AI policy, a redaction pass on outgoing files, or a permission scope for tools. It is the part that says: this task does not need these fields, so the run fails if it touches them.

Four artifacts make the method work: the withhold list, a duplicate gate, a per-step evidence table, and a three-run test.

Mid-read shortcut

Turn the useful parts into next steps

Vife Agent can convert this guide into a prioritized workflow with tasks, risks, and reusable prompts.

Create a brief

Step 1 — Write the outcome as a stop condition

One sentence, with the boundary built in:

Pay the invoices in this folder that match an approved purchase order and are not already marked paid. Do not pay anything else.

Then name what "done" looks like: one ledger row per invoice (invoice number, vendor, amount, PO match, payment reference) and a short report of anything skipped. An outcome without a stop condition invites the agent to be helpful in ways you did not authorize.

Step 2 — Build the withhold list in five classes

Most leaks in agent runs are not exotic. They are ordinary fields that happened to sit in the same folder as the work. Start from five classes and write each as a concrete thing to look for, not a principle.

ClassWhat it looks likeWhat the agent does instead
Credentials and tokens
Bank upload tokens, API keys, one-time codes, password-reset links
Do not open or quote. Report the file name and stop.
Payment instruments
Card numbers, IBAN and routing numbers, wire instructions
Use a reference such as the last four digits only if the task needs it. Never paste the value into a message or a summary.
Identity documents
Passport and ID scans, tax IDs, signed forms
Note that the file exists. Do not read its fields.
Third-party personal data the task does not need
Customer lists, salary rows, medical notes, performance reviews
Work at the aggregate level. Do not copy rows.
Everything unrelated
Old exports, personal folders, threads with no invoice
Skip. Do not summarize "for context".

The benchmark gives this class of failure a number. Across all models tested, 15.7% of attempts failed at least one safety requirement, and 18.6% failed a specific requirement to identify and withhold a sensitive bank upload token (TechCrunch). The article also reports that about 10% of otherwise correct attempts still failed at least one safety criterion: the answer was right and the handling was not.

Step 3 — Set the read ceiling

Name the exact sources the agent may read: one folder, one label, one date range. Anything outside that is out of scope by default, and the agent flags it rather than exploring.

The benchmark's workspaces are not clean: emails, calendar entries, spreadsheets, receipts, chat logs, outdated information and phishing attempts, and the agent has to work out what is relevant and private before it acts. A read ceiling turns "work out what matters" into "work inside this boundary" — a decision you can check afterwards.

Step 4 — Put a duplicate gate before any irreversible action

Paying, sending, deleting and publishing are one-way doors. Before any of them, require a match on at least two independent fields:

  • invoice number and amount;
  • vendor name and invoice date.

If two candidates match, the agent stops and lists both instead of choosing. It writes the matched fields into the ledger row.

The 40.3% duplicate-or-incorrect payment figure is the reason this gate is not optional — and it costs two field comparisons.

Step 5 — Require evidence for every step

Ask for a table, not a narrative.

StepRead (file + field)ActionExpected state after
1
/ap/inbox/inv-1042.pdf, invoice number
Extract number, amount, vendor, date
Row added to draft ledger

A step that cannot fill the "read" column did not read anything; one that cannot fill "expected state" cannot notice it went wrong. The table is also what you audit in Step 8, so ask for it from the first run rather than reconstructing it later.

Step 6 — Give long tasks a step cap and a stall rule

OS-Omni, a 300-task benchmark covering Windows, Ubuntu, macOS, iOS, Android and Web, reports tasks averaging 67.5 interaction steps, against 15 in OSWorld, according to AI Weekly's summary of the paper (AI Weekly, November 27, 2026). In the same summary, Claude Opus 5.5 led at 68.5% overall against a 77.3% human baseline, while Gemini 4 Argon beat humans on Linux (95.8% against 74.6%) and scored 18.8% on iOS.

Two things follow. Long runs need a budget, and skill on one surface does not travel to another. So write both into the card:

  • Step cap: for example, 40 steps. At the cap, stop and report.
  • Stall rule: if five consecutive steps do not change the state of the artifact, stop and report the last known state.

A capped run that reports is worth more than an uncapped run that eventually guesses.

Step 7 — Run the three-run test

The benchmark's method is the part worth copying: each task was run three times under identical conditions, and the highest-scoring model, OpenAI's GPT-6 Astra, succeeded on all three runs less than half the time (TechCrunch).

Set the same bar for your own task, with three pass conditions per run:

  1. the final outcome is identical across runs;
  2. no string on the withhold list appears anywhere in the transcript;
  3. the evidence table is complete, and every irreversible action carries a duplicate-gate row.

Caveat: the researchers did not test these models inside their own native harnesses, and TechCrunch notes the results may not represent what consumers see in shipping products. Treat the numbers as a reason to test your task, not as a score for a vendor.

For a task that moves money, three clean runs is the minimum, not a guarantee. Two out of three does not mean the task is nearly ready; it means the card is missing a step, a boundary or an example.

Step 8 — Audit the transcript after the run

Reading the output is not an audit. Run three mechanical checks instead:

  • search the transcript for each withheld pattern (account digits, token prefixes, ID numbers);
  • count steps and compare against the cap;
  • check that every irreversible action has a matching gate row in the ledger.

If a withheld string shows up in the log, treat it as an incident even when the payment was correct. The handling failed, and the next task inherits the habit.

A worked task card

Outcome: pay invoices in /ap/inbox that match a PO and are not marked paid. Allowed sources: /ap/inbox (this month), /ap/po-register. Withhold: upload tokens, bank account numbers, ID scans, employee rows, everything outside the two folders. Duplicate gate: invoice number + amount, then vendor + date; two matches means stop and list. Evidence: the four-column step table. Step cap: 40 steps; stall after 5 steps without a state change. Done: one ledger row per paid invoice plus a skipped list. Escalate: any file that looks like credentials, any two-way match, any invoice above the approval threshold.

Checklist before you hand it over

  • The outcome sentence contains a boundary, not just a goal.
  • Each withhold entry names a file type or field, not a principle.
  • The read ceiling is a path, a label or a date range.
  • The duplicate gate names its two fields.
  • The evidence table has a column for what was read.
  • The step cap and the stall rule are numbers.
  • Three runs are logged, with the same outcome each time.
  • The transcript has been searched for every withheld pattern.

Common mistakes

Writing the withhold list after the first run. By then the agent has already read the folder. Write it from the file list, before the task starts.

Listing principles instead of fields. "Don't share personal data" gives the agent nothing to check. "Do not read columns named salary, tax ID or date of birth" does.

Asking for a summary of everything first. "Summarize the folder so I can see what is there" is one of the most common ways a token ends up in a chat log.

Treating one clean run as proof. The benchmark's consistency finding is the whole argument for three runs.

No transcript audit. If nobody searches the log, the withhold list is a wish.

The definitions belong in the card

OpenAI is reportedly building a data platform codenamed Athena that resembles a semantic layer — consistent definitions for business metrics such as revenue and customer count — so its agents "guess less", according to The Decoder's report on November 27 (The Decoder). The same report says at least one customer found the data-analysis agent in ChatGPT Work was not accurate enough, and that the platform is in early development with no timeline or pricing announced.

Whatever ships, the lesson for a single task is the same: if the agent has to infer what "paid", "due" or "customer" means, it will infer differently on a different day. Put the definition in the card, next to the withhold list, and the run has something to check itself against.

When the agent cannot comply

Give it one sentence to use: "Stopped at step 12: two invoices match on number and amount; both are listed below; nothing was paid." A stop with a reason is a result. A stop without one is the failure mode you were trying to prevent.