惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
腾讯CDC
V
V2EX
Martin Fowler
Martin Fowler
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
博客园 - 【当耐特】
Cisco Talos Blog
Cisco Talos Blog
The Hacker News
The Hacker News
K
Kaspersky official blog
Security Latest
Security Latest
H
Help Net Security
博客园_首页
美团技术团队
Spread Privacy
Spread Privacy
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
G
Google Developers Blog
NISL@THU
NISL@THU
爱范儿
爱范儿
I
Intezer
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
V
Vulnerabilities – Threatpost
W
WeLiveSecurity
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Hacker News: Ask HN
Hacker News: Ask HN
I
InfoQ
The Cloudflare Blog
F
Full Disclosure
SecWiki News
SecWiki News
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Observability for Email Agents
Qasim Muhammad · 2026-06-17 · via DEV Community

You can't watch an email agent work, but everything it did yesterday is one API call away:

curl --request GET \
  --url "https://api.us.nylas.com/v3/grants/<GRANT_ID>/messages?limit=50" \
  --header "Authorization: Bearer <NYLAS_API_KEY>"

That's the strange, underrated property of building agents on email. Most autonomous systems need observability bolted on — tracing, structured logs, replay tooling. An agent that lives in a mailbox gets three observability primitives for free, because the medium is the record. Here's how to use each one, drawn from how Agent Account mailboxes (currently in beta) actually behave.

The event stream: webhooks

Every inbound message fires message.created — typically within seconds of the SMTP handoff — with a payload that includes the thread_id your agent needs to reconstruct conversation state. That's your input-side event stream, no instrumentation required.

One wrinkle to handle: when a message body exceeds roughly 1 MB, the trigger becomes message.created.truncated and the body is omitted from the payload — fetch the full message by ID in that case, or your agent will silently reason over nothing.

The output side is richer than most people expect, because the platform owns the SMTP path end-to-end and reports back on every send:

Trigger What it tells you
message.send_success The recipient's server accepted the message
message.send_failed The send died first — outbound rule block, policy limit, or deliverability gate
message.bounce_detected The remote server bounced it, hard or soft

Pipe those three into whatever metrics system you already run and you have per-message delivery telemetry for an autonomous sender. A climbing send_failed count is your earliest signal that something upstream — a rule, a quota, a reputation problem — is throttling the agent.

Two refinements. If your workflow is batch rather than real-time, you don't need webhooks at all for the input side — GET /messages with received_after polls fine; webhooks earn their keep in near-real-time agent loops. And aggregate the outbound triggers per domain, not just per grant: sender reputation is shared across every Agent Account on a given domain, so one misbehaving agent's bounce rate quietly degrades its siblings' deliverability. Fleet observability is a domain-level concern wearing per-account clothes.

State you can read: folders

An agent mailbox comes with six system folders — inbox, sent, drafts, trash, junk, archive — and they double as a state machine you can inspect. junk shows you what spam filtering and mark_as_spam rules decided to divert; if real customer mail is landing there, you'll see it by listing one folder. Custom folders extend the pattern: rules that route invoices or VIP senders into named folders turn "what kind of mail is the agent getting?" into a folder-counts query.

The drafts folder earns special mention in human-in-the-loop designs. If your agent proposes replies as drafts and a reviewer approves them, the drafts folder is your approval queue — its count is your queue depth, and a draft that's been sitting there for hours is a stalled approval you can detect with a folder listing.

The governance layer is observable too. Every rule that fires on inbound mail is logged as a rule evaluation you can fetch afterward — so "why did the agent never see that message?" has a queryable answer (a block rule rejected it at the SMTP layer) instead of a shrug.

The audit log: sent mail

Here's the primitive that ordinary agent architectures genuinely lack. Every action this agent takes in the world is an email, and every email it sends is preserved in sent — addressed, timestamped, threaded to its context. The audit log can't drift from reality because it is reality.

Threading makes the log legible. Replies group by standard RFC 5322 headers, so reviewing an incident means fetching one thread and reading the whole exchange in order — what came in, what the agent said, what came back.

And because IMAP access exposes the identical mailbox the API sees, a non-engineer can audit the agent by opening it in Outlook or Apple Mail. There's no separation between protocol traffic and API traffic: one mailbox, one record, two ways to read it. Try giving your compliance team that kind of access to your LLM's tool-call logs.

A Tuesday-morning incident, walked through

Here's how the three primitives compose under pressure. Tuesday, 9:40 a.m.: your dashboard shows the support agent's reply rate dropped to zero overnight, but inbound volume looks normal. Where do you look?

First, the event stream. message.created events are still arriving, so mail is landing — input is healthy. But message.send_failed started climbing at 11 p.m. The agent has been drafting replies and failing to deliver them for ten hours.

Second, the governance record. A send that fails before it reaches the recipient is typically an outbound rule block or a policy limit, and rule evaluations are logged per grant:

curl --request GET \
  --url "https://api.us.nylas.com/v3/grants/<GRANT_ID>/rule-evaluations" \
  --header "Authorization: Bearer <NYLAS_API_KEY>"

The evaluations show which rule matched and what action it took. In this story, a recently enabled outbound rule is matching more broadly than intended.

Third, the mailbox itself. Fetch the affected threads and read them in order — what came in, what the agent tried to say, where it stopped. Total diagnostic surface: one webhook chart, one API call, one folder read. No log aggregator, no trace sampling, and the postmortem writes itself from artifacts that can't disagree with each other.

The blind spots

Honest limits, so you don't design around capabilities that aren't there. Native open and click tracking — message.opened, message.link_clicked — isn't emitted for messages sent through the API on these accounts, so "did a human read it?" is not an observable event; delivery signals are where your visibility ends. And a send_success only means the recipient's server accepted the message — recipient-side filtering afterward is invisible to you, as it is to every sender on earth.

There's also a subtler gap: the webhook stream tells you what happened, not why the agent chose it. Mailbox observability covers actions; you still own logging the reasoning (prompts, classifications, decisions) that produced each send.

Wire the outbound three first

If you instrument nothing else this sprint, subscribe to message.send_success, message.send_failed, and message.bounce_detected and chart them. Input observability fails loud — the agent stops responding and someone notices. Output observability fails quiet: the agent keeps cheerfully sending into a rising failure rate, and the webhook stream is how you find out in minutes instead of weeks.

What's on your email-agent dashboard today — and if the answer is "nothing yet," which of the three primitives would you wire up first?