Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AgentMail comparison and gap register

This page compares Pylota Identity with AgentMail as AgentMail stood on 2026-10-17. It records every capability gap and the decision taken on each one. ADR 0017 holds those decisions. AgentMail is the hosted agent-email product that Pylota is moving off. Pylota Identity must cover everything Pylota uses from it. Where it adds a capability, it must be harder to misuse and must say what happens in every failure case.

Re-check every AgentMail fact before quoting it outside this repository. AgentMail ships often: its changelog has 27 dated entries between 2025-06-15 and 2026-10-14, with gaps of up to ten weeks (2026-03-18 to 2026-05-28).

1. Method

SourceWhat was readRead
AgentMail OpenAPI document, https://docs.agentmail.to/openapi.jsonAll 180 operations and 369 schemas, extracted in a browser. 50 operations sit under /v0/pods: 4 manage pods, and 46 are pod-scoped copies of other routes2026-10-17
AgentMail AsyncAPI document, https://docs.agentmail.to/asyncapi.yamlThe WebSocket protocol: servers, the subscribe message and 19 server message types2026-10-17
AgentMail documentation, https://docs.agentmail.to/llms.txt index143 pages: concepts, guides, knowledge base, the event and integration pages, and every changelog entry2026-10-17
AgentMail site and pricing, https://www.agentmail.to/ and /pricingPlans, quotas and feature gates2026-10-17
REA runtime capture, evidence ev_c4c47713d3bb35fa8a0c187973a9cdcde2f80277660cdfddb63baabef5512719agentmail.to and docs.agentmail.to in a fresh browser profile: pages, navigation, the integrations shown (MCP endpoint and header, skills, plugins)2026-10-17
REA runtime capture, evidence ev_cb5466cb3919ee01d126b0b0d42d41b6e8fc57d64f271cf898a657c4beee1ea1The home page’s live demo inbox, observed for 14 s with network and WebSocket events (195 events, complete, nothing dropped)2026-10-17

Limits of the method:

  • Only public material was read. No account was created, no API call was made with a key, and no AgentMail system was tested.
  • Most documentation pages were read through a summarising fetch. Numbers on this page are as those pages state them. Where pages contradicted each other, the conflict is noted.
  • Behaviour that the docs do not state is recorded as not stated, never inferred. Examples: the AgentID token format, Agent Armor’s threat categories, WebSocket heartbeats and close codes, and x402 prices other than inbox creation.
  • The working inventories live outside the repository, in the session scratchpad agentmail-rea/{api-inventory,inv-core,inv-realtime,inv-identity}.md. Every row below can be traced to one of them.

What the runtime capture showed. The home page’s demo inbox works in three steps:

  1. On page load, the site creates a fresh inbox through its own server route (POST /api/demo-inbox on www.agentmail.to). The API key stays on the server.
  2. The page then polls GET /api/demo-inbox/threads?inboxId=<address> every few seconds. It uses no WebSocket.
  3. The responses carry a CDN age header, so they are cached and keyed by the inbox address.

Two lessons follow for any demo on Pylota Identity’s own site. A demo must be keyed by an unguessable capability token, never by the mailbox address. And a demo must not create a mailbox for every page view.

