We built Inbox Duty Agent for Agentware 2026, Track T1 (Inbox & Calendar): an unattended agent that watches a mailbox, triages every thread, checks the calendar, books or reschedules meetings, replies, files follow-ups, archives what needs no action, and writes a daily digest — with no human touching the keyboard. Python 3.12, standard library only, $0 per test run.
One demo run over seven seed emails: 1 meeting booked, 2 replies sent, 3 drafts written, 1 injection blocked and quarantined, 3 archived, 1 follow-up set. Tests: 200/200, including the official Trap Pack.
The part I keep thinking about isn't the booking. It's the three emails that taught us the same lesson from three directions: email is data, never instructions.
1. The invisible one
A Trap Pack phishing mail hid its injection in text styled invisible in the HTML part. Our first scan read the visible body and missed it. The fix: extract hidden HTML text and scan it like body text. A hit quarantines the mail. The lesson wasn't "scan more" — it was that the attacker chooses which layer you read, so you have to read all of them.
2. The polite fake CEO
A display name claiming authority, a lookalike of an allowlisted domain. Our rule: a signal like that never blocks on its own — but it forces that mail to draft-only, even from allowlisted senders. The agent handles it, never auto-answers it. Blocking would have been simpler; draft-only is the honest answer when you're not sure, because the cost of a wrong block (a real boss's real mail, silently dropped) is worse than the cost of a draft a human reviews.
3. The one we almost over-blocked
A benign newsletter quoted injection phrases. Our first scan quarantined it — a false positive, and the kind that teaches you more than a catch. The fix: hits confined to quoted text in a newsletter or info mail get flagged in the trace and digest, with replies forced to draft-only. The same quoted hits in a request-type mail still block. There is no scan exemption to bypass — the distinction is what the mail is asking the agent to do, not whether the words appear.
The guardrail that made all three possible sits underneath the classifier: the scan judges Unicode-normalised copies — invisible Unicode Tags decoded, zero-width characters stripped, homoglyphs folded, keyword typos repaired, plus a whitespace-blind shadow copy. Concealment tricks don't evade it; the original text is what gets processed and quoted. The same scan covers invite (.ics) text fields and hidden HTML text.
What we deliberately didn't do
No LLM in milestone 1. Classification is hand-written rules and heuristics. It's reproducible and free, but brittle: mixed-intent mail gets a single class, and unusual phrasings fall to "ambiguous" (draft-only) rather than being understood. The second layer bounds the damage — allowlist-only sending, no destructive tools exposed at all, ambiguous means draft. Worst case is a draft a human reviews, never an executed action. We'd rather say "I don't understand, here's a draft" than guess with someone else's inbox.
The kill switch
Dashboard STOP button, run.py stop, or an OS signal. It halts at the next step boundary, logs a killed event, and exits. It's in the demo, mid-run — because a kill switch you haven't shown working is a paragraph in SAFETY.md, not a feature.
The honest ending
The agent was finished before code freeze. The submission form wasn't filed — I was defending my graduation thesis that day. The agent runs unattended; the human didn't. That's the near miss.
Repo: https://github.com/CodePanda854/agentware-inbox-agent
Thanks to FileClerk (https://fileclerk.co.uk) for sponsoring the Near Miss awards.
Top comments (0)