The only AI that raises its hand when it doubts.
DoubtPilot reads your card alerts, invoices and insurance claims, checks each one against your history and against hostile text, and stamps HOLD on whatever it is not sure about. It has no tool to move money.
Python standard library only. No keys. No network. MIT license.
Seatbelt: GO
Doubt check: sure
Money tools: none
Sample documents, checked live by the real rules. Click one. Nothing is paid or sent.
Business email compromise losses reported to the FBI in 2024, from 21,442 complaints. Only investment fraud ($6.57B) cost more; tech support was third ($1.46B).
BEC exposed dollar loss, domestic and international, Oct 2013 to Dec 2023: $55,499,915,582 across 305,033 incidents. Built from IC3 complaints, law enforcement reports and financial institution filings.
Share of surveyed US organizations affected by BEC in 2025 (465 treasury practitioners, January 2026). AFP calls it a significant increase from 2023 and 2024. Nacha's write-up puts 2024 at 63%.
Prompt injection is entry LLM01 in the OWASP Top 10 for LLM applications (2025). Inputs, even ones a human cannot see, can change what a model does. A real case: CVE-2025-32711 in Microsoft 365 Copilot, rated Critical by Microsoft (CVSS 9.3, no user interaction). Researchers called it zero-click. Microsoft fixed it on its side.
Caveats: the FBI figures count what victims and institutions reported, so they are a floor, not a census. The AFP figure is a survey of 465 treasury practitioners, not all companies. The Copilot flaw leaked data; it is not a dollar loss, and NVD's own score for it is 7.5 High against Microsoft's 9.3 Critical. We found no reliable dollar figure for prompt injection losses, so we do not quote one.
No urgency, no link, no "ignore previous instructions". It passes a spam filter. Last quarter the same vendor was paid into account **** 4417. The mail above is made up for illustration.
Two tricks. One inbox.
The money trick. The attacker does not need to break anything. They ask to be paid to a different account. The words are normal. Only the history gives it away.
The text trick. The document itself can carry instructions aimed at the agent: hidden text, a fake "CEO" voice, an encoded payload. An agent that obeys what it reads will obey the attacker too.
So the useful agent is not the one that does the most. It is the one that files the boring 90%, holds the odd 10% for a human, and never has the power to pay.
Learns which bank account belongs to which party. Holds a document if a known vendor asks for a new account (changed), or if one account sits behind two names (shared). Accounts show masked, last 4 digits only.
Cards, invoices, claims. One pipeline, one ledger, one policy. Card-testing and duplicates; new vendors and amount spikes; phantom providers and upcoding (claims run on synthetic data).
Every message is data, never orders. Finds hidden text, instructions aimed at an agent, fake authority, encoded payloads, exfiltration lures and broken data. The scanner has no send, fetch, run or delete power.
Says "I am not sure". Re-reads each document in 12 harmless rewrites. If the decision or its reading changes, it holds the item for a human even when the rules said file. It can only make the agent more careful.
Tests its own guards first. Before each run it plants dummy attacks and checks that every guard reacts. A guard that fails means no takeoff, and the refusal is written to the audit log.
doubtpilot redteam attacks the scanner: 6 hostile sentences disguised 17 ways, with the blind spots listed. The first run caught 61%. The disguise fixes brought it to 89%.
One file stops it. Create a STOP file and the loop lands at the next safe point. Remove it and the agent resumes without processing anything twice.
Every decision goes into a hash-chained log. replay verifies the chain and replays each decision. One edited line breaks it.
A human approval queue. Flagged items wait while the agent keeps working. Approve or reject records your decision. It moves no money either way.
A supervisor retries flaky steps, quarantines a poisoned file, and resumes after a crash. A budget guard pauses the run at its cap.
A digest, a live dashboard and one card for each flagged item, plus links between documents that share a party. Optional read-only IMAP, and an optional LLM layer that is off by default.
There is no payment, transfer or send tool in the agent to call. A perfect attack on the text still has nowhere to go.
python -m doubtpilot seedBuilds a demo inbox with clean and hostile documents.
python -m doubtpilot run --mockOne full pass: seatbelt test, scan, decide, file, hold, report. Read the result in traces/latest/digest.md or open dashboard.html.
python -m doubtpilot replayVerifies the audit chain and replays every decision. Then try ./demo_story.sh to watch a fake follow-up invoice with no warning words get held because the bank account changed.
Needs Python 3.10+. Repository link goes here when the public repo is published.
Seven steps from zero to a decision. Every command below exists in the repo today. Needs Python 3.10+ and nothing else.
cd doubtpilot
.eml .txt .md .html .csv .pdf files, or a read-only mailbox.python -m doubtpilot run --inbox ~/money-docs
Mailbox: set IMAP_HOST, IMAP_USER, IMAP_PASSWORD_FILE, then run --imap. It can only read, never send, move or delete mail.
run --inbox ~/money-docs --loop --supervise
It tests its own guards first and refuses to start if one is broken.
traces/latest/digest.md for the summary, dashboard.html for the live view, and traces/latest/cards/ for one page per flagged document: what it saw, which check fired, why.Unsure about one file? python -m doubtpilot doubt file.txt re-reads it 12 ways and shows if the answer wobbles.
python -m doubtpilot approvalspython -m doubtpilot approve 12-card-micro --note "checked with bank"python -m doubtpilot reject 06-spoofed-spike
No answer in 24 hours counts as a no. Approving only changes the record. It cannot pay anything.
touch traces/latest/STOP
python -m doubtpilot replay verifies the tamper-evident audit chain and replays every decision. python -m doubtpilot health exits 0 or 1 for cron.Use DoubtPilot as the gate between the documents and the agent that acts on them. The other agent never reads raw mail. It only sees what DoubtPilot has already checked.
mail / files | v DoubtPilot (read-only) |-- FILED --> your agent acts `-- HOLD ---> a human decides
--loop --supervise.traces/latest/digest.md and the cards. Anything under "needs you" is off limits until a person runs approve.python -m doubtpilot health into your monitor. If it fails, pause your agent. Pull the plug with touch traces/latest/STOP.Honest note: this is a file-based pattern, not a packaged plug-in or API. A hostile document cannot make DoubtPilot act, because it has no tool to act with. Your own agent still needs the same discipline.
We wrote each test set by hand, ran it once, published the score, then fixed what failed. The solid bar is the first run, the only honest measure of how well the rules generalize. The hatched bar is after fixes. It proves the fix worked on that set, nothing more.
What this does not prove. These are small, hand-written sets by the author, so none of it is production accuracy. The doubt check does not catch a document that all 12 rewrites misread the same way. The Trap Pack was tuned on, so it is a regression check. Tests: 81 passing, including 4 that run the official Trap Pack. Each safety claim has a test. The full history of misses and fixes is in the repo under tests/benchmark/.
A round ink stamp with a paper plane inside: the same stamp that lands on the boarding pass. Horizontal lockup, square mark, one-colour version.
Display: Noto Sans Display Extra Condensed Black, all caps. Body: Noto Serif. Labels: Noto Sans Mono, typewriter caps. Fonts are embedded in the page (SIL OFL).
Calm and plain, like a checklist read aloud. We say what it did and what it did not do.
An agent you can leave running because it cannot spend your money, tests itself before each flight, and proves what it did.