2. AgentMail’s model in brief

  • Scopes. Organisation › pod › inbox. Threads, drafts, webhooks, lists, metrics, API keys and accounts exist at all three scopes; domains exist only at organisation and pod scope (there is no inbox-scope domain route; OpenAPI document, re-read 2026-10-18). GET /v0/auth/me reports the calling key’s scope.
  • Mail. An inbox has one address. It offers threads, messages, attachments with signed download links and extracted text, raw MIME, labels (system and free-form), drafts with scheduled send, and allow and block lists. Lists come in three directions (send, receive, reply) at three scopes, and the most specific scope wins.
    • Reply extraction (extracted_text/extracted_html) strips quoted history “in English and many other languages, including” ten named ones, Arabic among them (Reply & Attachment Extraction, read 2026-10-18).
    • authentication_results gives SPF, DKIM and DMARC results with their domains and the ARC sealer.
    • Sending is idempotent through an Idempotency-Key held for 24 hours. Creates are idempotent through client_id.
  • Inbound policy.
    • A message with a virus is accepted and then dropped silently.
    • A message that fails DMARC under an enforcing policy is dropped, unless a trusted ARC seal vouches for it. The trusted sealers are google.com, microsoft.com, outlook.com and icloud.com.
    • Other authentication failures are stored with an unauthenticated label and hidden by default.
    • Spam is stored and hidden.
  • Events.
    • 20 webhook event types, signed through Svix. Delivery is 8 attempts over about 27.5 hours, at least once, with no ordering guarantee.
    • Endpoints are auto-disabled after 5 days of total failure, without notice and without redelivery.
    • “Polling webhooks” are a pull queue with commit offsets.
    • A WebSocket stream at wss://ws.agentmail.to/v0 authenticates with an api_key query parameter.
    • An MCP events subscription exists.
  • Agent features.
    • Agent Armor screens inbound mail for prompt injection.
      • Verdicts are clear or review, and a scan has a 15-minute deadline.
      • Monitor mode only sends events. Hold mode withholds message.received but still lists and searches the held mail.
      • Release needs an opt-in permission, and a feedback route takes 5 values.
    • Calendar (Labs) gives each inbox a calendar: events, RRULE recurrence, agenda, ETag concurrency, iMIP invitations in and out, RSVP, and start and end webhooks.
    • Agent Drive (Labs) gives each inbox file storage: a three-step upload with SHA-256 checks, 100 MiB per file, and a 1 GiB quota per organisation.
  • Identity.
    • Agent self-sign-up returns an organisation, an inbox and a key in one call. Until a human verifies a 6-digit code, the agent may email only that human, 10 emails a day.
    • A person can claim the inbox in the console by pasting the key.
    • AgentID lets an inbox sign in to third-party apps: an app directory, a 5-minute magic link, 30-day public-key sign-in credentials, and 10-minute ID tokens with no revocation webhook.
    • P-256 public-key API credentials exist alongside bearer keys.
    • Keys carry about 52 boolean permissions and can be scoped to an organisation, pod or inbox.
  • Interfaces.
    • REST, with SDKs for Python and TypeScript (agentmail 0.5.46 on npm).
    • A hosted MCP server with 43 tools plus 2 that need OAuth, authenticated by OAuth or x-api-key, with a stdio bridge.
    • A CLI with --schema, JMESPath --query and skill generation.
    • Plugins for Claude Code, Codex, Cursor, ChatGPT and OpenClaw, and framework toolkits.
    • IMAP (993) and SMTP (465 and 587), with the API key as the password.
    • x402 (USDC) and MPP pay-per-call servers, and a separate EU environment (an Enterprise feature).
  • Plans (USD). Free has 3 inboxes and 100 emails a day. Developer costs $20 a month for 10 inboxes and 1,000 a day. Startup costs $200 a month for 150 inboxes and 15,000 a day. Enterprise is priced on request. Custom domains start at Developer, and the SOC 2 report at Startup. Cold outreach is prohibited.

3. Where Pylota Identity already goes further

AreaAgentMail (2026-10-17)Pylota Identity
Identity and addressThe address is the inboxIdentities outlive addresses and domains, with rollback (U3)
Unknown send outcomesIdempotency for 24 h; no notion of an unknown outcomeIdempotency for 30 days, uncertain is never resent, and reconciliation follows (U2)
Mail failing authenticationDropped silently (DMARC enforcing) or labelledNever accepted and then dropped. On Email Routing, mail that fails both SPF and DKIM or the sender’s DMARC policy is rejected by Cloudflare before the Worker runs (Email lifecycle, read 2026-10-18; whether inside the SMTP session is not stated); every other failing message, and all failing mail through SES inbound, is stored and quarantined with a reason (FR-IN-1, FR-IN-5)
Mail with a virusDropped silently, with no eventQuarantined risky_attachment, with a scanner hook (FR-IN-5, P1 scanner)
Paused mailboxInbound mail is neither delivered nor bounced, and is lost after resumeStored; sends refused with identity_paused (FR-IDN-3)
SearchFull text, 100 resultsKeyword, semantic, hybrid and agentic with verified citations (U1)
DomainsOne record set (SES records), with Domain Connect one-click setup (GET /v0/domains/{domain_id}/setup-link), send-only domains, subdomain inboxes and Google Workspace coexistenceSix connection methods, health checks from two resolvers, aligned fallback, never unauthenticated mail (U4)
ErasureDelete calls, plus an optional 24 h expiry that leaves copiesFive erasure scopes, receipts with per-store counts and probe queries, legal holds (U6)
Webhook failureAuto-disabled after 5 days, no notice, no redelivery72 h retries, dead-letter state, replay for 30 days. An endpoint is disabled sooner than on AgentMail, after 100 consecutive failures spread over at least 24 hours; the webhook.disabled event goes to platform and partner endpoints, never to the tenant’s own endpoints (Webhook events)
Agent identity proofAgentID: 10-minute tokens, no revocation webhook, signature scheme undocumentedEd25519 assertions verifiable against a published JWKS; pausing withdraws the keys at once (U10)
Plan enforcementLimits take up to 5 minutes to apply after a changeAtomic holds; 402 billing_limit is safe to retry (FR-BILL-6)
Seats2 / 2 / 10 seats by planRoles, enforced seats, audit, required two-step verification (U7)
HostingHosted, US or EU; BYO cloud on EnterpriseRuns in the deployer’s own Cloudflare account, with the EU jurisdiction optional (U6, U9)

