Build a Jev-Gated Inbox Autopilot¶
| Category | AI Solutions Engineering |
| Status | ๐ก Partially completed |
| Repo | nextwork-build-a-jev-gated-inbox-autopilot |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Build a Jev-Gated Inbox Autopilot guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ AI Solutions Engineering
Status: ๐ก Partially completed
Overview¶
An inbox assistant is only useful if I can trust it. Mine splits actions by risk: tidy-up happens automatically, anything that speaks for me waits for a yes, and anything involving money, passwords or commitments is never touched.
Summary¶
I built my own gated inbox autopilot in Python and ran it on 12 synthetic emails I wrote. Each email is classified with the reasons shown (newsletter, notice, question, urgent, fyi, or the blocked kinds: phishing, payment change, commitment). Reversible actions (archive, label) run automatically. Replies are drafted but wait for approval, can be edited before approval, and need a written reason to reject. Phishing, bank-detail changes and contract commitments are held untouched for me. Every action goes to a JSONL audit log. In the run 2 emails were archived, 5 labelled, 2 replies queued (one approved and one rejected with a reason) and 3 held. 4 tests pass, including one proving nothing reaches the outbox without approval. Partial: this isn't Jev or a real mailbox, nothing is sent, and the classification is my rules rather than a model.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Python, Risk gating, Human-in-the-loop approval, Audit logging, pytest
What I built¶
inbox.json: 12 synthetic emails I wrote (no real mail).autopilot.py:classify(kind plus reasons, including lookalike-sender and credential-request checks),plan(actions per kind), andPilot(auto-runs safe actions, queues gated replies,approvewith optional edit,rejectwith a reason, JSONL audit).docs/run.mdanddocs/audit.jsonl: the run on my inbox.tests/test_autopilot.py: classification of all 12, nothing sent without approval, risky mail held, approve/edit/reject and audit.
How to run¶
python autopilot.py inbox.json # writes docs/run.md and docs/audit.jsonl
python -m pytest -q tests
Verification¶
I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.
/workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider tests 2>&1 | tail -1 | grep -q '4 passed' && echo INBOX OK
Notes¶
The rules are simple regexes tuned on emails I wrote myself, so they'd miss plenty of real phishing. The point of the design is that the dangerous categories default to 'hold', so a miss means more manual work, not an unsafe action.
What isn't done, and why¶
No Jev product, mailbox connection or model: the inbox is a JSON file, the outbox is a local list, and nothing is ever sent.
Original project: https://nextwork.ai/projects/bea79b47-5345-4f7b-982c-f34ab779524b ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ /workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider tests 2>&1 | tail -1 | grep -q '4 passed' && echo INBOX OK
INBOX OK
[exit code 0]