4. Gap register

Each gap has a decision:

  • add: specified for v1.0 on the page named.
  • change: an existing v1.0 behaviour changes.
  • defer: a later version, with the reason.
  • refuse: deliberately not built, with the reason in §5.
#CapabilityAgentMailPylota Identity before this changeDecisionSpecified in
GAP-1Drafts, human approval before send, scheduled sendDrafts with send_at, reschedule, unschedule and cancel; approval works only by withholding send permissions; the draft is deleted once sentNon-goal (“planned for v1.1”)add: drafts with approval bound to a content digest, two approval patterns, person-only approval on Cloud unless the partner opts its tenants in (drafts.key_approval), the draft kept as a record after sending, schedule driven by Durable Object alarms through the one send pipelineDrafts
GAP-2Pull feed of events for agents without a public URLPolling webhooks: a queue with commit offsets, US only, 10 per scopewait long poll (messages only); webhook replayadd: an ordered per-tenant event log, GET /v1/events with cursors and long poll, durable consumers with commitEvent feed
GAP-3Live event streamWebSocket with the API key in the URL; no documented heartbeat, close codes or replay; body cut at 30 KiBP2 (“WebSocket push”)add: a WebSocket stream on the event log, resumable with no loss, with documented close codes and no secret in URLsEvent feed
GAP-4Holding mail that tries to steer an agentAgent Armor: model verdict, 15-minute deadline, Hold mode that only withholds a notification, release, feedbackA deterministic steering scan and a model risk flag, advisory only; no holdadd: screening.mode with a real hold (status screening, hidden) that a tenant opts into (the default mode is monitor), deterministic and model signals, fail-closed default for held mail, release through the existing person-only rules, feedback measured per tenantScreening
GAP-5Calendar invitationsA full calendar per inbox; inbound invitations imported only when authenticated, single-event and ≤ 1 MB; Windows time zones not importedkind = 'calendar' and a six-field summary; invitations never answeredadd: iMIP/iTIP parsing and verification with a bounded structured object, Windows time zones mapped, multi-component bundles, calendar.received, outbound iMIP from a supplied iCalendar payload, a reply route. No calendar store: Kairos owns calendar state for PylotaCalendar invitations
GAP-6Attachments larger than an inline JSON bodyBase64 (6 MB per request) or a URL that AgentMail fetches (~30 MB); Agent DriveBase64 inside a 7 MiB body; signed links for oversized attachments (P1)add: per-identity uploads streamed through the Worker with SHA-256 checks, referenced by sends and drafts. URL fetching is refused (SSRF) and no general drive is builtUploads
GAP-7Agent self-sign-upOne call returns an org, inbox and key; send only to the human until a code is verified; receive-only without a human; claim by pasting the keyPerson-first sign-up only (PM_SIGNUP)add, behind PM_AGENT_SIGNUP (off by default): the human email is required (FR-IDN-2), a provisional workspace expires in 7 days, and a claim needs a matching verified emailAgent self-sign-up
GAP-8Deliverability metrics/metrics/events, /usage, /rates at three scopesUsage routes and domain health; abuse windows not exposedadd: event counts and the exact windows the pause logic uses, with threshold and headroomMetrics
GAP-9TypeScript and Python SDKsBothRust SDK onlyadd TypeScript (P1, built in its own repository, ADR 0018); Python decided on the SDK pageSDKs and skills
GAP-10Agent skills, plugins, MCP setup for agent toolsSkills repo, plugins for five clients, a stdio bridge with tool filtering, framework toolkitsMCP over Streamable HTTP with API keys; no skillsadd: skills package, MCP tool annotations and allow-list, setup snippets, framework guidesSDKs and skills
GAP-11CLI for agents--schema, --query, skill generation--json on every commandadd: --schema, --querySDKs and skills
GAP-12Batch read and label updateBatch get; batch update ≤ 50, atomic for found IDsOne message per calladd: ≤ 100 per call, atomic in the mailboxParity additions §2
GAP-13Allow and block lists per mailboxOrg, pod and inbox scope; send, receive and reply; most specific winsTenant scope onlyadd: identity scope, most specific winsParity additions §3
GAP-14Label change eventsInbox events feed (label.added, label.removed)Noneadd: opt-in message.labels_changedParity additions §4
GAP-15Authentication domains on messagesspf_domain, dkim_domain, dmarc_domain, arc_sealerResults without domainsadd to trustParity additions §5
GAP-16Forwarded mail that breaks DMARCRescued by a trusted ARC sealARC recorded, never trusted: forwarded mail that reaches the Worker is quarantined auth_failed. Cloudflare Email Routing rejects DMARC-failing mail before the Worker, and its docs do not say whether a valid ARC chain changes thatchange: a platform-only list of trusted ARC sealers (google.com, microsoft.com; the others AgentMail trusts could not be verified) and an exact rescue rule. It applies wherever the Worker sees the mail (SES inbound); on Email Routing a live test (live::arc::cloudflare_forward_behaviour) records what Cloudflare doesParity additions §6
GAP-17Short-lived mailboxesOrg-wide 24 h expiry, early access, copies remainRetention per tenant (raw 90 days, messages kept)add: per-identity retention.message_hours with erasure receipts and holdsParity additions §7
GAP-18Static headers on webhook deliveriesWrite-only custom headersNoneadd: up to 10, values sealed and write-onlyParity additions §8
GAP-19Zone-file exportBIND zone fileJSON records onlyadd: ?format=bindParity additions §9
GAP-20A documentation link in errorsdocs in every standard error; fix “omitted when no generic remedy applies”; one response carries only messagefix and retryable, no linkadd: docsParity additions §10
GAP-21Reply extraction in ArabicEnglish and many other languages, ten named, Arabic among them11 languages including Japanese, no Arabicdefer: an Arabic attribution pattern waits for a corpus sample from real clients in crates/conformance (a pattern must not be guessed); no requirement or milestone until thenADR 0017, PRD § 5 P2
GAP-22Remote MCP with OAuthOAuth or x-api-keyAPI key only; OAuth 2.1 deferred to v1.1 (ADR 0016)defer (unchanged): the SDK page records which clients cannot connect without OAuthSDKs and skills
GAP-23Public-key API credentialsP-256 JWK credentials; the signing scheme is not documentedBearer keysdefer to v1.1: Pylota’s servers hold its keys, so agents never see a bearer secret. A design must name its signature scheme and replay windowADR 0017
GAP-24Agents signing in to third-party appsAgentID: app directory, magic link, remembered approval for 180 days, 10-minute tokensSigned agent assertions plus JWKS; the service sign-up ledger approves each accountdefer an OIDC-compatible relying-party flow to v1.1; v1.0 keeps assertions plus the ledger, which already ties consent to a person’s approvalADR 0017
GAP-25Separate EU environment on the hosted serviceEnterprise featureThe EU jurisdiction for self-hosting; Cloud runs one jurisdictiondefer: a second Cloud deployment is an owner decisionADR 0017
GAP-26Pay-per-call (x402, MPP)USDC (x402) and Stripe MPP serversPlans in GBP through Stripedefer: revisit when MPP is generally available for UK merchantsADR 0017
GAP-27IMAP and SMTP accessIMAP 993, SMTP 465/587Non-goalrefuse for v1.0 (§5)ADR 0017
GAP-28Open trackingtrack_opens, message.openedNonerefuse (§5)ADR 0017
GAP-29A calendar store, agenda and recurrence enginePer-inbox calendarNonerefuse (§5): Kairos is the calendarADR 0017
GAP-30General file storageAgent DriveNonerefuse (§5): uploads cover the mail useADR 0017
GAP-31Fetching attachments from a URLurl attachmentsNonerefuse (§5)Uploads
GAP-32Mailbox avatars (BIMI)Not offered (guidance only)Nonedefer: a guide when a tenant asks; BIMI needs a VMC or CMC and enforced DMARC–

5. Deliberate differences

  • No IMAP or SMTP server (GAP-27). Workers cannot accept inbound TCP connections. An IMAP server would be a second, stateful system to run beside the Worker, and the operator is one person (ADR 0015). Agents use the API, MCP, the event feed or the stream, and people use the console. Revisit only if a tenant needs a desktop mail client and a managed container service fits the one-operator model.
  • No open tracking (GAP-28). A tracking pixel reveals when a recipient read a message, so it is personal data processed without their knowledge. Apple Mail Privacy Protection preloads images, which makes open counts unreliable. Images in first contact also hurt deliverability. AgentMail itself fires opens once per message, not per recipient. Delivery events and replies are the signals Pylota Identity reports.
  • No calendar store (GAP-29). A second calendar would compete with the consumer’s calendar for the same truth: for Pylota, that is Kairos and its database constraint against double booking. Pylota Identity verifies and carries iCalendar in both directions, and the consumer owns state, SEQUENCE ordering and conflicts.
  • No general drive and no URL fetching (GAP-30, GAP-31).
    • Fetching a caller-supplied URL from the Worker is a server-side request forgery surface. It also sends content that the caller’s own SHA-256 never covered.
    • Uploads streamed through the Worker with a checksum cover attachments without either problem.
    • Agent Drive’s other uses, storing an agent’s own files, are not mail.

6. Corrections to the PRD’s competitive table

The table in PRD § 4 was researched on 2026-10-09. By 2026-10-17 several of its AgentMail cells were wrong:

  • Authentication verdicts. “Spam labels” understates it. AgentMail exposes authentication_results, labels unauthenticated mail and hides it by default. Agent Armor (Labs) adds a prompt-injection verdict.
  • Team seats. “–” is wrong. Plans include 2, 2 and 10 seats.
  • Runs in your own Cloudflare account. “–” stays true for Cloudflare, but Enterprise offers a “BYO cloud deployment”.
  • Erasure. “Per message” should read “per message, thread and inbox, plus an optional 24 h expiry”.
  • New rows needed. Drafts and scheduled send, the event stream, prompt-injection screening, calendar invitations, SDK languages, and agent self-sign-up.

ADR 0017 lists the replacement rows. The integration of this change into prd.md applies them, with the read date 2026-10-17. The table is research, re-checked before any external use; marketing copy may claim only what PRD § U1–U10 list (PRD § 4).

7. Pylota agentic OS

Pylota reaches Pylota Identity Cloud as a partner. Each operator is a tenant, and Pylota’s servers hold the partner key (Pylota integration spec, docs/plans/pylota-mail-integration.md). The additions map onto Pylota as follows; each design page has a full Pylota agentic OS section.

Pylota needPylota Identity feature
Mail written by the public-webchat coordinator, or by any untrusted path, must wait for an operator (Pylota’s approval gate)Drafts with drafts:write and no messages:send; the operator approves in Pylota’s app; Pylota’s server approves with its partner key and on_behalf_of (GAP-1)
Renter and public mail is read by the operator coordinator and 19 specialistsscreening.mode: hold on operator identities; held mail joins Pylota’s held-mail flow (spec § 8.6) (GAP-4)
Webhook monitoring and replay (spec § 8.4, § 8.5)Reconciliation from a saved cursor on the event feed (GAP-2)
Pick-up and return appointmentsKairos produces iTIP; Pylota Identity sends it as iMIP from the operator’s identity; verified replies and invitations go back to Kairos (GAP-5)
Pylota’s browser agent receives one-time codes at third-party servicesShort-lived identities (retention.message_hours) with the service sign-up ledger (GAP-17)
Specialists coordinate through labelsBatch updates and message.labels_changed (GAP-12, GAP-14)
The fleet-acquisition identity’s seller outreachIdentity-scope lists (GAP-13)
Reputation per operator (spec § 5.5)Deliverability metrics (GAP-8)
Pylota’s client and router (spec W1, TypeScript)The TypeScript SDK in place of a hand-written client (GAP-9)

8. Follow-ups

  • Re-read AgentMail’s changelog before v1.0 ships, and record any new capability here with a decision.
  • Add an Arabic reply-attribution sample to the conformance corpus before adding the pattern (GAP-21).
  • Confirm the live behaviours the design pages leave to staging:
    • whether Cloudflare Email Routing honours a valid ARC chain (live::arc::cloudflare_forward_behaviour);
    • how Gmail, Outlook and Apple Calendar treat the iMIP forms sent (live::calendar::*);
    • how R2 handles a streamed upload with a checksum (it::uploads::v_put_stream_contract).