Product requirements (PRD)
| Product | Pylota Identity |
| Document owner | TREFT LTD (the owner, who is the sole developer and the Cloud operator) |
| Status | Approved for build (v1.0); the additions of ADR 0017, ADR 0018, ADR 0020 (phone numbers), ADR 0021 (the vault) and ADR 0022 (SDK languages) stay Proposed until the owner accepts those records |
| Last reviewed | 2026-10-26 |
| Licence | FSL-1.1-ALv2 (Fair Source; each release becomes Apache-2.0 two years after it ships); the SDKs, pylota-identity-api-types and the agent skills are Apache-2.0 (§ 12) |
| Related | Architecture · Design · Build plan · Edge cases |
Requirement IDs (FR-*, NFR-*) are stable. Tests, design documents and pull requests cite them.
The words must, should and may are used as in RFC 2119.
1. Summary
Pylota Identity is an email and identity service for AI agents. Each agent gets an identity: a mailbox with one or more addresses, authenticated sending, verified inbound mail, threads, attachments with extracted text, triage and search, plus signing keys that let it prove who it is to other services. Applications and agents use it through a REST API, an MCP server and a CLI. It reports what happened through signed webhooks.
It is source available under the Functional Source License (FSL-1.1-ALv2), written entirely in Rust (the TypeScript SDK is a separate client built in its own repository, ADR 0018), and runs as one Cloudflare Worker on the deployer’s own Cloudflare account. Pylota also operates it as a hosted service, Pylota Identity Cloud, with Free, Developer and Team plans (section 13). Pylota (a platform for independent car-rental operators) is the first user, as a partner on Pylota Identity Cloud. Pylota gives each operator four agent identities (bookings, inquiry, compliance, maintenance), and operators move those identities from a shared platform domain to their own domain over time.
2. Problem
Agents that act for a business need to send and receive email as a stable, trustworthy identity. The options before this product were:
- Hosted agent-mail APIs. They work, but data lives with a third party, residency is limited, and pricing is per inbox. They also lack features agents need: verified citations from search, safe-retry semantics, domain changes without breaking threads.
- Transactional email providers. They send, but receiving, threading, search and identity are the application’s problem.
- Raw Cloudflare Email Routing and Email Sending. These are the right primitives. On their own they give no mailbox, threading, search, idempotency, domain lifecycle, authentication verdicts or erasure.
Pylota’s own experience showed the cost of these gaps:
- operator mail never reached production because DNS records were copied from documentation instead of being read from an API;
- HTML-only mail was dropped;
- a failed send re-ran an LLM turn;
- agents could not search their own mail at all.
3. Users
| Persona | Needs |
|---|---|
| Integrator (a developer building an agent product, e.g. Pylota’s API, which uses a partner key on Pylota Identity Cloud) | Provision a tenant and identities per customer, send and receive reliably, get events, change domains, erase data, all through a stable API; on a shared deployment, with a partner key that reaches only its own customers’ tenants (FR-KEY-4) |
| Agent (an LLM driving tools through MCP or an integrator’s tool layer) | Small, well-described tools; search that finds the right email; reads that fit a context window; sends that are safe to retry; content marked untrusted |
| Operator (the integrator’s customer, e.g. a car-rental business) | Their agents email from their brand, history survives domain changes, nothing is sent from a broken domain, clear instructions when DNS breaks |
| Self-hoster / maintainer | Deploy to their own Cloudflare account in minutes, upgrade safely, observe health, restore after mistakes |
4. Goals and non-goals
Goals (v1.0)
- Agent identities with addresses that can change domain without losing history or breaking threads, and that can prove who they are to other services with short-lived signed assertions, verifiable against a published key set.
- Reliable inbound mail: no acknowledged message is ever lost, and every message carries an authentication verdict and trust metadata.
- Safe outbound mail. A retry never produces a second email. An outcome that cannot be known is reported as uncertain, never guessed.
- Search that agents can rely on: keyword, semantic, hybrid and agentic (cited answers whose citations are verified by code).
- Triage on every inbound message: category, needs-reply, urgency, summary and risk flags.
- REST API, MCP server, CLI and Rust SDK, all generated from or checked against one contract, and a TypeScript SDK generated from the same contract (P1, FR-SDK-2).
- Deployable by a stranger to their own Cloudflare account in under 15 minutes of hands-on time.
- Privacy by design: EU jurisdiction when chosen, retention policies, erasure with receipts, subject-access export.
- A console for the people who run the agents: passwordless sign-in (email, Google or GitHub, with optional two-step verification), self-serve sign-up on Pylota Identity Cloud, workspaces with members, roles and enforced seats, inbox views, quarantine review, keys, domains, plan and usage, and email notifications (usage alerts, new mail, and a daily list of what needs a person). It works with no JavaScript.
- Plans that are enforced exactly: atomic holds so two requests can never both pass on the last unit, a
402 billing_limitthat is safe to retry with the same idempotency key after an upgrade, and metering that never depends on a billing provider being reachable. - Custom domains wherever their DNS is hosted. Six connection methods cover a domain on Cloudflare, a domain whose DNS stays at any other host, and a domain whose mailbox stays with the customer’s own provider. Every method keeps the rule of never sending unauthenticated mail.
- Drafts that a person or the operator’s own system approves before they are sent, with the approval bound to the exact content approved, and scheduled sends driven by the mailbox itself, all through the one send pipeline, so no draft or schedule can send twice or send what nobody approved.
Non-goals (v1.0)
- A full webmail client. The console is for oversight and the actions that need a person (keys, domains, members, quarantine release, billing). Agents work through the API and MCP.
- IMAP, POP3 or SMTP submission access, for people or agents. Workers cannot accept inbound TCP connections, and a mail server beside the Worker would be a second stateful system for one operator (gap register § 5).
- Bulk marketing campaigns. Marketing mail is supported per message with consent and unsubscribe headers, but there are no list-management or campaign features.
- Open tracking. A tracking pixel records when a person read a message without their knowledge, and image preloading makes the counts unreliable; delivery events and replies are the signals the service reports.
- A calendar. Pylota Identity keeps no events, agenda, recurrence engine or reminders; it reads and verifies iCalendar in mail, sends iMIP built by the integrator, and answers verified invitations on request (Calendar invitations). A second calendar would compete with the integrator’s own for the same facts.
- A file drive. Uploads have no paths, folders, downloads or sharing and live at most 7 days; long-lived files belong in the integrator’s own storage.
- Attachments fetched from URLs. Pylota Identity never fetches a URL to build an attachment (SSRF, content integrity, prompt injection; Uploads § 1). Upload the file instead.
- Becoming a telephony carrier or holding number ranges from a regulator. Numbers are bought from a provider (Telnyx) in each tenant’s own legal name (Phone numbers).
- Phone numbers for individuals and for sole traders (owner decision of 2026-10-26, Phone numbers § 1.1); and numbers bought by an agent without a person’s approval, given one by one or through a standing budget the person set.
- Call Control webhooks and media streaming through Pylota Identity (planned for v1.1); alphanumeric sender IDs; outbound MMS; WhatsApp, RCS and iMessage.
- Showing a vault value to an agent, a model or an API key, in any form. Agents use credentials through registered consumers and never see them (Vault).
- Payment cards, bank details and passkeys in the vault; CAPTCHA solving; storing bot-challenge clearance.
- A zero-knowledge or end-to-end encrypted vault. Pylota Identity Cloud holds the keys that decrypt the vault, and says so (Vault § 1.2).
- Credentialed fetch: the vault does not make outbound requests with a secret on an agent’s behalf in v1.0.
- OAuth 2.1 for the MCP endpoint (planned for v1.1; v1.0 uses API keys as bearer tokens; ADR 0016).
- MCP server-sent event notifications. MCP 2026-07-28’s
subscriptions/listencarries only list and resource changes, and an events primitive is not yet specified;mail_eventsand the WebSocket stream cover agents meanwhile (Event feed § 15.1). - Framework toolkit packages. Guides use each framework’s MCP client or the TypeScript SDK.
- Running on platforms other than Cloudflare Workers.
Unique selling propositions
Each proposition is a guarantee enforced in code, with the requirements and tests that prove it. Marketing copy (README, landing page) may only claim what this table lists.
| # | Proposition | Guaranteed by | Proved by |
|---|---|---|---|
| U1 | Answers you can check. Agentic search cites message IDs, and a deterministic verifier removes any sentence the evidence does not support | FR-SRCH-8, FR-SRCH-9 | F10–F13, NFR-QUAL-2 |
| U2 | One email per intent. Idempotency is required; an unknown outcome becomes uncertain and is never resent; plan limits never break a retry | FR-OUT-1, FR-OUT-2, FR-BILL-6 | G1, G2, L2, W3 |
| U3 | Identities outlive domains. Addresses move between domains with history and threads intact, with rollback and a clean 550 5.1.6 after retirement | FR-ADR-1–5 | A11, C3, live domain-change test |
| U4 | Never sends mail that fails authentication. Two-resolver health checks, aligned fallback in the same thread, suspension when ownership changes, and, for a relay we do not control, an alignment probe before the first send and every day | FR-DOM-4–6, FR-DOM-11 | H1, H4, H7, N18 |
| U5 | Built for untrusted input. Verdicts and trust flags on every message, hidden text stripped, fenced model input, quarantine release only with the human-review permission | FR-IN-4–9, FR-CON-6 | B10, B11, D2, D9, E1 |
| U6 | Your account, your receipts. Runs in the deployer’s Cloudflare account (EU optional); erasure returns per-store counts and empty probe queries | FR-PRV-1–6 | I1–I7 |
| U7 | Real team seats. Members, roles and seat limits are enforced, with an audit log of every privileged action and two-step verification that a workspace can require | FR-CON-2–5, FR-CON-10 | W8–W10, W27 |
| U8 | Tested against the edge cases. A public edge-case register where every row the service owns names its test, a MIME conformance corpus, and quality gates in CI | Release criteria §9 | the register itself |
| U9 | Nothing to keep running. One Rust Worker on Cloudflare primitives: no servers, no external database, no billing vendor in the request path | NFR-COST-1, NFR-BILL-2 | W2 |
| U10 | Agents that can prove who they are. Each identity signs short-lived assertions with its own Ed25519 key, which any service verifies against the identity’s published key set; the private key never leaves the Worker, and pausing the identity withdraws its keys at once | FR-IDN-6, FR-IDN-7, FR-IDN-9 | O1–O8, it::assertions::sdk_verifies |
Competitive landscape
Researched on 2026-10-09 from each product’s public documentation and repository. The AgentMail cells from “Authentication verdicts” down were researched again on 2026-10-17 (ADR 0017, gap register § 6); goshen-email was not re-read then, so its cells in the rows added on that date say “not compared”. On 2026-10-18 the AgentMail search cell was corrected from AgentMail’s OpenAPI document, whose search operations are “Full-text search”, and the plugin cell from its integration pages. Re-check before quoting externally. “–” means the capability is not offered or not documented.
| Capability | AgentMail (hosted) | goshen-email (FSL, self-host or hosted) | Pylota Identity |
|---|---|---|---|
| Identity separate from address; domain change with rollback | – (the address is the inbox) | – | Yes (U3) |
| Required idempotency; uncertain sends never resent | Optional keys | Yes | Yes, plus reconciliation (U2) |
| Keyword search | Yes | Yes (full-text) | Yes, with exact references |
| Semantic and hybrid search | – (full-text search only) | – | Yes, with reranking |
| Agentic search with verified citations | – | – | Yes (U1) |
| Domain health checks with aligned fallback | – | – | Yes (U4) |
| Triage | – | Yes (metered) | Yes, with deterministic rules |
| Plan metering | Hosted | Third-party (Autumn), fails closed when it is down | In-process atomic holds (U9) |
| Language | – | TypeScript | Rust |
| Authentication verdicts and quarantine before an agent reads | authentication_results; unauthenticated and spam mail hidden by label; DMARC-failing mail dropped under an enforcing policy | At the gateway | Per-message verdicts. Mail that Cloudflare Email Routing rejects for failing authentication never reaches the Worker; failing mail the Worker receives is quarantined with a reason. Nothing is accepted and then dropped silently (U5) |
| Prompt-injection screening | Agent Armor (Labs, US only): advisory verdict; Hold mode withholds a notification but still lists the mail | not compared | Opt-in screening hold (screening.mode: hold; the default monitor only records verdicts) that hides mail until a verdict; once held, it fails closed by default; release by a person (Screening) |
| Drafts and scheduled send | Yes; approval works only by withholding send permissions | not compared | Yes, with approval bound to the content; on Cloud only a person approves, unless the partner opts its tenants in to key approval (drafts.key_approval) (Drafts) |
| Event delivery | Webhooks (8 attempts in ~27.5 h, auto-disabled after 5 days without notice), polling queue, WebSocket (key in the URL) | not compared | Webhooks (72 h, dead letters, replay; an endpoint is disabled after 100 consecutive failures over at least 24 h, and webhook.disabled reaches platform and partner endpoints, never the tenant’s own), ordered pull feed, durable consumers, resumable stream (Event feed) |
| Calendar | Per-inbox calendar store (Labs, US only) | not compared | Verified iMIP in and out; the consumer’s calendar keeps state (Calendar invitations) |
| Team seats | 2 / 2 / 10 by plan | Listed; one member per account today | Enforced, with roles (U7) |
| Erasure with receipts | Delete per message, thread and inbox; optional 24 h expiry | Per inbox | Message, thread, counterparty, identity, tenant, with receipts (U6); per-mailbox retention (FR-PRV-7, P1) |
| Runs in your own cloud | “BYO cloud deployment” on Enterprise | Yes | Runs in your own Cloudflare account (U6) |
| SDKs | Python, TypeScript | not compared | Rust, TypeScript (SDKs and skills) |
| Agent self-sign-up | Yes; the human is optional | not compared | Yes, behind a flag; the accountable human is required (FR-IDN-2) |
| Agent skills and plugins checked against the contract | Skills repository; plugins for Claude Code, Codex, Cursor, ChatGPT and OpenClaw | not compared | Yes (FR-SDK-10) |
5. Scope and priorities
P0 must ship in v1.0. P1 ships in v1.0 unless it threatens the release, in which case it moves to
v1.1 with a written ADR. P2 is v1.1 or later.
| Area | P0 | P1 | P2 |
|---|---|---|---|
| Tenancy and keys | Tenants (live and test), API keys at four levels, partner keys for integrators on a shared deployment (FR-KEY-4), workspace policy self-service within ceilings (FR-TEN-4) | – | Public-key API credentials (GAP-23) |
| Identities | CRUD, idempotent create, pause, accountable human; agent signing keys and assertions (JWKS); the service sign-up ledger (FR-IDN-10) | Signed HTTP requests (Web Bot Auth, spike S13) | An OIDC-compatible “sign in as this agent” relying-party flow (GAP-24) |
| Addresses | Platform domain, aliases, promote, retire, rollback | – | – |
| Domains | Platform domain; cloudflare_zone; nameservers | dns_records (spike S11); send_only (S8); smtp_relay (S12); delegated_subdomain behind PM_CF_SUBDOMAIN_SETUP (S10); zone-file export (FR-DOM-15) | Mailgun and SendGrid inbound sources; a mailbox-avatar (BIMI) guide (GAP-32) |
| Inbound | Parse, verdicts, quarantine, loops, attachments, extracted text; calendar objects with verification and calendar.received (FR-CAL-1–7, FR-CAL-12, FR-CAL-13) | Malware scanner hook; screening hold for agent-steering mail (FR-SCR-1–12); batch reads and label changes (FR-IN-13); authentication detail (FR-IN-14); trusted ARC sealers (FR-IN-15) | Arabic reply attribution, once a conformance sample from real clients exists (GAP-21) |
| Outbound | Send, reply, reply-all, forward, idempotency, uncertain, suppression; drafts, approval before send and scheduled send (FR-DRF); uploads: a file staged once per identity (≤ 25 MiB, SHA-256 verified, classified and scanned) and attached by upload_id (FR-UPL) | Signed links for large files; iMIP sends, the stale-sequence guard and calendar replies (FR-CAL-8–11), on the Cloudflare transport once spike S1 records the raw send; identity-scope allow and block lists (FR-OUT-17) | – |
| Delivery | All six provider event types, per-recipient status; deliverability metrics: pause windows with thresholds and headroom, and event counts per hour and day by identity, tenant and domain (FR-MET) | Uncertain-send reconciliation | – |
| Search | Keyword, semantic, hybrid, agentic; facets; tenant scope | Contacts, find-related | – |
| Triage | Category, needs-reply, urgency, summary, risk flags; rules | Custom categories | – |
| Integrations | REST, OpenAPI, MCP (API key), CLI, Rust SDK, webhooks; wait long-poll and verification extraction (quarantine rule 5, unsolicited OTP, depends on it: E4, E5); the event feed, durable event consumers and the WebSocket event stream (FR-EVT-1–11); the calendar object on REST, MCP, the CLI and the console (FR-CAL-14) | TypeScript SDK @pylotahq/identity (FR-SDK-2–9); Python SDK pylota-identity and Go SDK github.com/PILOTAAI/pylota-identity-go, each in its own repository, and @pylotahq/identity as the JavaScript SDK (FR-SDK-25–27); the shared SDK conformance suite (FR-SDK-28); phone and vault helpers and the vault consumer entry point in every SDK (FR-SDK-29–31); SDK release and example checks (FR-SDK-32–33); agent skills and plugins (FR-SDK-10); MCP annotations from effect classes and client hints (FR-SDK-11); per-key MCP tool allow-list (FR-SDK-12); idvy mcp stdio (FR-SDK-13); CLI --schema, --query and idvy skills generate (FR-SDK-14); framework guides (FR-SDK-15); calendar-reply on REST, mail_calendar_reply and idvy calendar-reply (FR-CAL-10, FR-CAL-14); opt-in label events (FR-WH-6); webhook delivery headers (FR-WH-7); documentation links in errors (FR-API-3) | MCP OAuth 2.1; TypeScript agent-assertion verifier |
| Privacy | Retention, erasure with receipts, legal hold | Subject-access export; per-identity message expiry (FR-PRV-7) | – |
| Operations | Setup, deploy, doctor, metrics, DLQ consumers, test mode | Restore drill tooling | A second Pylota Identity Cloud jurisdiction, an owner decision (GAP-25) |
| Console | Sign-in, workspaces, members, roles, seats, inboxes, quarantine release, keys, domains, plan and usage; Cloud sign-up (waitlist and open); Google and GitHub sign-in; two-step verification (TOTP); the Overview; notifications; agent self-sign-up behind PM_AGENT_SIGNUP (Cloud, FR-ASU) | – | Passkeys; SSO (SAML/OIDC) |
| Plans and billing | Plan catalog, metering with holds, 402 billing_limit, usage API, Stripe checkout and portal, top-ups; usage alerts | – | Annual billing, invoicing; pay-per-call through x402 or MPP (GAP-26) |
Phone numbers (behind PM_PHONE, ADR 0020) | Catalogue with GB mobile, GB geographic and US local rows; compliance profiles and encrypted write-only KYC documents; phone requests approved by people; ordering with spend intents, attempt-scoped references and reconciliation; numbers on identities with history; release; per-tenant provider resources; signed provider webhooks; inbound and outbound SMS with the consent ledger, caps and the US 10DLC gate; verification codes with the ledger gate and the vault channel; the vapi voice route and approved outbound calls with disclosure; emergency settings; the port-out guard; the nightly reconciler; GBP rate card, spend caps (with a registration cap), Stripe invoice items and partner statements; adoption for Pylota’s migration with a dated exit; phone onboarding once per tenant and country, the standing purchase budget, the one-call purchase, capability facets and throwaway numbers (FR-PHN-1–23, 25–35, 37–54) | Ireland, Netherlands, US toll-free and the local rows for Germany, France, Spain and Italy; SMS screening by the classifier (FR-PHN-24); sip and forward routes; toll-free verification; port-in (FR-PHN-36) | Call Control and media streaming routes; alphanumeric sender IDs; outbound MMS; managed provider accounts per partner; a second provider (Twilio) |
Vault (behind PM_VAULT, ADR 0021) | login, api_key and session items bound to approved ledger entries and exact origins; write-only values sealed per version under a per-tenant key; grants and uses approved by people, bound to a digest; one-use tickets redeemed by registered consumers with signed requests and sealed packets; the consumer contract and conformance fixtures; TOTP and email codes into fills; sessions with filtering, write-back and expiry; hash-chained audit; kill switches; crypto-shred erasure; the six MCP tools and idvy vault; the import route for Pylota’s sessions (FR-VLT-1–6, 8–13, 15, 17, 21–26, 28) | Partner custody (FR-VLT-7); SMS codes into fills with the phone milestones (FR-VLT-16); TOTP (FR-VLT-14); rotation by hand, rotate_fill and rotate-after-use (FR-VLT-18); signing (FR-VLT-19); console reveal (FR-VLT-20); MCP and CLI tooling (FR-VLT-27); the session import route (FR-VLT-29); outbound ranges by embedded IPv4 in the fixtures (FR-VLT-30) | Credentialed fetch through the vault; share links to people; breach checks of stored passwords; SSH keys and documents |
6. Functional requirements
6.1 Tenancy and access
- FR-TEN-1 The service must support many tenants in one deployment. Every record belongs to exactly one tenant, except platform-level settings and the platform domain.
- FR-TEN-2 A tenant must be either
liveortest. Mail atesttenant sends must not leave the deployment (see FR-OUT-12). - FR-TEN-3 A tenant must be suspendable. While it is suspended, inbound mail is answered with a temporary failure for up to five days, then refused permanently, and every send is refused. On domains that receive through SES, which accepts mail before the Worker sees it, inbound mail is held for the same five days and then dropped without a bounce (FR-DOM-9).
- FR-KEY-1 API keys must be scoped at one of four levels:
platform,partner,tenantoridentity. Each key holds a list of permissions. A key can never create, read, rotate or revoke a key wider than itself. The one exception: a platform or partner key may grantidentities:sign, which it cannot hold, to a tenant or identity key it mints, and the grant is audit-logged. Deleting a workspace (a tenant-scope erasure) must need its own permission,tenants:erase, which a workspace admin and the keys an admin mints never hold. Identity keys must not holdvault:use,vault:approveorvault:admin(Vault § 17.2). - FR-KEY-2 Key secrets must be shown once, stored only as a keyed hash, support expiry, and
support rotation with an overlap window. No stored record, an idempotency record included, may hold
a secret: an idempotent replay of a response that carried one returns it without the secret
(
"secret_replayed": false). - FR-KEY-3 Tenant and identity scope must come from the authenticated key, never from the request body.
- FR-KEY-4 A deployment must support partners: integrators that run their own customers as
tenants of a shared deployment (Pylota on Pylota Identity Cloud). A platform key creates, suspends and
deletes a partner and mints its partner keys. A partner key must be able to create tenants and
act on them as a platform key does, and on nothing else: a tenant created by another partner or by no
partner, and everything in it, must answer it as a missing one does. It must never mint a partner
or platform key, hold
platform:ops,partners:manageoridentities:sign, or change a tenant’s billing mode, which comes from the partner’sdefault_billing_mode. A partner key must not raise its tenants’ limits above the deployment default or the platform’s value (lower-only policy fields), set a platform-only policy field, lift a platform suspension or resume an abuse pause, and a partner must be bounded bymax_tenantsand a tenant-creation rate. A partner’s webhook endpoints must receive only its own tenants’ events. A suspended partner must be contained: its keys and its tenants’ API keys refused and deliveries to its and its tenants’ endpoints held, while inbound mail is still stored. A partner must not be deletable while it has a tenant that is not erased, and deletion must keep the row (soft delete), so a tenant’spartner_idnever changes (REST API › Partners, Security › Partner keys). - FR-KEY-5 A key must record the console user behind it, if any, and keys minted from it must inherit that record. Removing that person from a workspace must revoke their keys of that workspace, and lowering their role must revoke those holding a permission the new role lacks. However many keys one tenant or one partner mints, its request rate must stay bounded by a shared per-tenant or per-partner limit, and the number of its active keys by a cap (Security › Who minted a key, Security § 10).
- FR-TEN-4 A workspace must be able to change its own tenant policy: a tenant key holding
policy:write, and a console owner or admin, may set the free fields and lower the lower-only fields, never above the strictest of the deployment default, the platform operator’s value and, for a partner’s tenant, the partner’s value. Platform-only fields (among themvault.allowed) andquarantine.key_releasemust stay out of its reach, identity keys must not holdpolicy:write, and a key must not loosen a guard field (allow-list only, quarantine on authentication failure, the spam threshold, unsolicited-code quarantine,vault.min_approval,vault.codes_into_fills_only) where only people may release quarantined mail (FR-CON-6). Every policy write must be audited and evented, and concurrent writes must not lose one another (Workspace policy).
6.2 Identities and addresses
- FR-IDN-1 Create, read, list, update, pause, resume and delete identities. A create with a
client_idthe tenant has already used must return the existing identity, or409if the request differs. - FR-IDN-2 An identity must record an accountable human (name and email). Until it has one, it must not send, except that the identity of a provisional agent sign-up may send to the address of the human it named, within FR-ASU-7, until that human verifies (FR-ASU-10).
- FR-IDN-3 A paused identity must still receive and store mail. It must refuse every send
with
identity_paused. - FR-IDN-4 Deleting an identity must run an identity-scope erasure and tombstone all of its addresses permanently.
- FR-IDN-5 Not assigned. IDs are never reused, so the gap stays.
- FR-IDN-6 Each identity must have Ed25519 signing keys that are generated, sealed and used only
inside the Worker and are never exported or imported. An identity has one
activekey, created on its first signing request or on request, and must support rotation with an overlap (PM_IDENTITY_KEY_OVERLAP_DAYS, default 7 days) during which the previous key stays published, and revocation that removes a key from publication at once. Key IDs are RFC 7638 thumbprints (Agent signing keys). - FR-IDN-7 An identity must be able to mint short-lived agent assertions (JWT signed with
EdDSA, 60–600 seconds) for an audience it names. An assertion carries the identity’s address, display name and workspace name and whether it has an accountable human, and must never carry the owner’s personal data. Each identity’s public keys must be published as a JWKS at/.well-known/jwks/{identity_id}.json, so any service can verify an assertion; the Rust SDK and the CLI must include a verifier. - FR-IDN-8 An identity should be able to obtain Web Bot Auth signature headers (RFC 9421, signed
with the deployment key, with its address in a signed
Fromheader) for HTTP requests its agent makes, with the deployment’s key directory published at/.well-known/http-message-signatures-directory. It is off unless the operator setsPM_WEB_BOT_AUTH=on(allowed only once spike S13 has passed) and the tenant’s policy hasweb_bot_auth.allowed: true. - FR-IDN-9 Pausing an identity, or suspending its tenant, must stop new signatures at once and
withdraw the identity’s JWKS (
404). Deleting or erasing an identity must delete its keys and tombstone their key IDs, so a deleted key ID is never published again. - FR-ADR-1 An identity must support several addresses over time. Each address has a role
(
primaryoralias) and a status (pending,active,retiringorretired). - FR-ADR-2 Promoting an address must:
- make it the primary, so new threads send from it;
- keep existing threads replying from the address the other party wrote to;
- move the old primary to
retiringfor a configurable grace period (default 90 days), except the identity’s platform address, which becomes anactivealias. The platform address is the fallback address of FR-DOM-6, so it must never be retired or deleted (409 address_in_use).
- FR-ADR-3 A retiring address must keep receiving mail into the same identity. After the grace
period it becomes
retired, and mail to it must be refused with550 5.1.6. - FR-ADR-4 Promoting a retiring address again must roll back the change.
- FR-ADR-5 A deleted or erased address must never be assigned to a different identity. Mail to an
erased address must get
550 5.1.1, with no hint that the address existed. - FR-ADR-6 Reserved and confusable local parts must be refused:
- on the shared platform domain, every RFC 2142 role name (including
info,marketing,salesandsupport) where it would stand alone as the local part (usernames of the default tenant, whose address suffix is empty); mail to the operational names goes to the operator rather than an agent; - on a tenant’s own domain, only
postmasterandabuse, which route to the tenant’s owner contact; the other role names are allowed there, because the tenant owns the domain; - everywhere,
noreply,mailer-daemonand similar names, and names the service uses itself; - homoglyph look-alikes of the names reserved on that domain.
- on the shared platform domain, every RFC 2142 role name (including
- FR-ADR-7 Internationalised (SMTPUTF8) local parts must be refused with a clear error, because Cloudflare Email Routing cannot route them. Unicode display names are allowed.
- FR-IDN-10 An agent must create a third-party account with its identity’s address only through
the service sign-up ledger: it records the service, the account identifier, the address and the
purpose, and an operator approves or rejects each entry, in the console or with a key holding
accounts:approve, which identity keys must not hold; approval by an API key follows the rule of FR-CON-6. Where the tenant’saccounts.require_approvalis on (the default on Pylota Identity Cloud, which no workspace or partner can turn off), a verification code or link must reach an agent only when an approved entry matches the mail (the authenticated sender’s organisational domain and the receiving address); other such mail must be held for review, never dropped. Entries must emitaccount.requested,account.approved,account.rejectedandaccount.closed, expire when undecided, and be deleted with the identity or tenant (Service sign-up ledger). A ledger entry may list up to fivelogin_domainswhere the account signs in, shown apart on the approve page, and may carry avault_loginthat the approval turns into a vault login item and its first grant (Vault § 3.3, § 3.5).
6.3 Domains
- FR-DOM-1 The deployment must have one platform domain: a zone apex with catch-all routing to
the Worker. All tenants can use it. Addresses on it take the form
{username}{tenant_suffix}@{platform}. - FR-DOM-2 A tenant may add its own domains. The connection method chosen when a domain is added
(FR-DOM-7) fixes its kind:
zone(a zone, apex or subdomain, in the deployment’s Cloudflare account),delegated(a child zone for one subdomain) orexternal(a domain whose DNS stays at any other host). - FR-DOM-3 DNS records shown to users must come from the provider API at request time. They are never copied from documentation or templates.
- FR-DOM-4 Verification and health checks must run on a schedule:
- every 15 minutes for each domain;
- immediately after any change;
- with two independent DNS-over-HTTPS resolvers, and two consecutive results before state changes.
- FR-DOM-5 The domain health states
healthy,degraded,failingandsuspended, and the recovery transition (reported asdomain.recovered), must behave as specified in Identities, addresses and domains. In particular, the service must never send as a domain whose authentication records are broken, and must never send as a domain whose ownership signals have changed. - FR-DOM-6 When a domain fails, sending must fall back to the identity’s platform address,
keeping the display name and thread continuity. Each fallback message is marked
sent_via_fallback. The platform address therefore staysactivefor the identity’s whole life (FR-ADR-2). - FR-DOM-7 Adding a domain must use one of six connection methods:
cloudflare_zone,nameservers,dns_records,send_only,smtp_relayanddelegated_subdomain. The method fixes the domain’skind, its inbound source (inbound) and its outbound transport (transport), as specified in Domains on any DNS host. Users must not combine them by hand. A request withoutmethodmaps the oldkind(zone→cloudflare_zone,external→send_only). - FR-DOM-8
dns_recordsmust connect a domain, apex or subdomain, whose DNS stays at any host, with Amazon SES in both directions. The customer publishes one MX, three DKIM CNAMEs, a MAIL FROM MX and TXT, and an ownership TXT, each returned by the API withnameandhost. The domain must use a custom MAIL FROM (pm-bounce.{domain}), and health checks must cover every record and setting its method needs. - FR-DOM-9 Mail received through SES must be ingested exactly once per S3 object and recipient:
an SNS HTTPS push, an SQS backstop drained every minute, and the
ses_ingestledger. The SNS endpoints must accept only signature version 2. On an SES domain, mail to an unknown address must be dropped without a bounce, and mail to a retired address must be bounced with550 5.1.6. - FR-DOM-10
send_onlymust let agents send as addresses on a domain whose mailbox stays with the customer’s provider: SES sends, and inbound mail arrives through a forwarding rule in the customer’s mailbox to the identity’s platform address. Each address on such a domain must report itsforwardingstate (unverified,okorfailed), and a forwarding test must be available. - FR-DOM-11
smtp_relaymust send through the customer’s own provider over SMTP submission on port 465 or 587 only, and must require TLS before any credentials are sent. The credentials are sealed and never returned. An alignment probe must pass before the first send and again every day; a failing probe moves the domain tofailing, and sends fall back to the platform address (FR-DOM-6). - FR-DOM-12
nameserversmust create a Cloudflare zone for a domain used only for mail. It must refuse a name that has A, AAAA or MX records, or a CNAME, A or AAAA record atwww, with409 domain_not_dedicatedunless the request carries"confirm_dedicated": true. A tenant key may use it only when its policy hasdomains.allow_create_zone: true.delegated_subdomainmust stay off unlessPM_CF_SUBDOMAIN_SETUP=on, the Cloudflare account is Enterprise, and spike S10 has passed. - FR-DOM-13 Onboarding must never take over, change or delete a provider object (a Cloudflare zone,
sending domain, routing setup or catch-all, or an SES identity) that the deployment did not create for
that tenant’s domain: a tenant’s add that finds one is refused with
409 domain_exists. The deployment must record the provider IDs it creates for each domain, and removal and cleanup must act on those IDs only. Removing one mail domain must not stop mail to the other mail domains of its zone. - FR-DOM-14 A domain that has never been verified must be removed 14 days after it was added, and must be evictable by another tenant that proves control of its DNS with a claim record; a tenant may hold at most 5 such domains. The answer to a name held by someone else must be the same whoever holds it and in whatever state, so it reveals nothing about other tenants.
- FR-DOM-15
GET /v1/domains/{domain_id}/records?format=bindmust return the domain’s records as an RFC 1035 zone fragment built from the same provider-sourced records as the JSON form (Parity additions § 9).
6.4 Inbound
- FR-IN-1 Raw mail must be written to object storage before the message is acknowledged. If the write fails, the sender must get a temporary failure.
- FR-IN-2 Unknown addresses get
550 5.1.1. Retired addresses get550 5.1.6. Suspended tenants get a temporary failure (4xx) for up to five days, then550 5.2.1(FR-TEN-3). Domains that receive through SES cannot answer during the SMTP session; FR-DOM-9 sets their behaviour. - FR-IN-3 Every message must be parsed with size and depth caps. Mail that cannot be parsed is
kept raw and flagged
parse_degraded, never dropped. - FR-IN-4 Every message must carry:
- an authentication verdict (SPF, DKIM, DMARC, ARC), with the domain each method checked and whether it aligned (FR-IN-14);
- a spam signal;
known_sender;- a quarantine decision.
- FR-IN-5 Messages that fail authentication, carry a risky attachment or exceed the spam threshold
must be quarantined. Quarantined mail is hidden from agents unless the key holds
quarantine:review. A verification message for a vault login item’s channel must be storedhiddenwithquarantine_reason = 'vault_code', withheld from every agent surface and from API keys whatever their permissions, and never released (FR-VLT-15). - FR-IN-6 Automated mail must be classified and marked
automated, so agents never auto-reply to it. This covers:- auto-replies (RFC 3834) and out-of-office replies;
- mailing lists;
- bounces (DSNs, which update delivery state instead of reaching agents);
- read receipts.
- FR-IN-7 Every message must expose
text, sanitisedhtml, andextracted_text(the new content with quoted history and signatures removed). HTML-only mail must produce text. - FR-IN-8 Attachments must be stored and fetchable. Text must be extracted for PDF, Office and text formats, and for images when the tenant enables it.
- FR-IN-9 Hidden text (zero-width characters, CSS-hidden content, white-on-white) must be removed from agent-facing text and raised as a risk flag.
- FR-IN-10 Messages and threads must be listable and readable through the API, MCP and console.
Thread lists and their counts show only visible mail (never quarantined, hidden or throttled
messages). Labels, read state and archiving must be settable per message and per thread, and
is:unreadmust follow the read state. - FR-IN-11 An agent must be able to wait for new mail (
wait, a long poll with filters), and verification codes and links in received mail must be extracted into a structured field.waitwithkind=verificationmust answer403 policy_deniedwhen the tenant’svault.codes_into_fills_onlyistrue. - FR-IN-12 Unsolicited inbound mail must be capped per identity and per tenant by source, so that mail nobody asked for cannot exhaust storage, triage or model spend.
- FR-IN-13 The service must read and update up to 100 messages of one identity in one request
(
batch-get,batch-update). An update must be atomic inside the identity’s mailbox, must offer a per-message label precondition (an atomic claim), and must report IDs the key cannot see together with missing ones, without saying which is which (Parity additions § 2). - FR-IN-14 The trust metadata of every inbound message must name the domain SPF checked and whether it aligned, each DKIM signature’s domain, selector, result and alignment, the domain and policy DMARC evaluated and which method aligned, and the ARC sealer when an ARC chain validated (Parity additions § 5).
- FR-IN-15 A message that fails DMARC must get the verdict
arc_rescued, and must not be quarantined for authentication, only when its ARC chain validates, its newest sealer is on the platform-only listinbound.trusted_arc_sealers, that sealer signed theFromheader and recordeddmarc=passfor theFromdomain, the seal is recent, and the sealer saw the message addressed to the receiving identity. Mail with that verdict must never release a verification code (Parity additions § 6).
6.5 Outbound
-
FR-OUT-1 Send, reply, reply-all and forward must require an
Idempotency-Key:- the same key with the same request returns the original result with
deduplicated: true; - the same key with a different request returns
409 idempotency_conflict.
Keys are kept for 30 days.
- the same key with the same request returns the original result with
-
FR-OUT-2 A transport outcome that cannot be known (a timeout, or a connection lost after submission) must set the status to
uncertain. The service must never resend it automatically. -
FR-OUT-3 Policy must run before transport:
- the identity and tenant are active, and the identity has an accountable human;
- the approval requirement of tenant policy (FR-DRF-4);
- per-identity and per-tenant caps;
- suppressions and block lists;
- the recipient-count limit;
- the size limit;
- no automatic reply to automated mail.
-
FR-OUT-4 Suppressed recipients must be removed per recipient, with the rest delivered and each outcome reported. A send where every recipient is suppressed ends
suppressed. -
FR-OUT-5 Replies must set
In-Reply-ToandReferences. They must send from the address the counterparty last wrote to, unless that address is retired. -
FR-OUT-6 Every outbound message must carry a thread token in its
Reply-Tosub-address, where the domain supports it. -
FR-OUT-7 Agent-initiated automatic replies must carry
Auto-Submitted: auto-replied. -
FR-OUT-8 Marketing mail (
kind: marketing) must include RFC 8058 one-click unsubscribe headers and a visible link, and must be refused without them. -
FR-OUT-9 Two concurrent sends into the same thread must be serialised. The second gets
thread_busyif the first holds the lock for longer than 10 seconds. -
FR-OUT-10 Attachments must be refused once the message exceeds the transport limit (5 MiB with Cloudflare). A tenant may enable expiring signed links instead. Attachments may also come from uploads (FR-UPL-4); the transport limit and
large_attachmentsapply to them alike, and a message’s attachments total at most 26,214,400 decoded bytes (FR-UPL-5). -
FR-OUT-11 A message may be cancelled while it is
queued. -
FR-OUT-12 Test tenants must use the simulator transport:
- mail to
*@simulator.invalidproduces a scripted outcome (delivered,bounce,softbounce,complaint,deferred,reject,timeout); - mail to identities of the same tenant, or of a tenant with the same partner, is delivered internally;
- all other recipients are refused with
test_mode_recipient.
- mail to
-
FR-OUT-13 By default an identity must send only to a recipient that:
- it has written to before;
- is allowed by an effective send-allow entry for that identity (FR-OUT-17);
- is the authenticated sender of mail it is answering;
- for a send from a draft whose current revision carries a valid approval, is one of the recipients that approval covers (FR-DRF-6);
- for a calendar reply, is the organiser of the verified invitation it answers (FR-CAL-10).
Other recipients are suppressed unless the identity’s
require_known_recipientis turned off. -
FR-OUT-14 Any send whose computed hop count reaches the loop limit must be refused with
loop_detected, whatever itskind. -
FR-OUT-15 Marketing mail must leave through the SES or SMTP transport, never through Cloudflare Email Service (transactional only). A marketing send that would use Cloudflare is refused with
marketing_needs_ses, at submit and again before transport. -
FR-OUT-16 Tenants must be able to manage allow and block lists for sending and receiving, by address or by domain, for the whole tenant or for one identity (FR-OUT-17).
-
FR-OUT-17 Allow and block lists must also be settable per identity. For each direction and address, an identity entry that matches must override the tenant’s entries of the same or a coarser granularity, but an identity entry for a domain must not override a tenant entry for the exact address; among the entries left, block must win over allow. No list entry may override a suppression, a test-mode rule, a daily cap, a sending pause or an authentication quarantine (Parity additions § 3).
6.6 Delivery
- FR-DLV-1 Provider events (
delivered,deferred,bounced,failed,rejected,complained) must update each recipient’s status and emit webhook events. - FR-DLV-2 A hard bounce must create a suppression. A complaint must create a permanent suppression and count towards the identity’s complaint rate.
- FR-DLV-3 An identity whose complaint rate exceeds 0.3% over its last 1,000 sends, or whose bounce
rate exceeds 5% over its last 200, must be paused automatically with reason
abuse_threshold. This applies to every identity except the deployment’s system identity, whose outcomes are recorded but never pause it (its bounces and complaints pause the affected person’s notifications instead). The identity’s current rates, thresholds and headroom are readable before the pause applies (FR-MET-1). - FR-DLV-4 Uncertain sends should be reconciled from provider events by matching sender,
recipient and subject within 30 minutes. A match moves the send to its real status with
reconciled: true. - FR-DLV-5 DSNs that do not match a message we sent (backscatter) must be dropped and counted.
- FR-DLV-6 A tenant or a tenant sending domain whose complaint or bounce rate reaches the provider’s review rate must be paused automatically, and a paused tenant or domain must never fall back to the platform domain. The tenant’s or domain’s current rate, threshold and headroom are readable before the pause applies (FR-MET-1).
- FR-DLV-7 A person must be able to resolve an
uncertainsend assentornot_sent.
6.7 Threading
-
FR-THR-1 An inbound message joins a thread by, in order:
- a valid thread token in the recipient sub-address;
In-Reply-ToorReferencesmatching a stored message;- the
UIDandORGANIZERof a verified calendar object matching a calendar message of the mailbox; - otherwise it starts a new thread.
The subject alone must never join a thread.
-
FR-THR-2 A forwarded message (
message/rfc822part) must be parsed as a nested message and must not be merged into the outer thread.
6.8 Search
-
FR-SRCH-1 Four modes must ship together, returning one result shape:
keyword,semantic,hybrid(the default) andagentic. -
FR-SRCH-2 Keyword search must be consistent with the mailbox: a message is searchable in the same transaction that stores it.
-
FR-SRCH-3 The query language must support:
from:,to:,participant:,subject:,ref:,label:;has:attachment,filename:,type:;after:,before:,newer_than:,older_than:;in:inbound|outbound,thread:,is:unread|needs_reply|quarantined,category:;- quoted phrases,
OR, and-negation.
Queries must be parsed into a typed tree, and raw input must never reach the FTS engine.
-
FR-SRCH-4 Exact references (vehicle plates, invoice, order and PCN numbers, amounts, phone numbers, plus tenant-defined patterns such as booking numbers) must be extracted at ingest and matched exactly.
-
FR-SRCH-5 Results must include facets (
sender,sender_domain,month,label,attachment_type,category), awhylist per hit, and trust metadata. They must respect size budgets (limit,snippet_chars, a byte cap that setstruncated). -
FR-SRCH-6 Cursors must pin an
as_ofpoint, so pagination is stable while mail arrives. -
FR-SRCH-7 Semantic results must report
semantic_coverage, the share of the mailbox embedded. -
FR-SRCH-8 Agentic search must:
- run a bounded loop of planning, searching, judging and refining;
- stream progress over SSE on request;
- return the evidence, an answer, a confidence value and a step trace;
- remove any answer sentence whose citations fail a deterministic check (each cited ID is in the evidence set, and each quoted phrase appears in the source).
-
FR-SRCH-9 Agentic search must return
insufficient_evidencewhen the evidence does not answer the question,budget_exhaustedwhen it runs out of budget, and degrade to hybrid search (withdegraded: true) when the model is unavailable. It must never return a fabricated answer. -
FR-SRCH-10 Tenant scope (all of a tenant’s identities) must require a tenant-level key.
-
FR-SRCH-11 Erasure must remove keyword rows, references and vectors together. A probe query after erasure must return nothing.
-
FR-SRCH-12 Search should offer a contacts lookup and a find-related lookup for a message.
-
FR-SRCH-13 An agentic answer must be marked as untrusted, model-written text. Each citation must carry the trust of its source, and a sentence that cites only unauthenticated or steering-suspected mail must be removed.
6.9 Triage
- FR-TRI-1 Every inbound, non-quarantined message must be triaged asynchronously. Triage sets:
category: from the built-in list, or the tenant’s custom list;needs_reply: 0 to 1;urgency: 0 to 3;summary: at most 280 characters;language: BCP 47;risk_flags.
- FR-TRI-2 Deterministic rules (tenant-defined and built-in) must run before the model. They can set fields and skip the model.
- FR-TRI-3 Triage is advisory. It must never send, delete or release a message.
- FR-TRI-4 The triage model must receive mail content as fenced, untrusted data. Its output
must be validated against a schema, and invalid output is recorded as
failed, never guessed. - FR-TRI-5 Triage may be re-run on a stored, visible message. A re-run on a quarantined,
screening, hidden, throttled or delivery-report message must be refused with
triage_not_eligible.
6.10 Events and webhooks
- FR-WH-1 Webhook endpoints must be configurable at platform, partner and tenant level, with event-type and identity filters.
- FR-WH-2 Payloads must be signed with Standard Webhooks, using a separate secret per endpoint. Rotation must support an overlap window, during which both signatures are sent.
- FR-WH-3 Delivery must retry with backoff for up to 72 hours, then move to a dead-letter state, from which events can be replayed.
- FR-WH-4 Payloads must be thin: IDs, a header summary, verdicts, triage, and at most 64 KB of extracted text. Full content is fetched through the API.
- FR-WH-5 Endpoint URLs must be HTTPS. Private, loopback and reserved addresses are refused, redirects are not followed, and responses are capped in size and time.
- FR-WH-6 A tenant may opt in to
message.labels_changed. The event must be delivered only to endpoints that name it (never through*), must cover a whole request in one event per 100 messages, must never be emitted for state the service sets itself, and must never name a message the endpoint could not receive (Parity additions § 4). - FR-WH-7 A webhook endpoint may carry up to 10 static request headers. Their values must be write-only and sealed at rest; names that would change how the request is framed, routed or attributed must be refused; and a change of the endpoint’s host must remove them (Parity additions § 8).
6.11 Interfaces
- FR-API-1 The REST API is versioned under
/v1and described by OpenAPI 3.1, generated from Rust types and served at/openapi.json. - FR-API-2 Every error must use the error envelope, with
retryableset and adocslink (FR-API-3). - FR-MCP-1 An MCP server must be served at
/mcpover Streamable HTTP, exposing the tools in MCP reference. It is authenticated with an API key in v1.0. Tool scope must follow the key. - FR-CLI-1 The
idvyCLI must cover setup, deploy, doctor, administration and mail operations, with--jsonoutput for every command. - FR-SDK-1 The Rust SDK must cover the whole REST API.
- FR-SDK-2 The project must ship a TypeScript SDK, the npm package
@pylotahq/identity, built in its own repositoryPILOTAAI/pylota-identity-typescript(ADR 0018), with exactly one method peropenapi.yamloperation not markedx-sdk: false, generated from theopenapi.jsona release publishes, with no runtime dependencies. It must run on every Node.js line from its first release to its end of life, starting with Node.js 22, on Cloudflare Workers, on Deno and on Bun, and its declarations must type-check understrict,exactOptionalPropertyTypesandnoUncheckedIndexedAccess(SDKs, skills and agent tooling §2). - FR-SDK-3 The SDKs must never generate an idempotency key for an operation marked
x-idempotency: required(the mail sends, calendar reply and draft send, and the phone and vault operations their designs mark, such as a phone purchase, an SMS send and a vault use), and must send the same key and the same body bytes on every retry of one call. Every SDK must retry only failures that the error envelope marksretryable, and network failures and proxy502,503and504only for aGETor a request that carries an idempotency key; must honourRetry-Afterup to a bound and throw beyond it; and must end a call whose outcome it could not learn with an error that carries the key. - FR-SDK-4 The SDK must give an
uncertainmessage a typed outcome that no SDK code path resends, and must treat a status it does not know as neither terminal nor safe to resend. - FR-SDK-5 The SDK must verify Standard Webhooks signatures over the raw request bytes only, in
constant time, against every configured secret (rotation overlap), with a timestamp tolerance of 300
seconds by default and at most 600, and a distinct reason for each failure. Its webhook handler
must never answer
410, or a4xxto a validly signed delivery. - FR-SDK-6 The SDK’s list,
waitand event helpers must never lose an item silently: pagination ends with the error on410 cursor_expired, bounded collection reportstruncated,waitkeeps onesinceacross retries, the stream resumes from its last cursor and stops on an authentication failure, and410 cursor_expiredfrom the feed or stream raises a gap error instead of continuing from another position. - FR-SDK-7 The SDKs must tolerate unknown fields, enum values, event types and error codes from a newer deployment. Every SDK must report an operation that a deployment lacks as unsupported by that deployment, never as a missing resource.
- FR-SDK-8 The SDK must never expose the API key in errors, logs or serialised objects, must
refuse to run in a browser or against a base URL that is not
https(localhost excepted), and must follow no redirect. - FR-SDK-9 The TypeScript SDK’s major version must be the API’s path version, and each SDK
release must name the Pylota Identity release whose contract it was generated from. It must be
published only by the SDK repository’s release workflow through npm trusted publishing with
provenance, from a tarball listed in that repository’s owner-signed
SHA256SUMS, and a pre-release must not be published. - FR-SDK-10 Each release must include agent skills in the Agent Skills format, with plugins for
Claude Code, Codex and Cursor, that teach safe sending, mail as untrusted data, verification codes
through the service sign-up ledger and
wait, drafts for approval, search with citations and the event feed. They must carry the release version and must not contain a secret or an executable component. CI must fail when a skill names a tool, route, field, error code, command or limit that the contract of the same commit lacks, or lacks a rule the rule registry assigns to it. - FR-SDK-11 Every MCP tool must set all four annotations from a declared effect class, must
carry
_meta["anthropic/maxResultSizeChars"]when its result can exceed 50,000 characters, and its description, like the server instructions, must stay within 4,096 characters. - FR-SDK-12 An API key must be able to carry
mcp_tools, a list of MCP tools that narrows what its permissions and level allow. A tool outside the list must be hidden and answer as an unknown tool. The list must be validated when the key is minted, kept by rotation, returned on the key object and onGET /v1/me, and recorded in the audit log. - FR-SDK-13
idvy mcp stdiomust bridge a stdio MCP client to the deployment’s/mcpwith the key from the environment or a profile, never from a flag; it must only narrow the tool list and must never retrytools/call.idvy mcp configmust print setup for Claude Code, Claude Desktop, Cursor, Codex and the Claude Agent SDK without the key. - FR-SDK-14 Every CLI command must describe itself with
--schema(input, output and error schemas and exit codes) without reading configuration, needing a key or using the network, and must accept a JMESPath--querythat applies only to success documents and never changes the exit code.idvy skills generatemust write the skills of its own version and must not overwrite a locally modified file unless forced. - FR-SDK-15 The docs must include guides for the Vercel AI SDK, the OpenAI Agents SDK, the Claude Agent SDK and LangChain, TypeScript, JavaScript, Python and Go SDK guides, a vault consumer guide and an agent skills guide, whose code examples type-check (or compile) in CI against pinned versions.
- FR-SDK-25 The project must ship a Python SDK, the PyPI package
pylota-identity(importpylota_identity), built in its own repositoryPILOTAAI/pylota-identity-python, with blocking andasyncioclients that have exactly one method peropenapi.yamloperation not markedx-sdk: false. It must support every CPython line from its release to its end of life, starting with 3.11, and must depend at run time only onhttpx, withwebsocketsandcryptographybehind the extraseventsandvault-consumer(SDKs, skills and agent tooling § 3.5). - FR-SDK-26 The project must ship a Go SDK, the module
github.com/PILOTAAI/pylota-identity-go, built in its own repository of that name, with exactly one method per such operation. It must support the Go releases the Go project supports, starting with 1.26, and must depend only on the standard library andgithub.com/coder/websocket; tools must live in a separate module (§ 3.6). - FR-SDK-27
@pylotahq/identitymust be usable from plain JavaScript with the same run-time refusals as from TypeScript; there must not be a second JavaScript package (§ 3.7). - FR-SDK-28 Every SDK must implement FR-SDK-3 – FR-SDK-8 with the behaviour the shared conformance
suite of each release defines, and must not adopt a contract whose conformance cases it does not all
pass. The suite must be generated from
crates/core, and published in the release’s signed fixtures asset (§ 3.2). - FR-SDK-29 Every SDK must offer the one-call phone purchase, phone set-up status,
waitfor SMS and SMS outcome classification, returning a pending approval and a taken number as typed results, never retrying a purchase with another number and never resending anuncertainSMS. Its approval methods for phone requests, vault grants and vault uses must take the digest from the caller and must never fetch one to fill in or retry an approval (§ 3.3). - FR-SDK-30 Every SDK must offer the vault consumer helpers (origin canonicaliser, request signer, redeem with HPKE packet opening, report, write-back, the ticket-origin check and the redactor) in an entry point separate from its default import, producing exactly the outputs of the conformance vectors; it must never retry a redemption after the request may have reached the service, must give packet fields and keys no string, JSON or error form, and must let the caller overwrite packet plaintext (§ 3.4).
- FR-SDK-31 A vault ticket must be treated as a key in every SDK: never in a URL, a log, an error or a string form beyond its lookup prefix.
- FR-SDK-32 Each Python and Go SDK release must name the Pylota Identity release whose contract it
was generated from, must have its artefacts listed in an owner-signed
SHA256SUMS, and must be published only by its repository’s release workflow: Python by PyPI trusted publishing with attestations, Go by pushing the tag after signing and checking the proxy’sh1:hash against the signed one. A pre-release must not be published (§ 3.5, § 3.6). - FR-SDK-33 Every code example of an SDK, on the landing page and in the docs, must be checked in the
CI of the SDK it uses at the contract’s tag, and each SDK’s package metadata must state the licence
Apache-2.0, withLICENSEandNOTICEin every published artefact. - FR-API-3 Every error envelope must carry
docs, an absolute link to the code’s anchor on the deployment’s published errors page, and every error code must have that anchor (Parity additions § 10).
6.12 Privacy
-
FR-PRV-1 The jurisdiction (
euordefault) must be chosen at setup and applied to D1, R2 and every Durable Object. -
FR-PRV-2 Retention must be configurable per tenant:
- raw MIME: 90 days by default;
- parsed messages: kept by default;
- events and delivery logs: 30 days by default (
retention.events_days, 1–365); - messages of one identity: deleted a set number of hours after they are stored, when the identity sets
retention.message_hours(FR-PRV-7).
Every purge must write an audit event.
-
FR-PRV-3 Erasure must be supported per message, thread, counterparty, identity and tenant. It must return a receipt counting what was deleted in each store. Every scope must also delete the drafts it covers and count them (
drafts_deleted, FR-DRF-10). Identity and tenant scopes must also crypto-shred vault items and countvault_items_deleted,vault_versions_shredded,vault_keys_shredded,vault_uses_deletedandvault_audit_deleted. -
FR-PRV-4 A legal hold on a thread must stop retention and erasure from deleting it. Erasure receipts must list each held item.
-
FR-PRV-5 Subject-access export must produce every message to or from a counterparty across a tenant’s identities, as
.emlplus JSON. -
FR-PRV-6 Logs must never contain message bodies, attachment content, or clear-text email addresses.
-
FR-PRV-7 An identity may set
retention.message_hours(1–8,760). Each of its messages, with its attachments, extracted text, index rows, vectors and drafts, must then be erased within 15 minutes of reaching that age, except under a legal hold; a retried send must never be sent again after its message expired; and each day’s expiries must be recorded in the audit log with counts per store (Parity additions § 7).
6.13 Operations
- FR-OPS-1
idvy setupmust create every Cloudflare resource idempotently, and must be safe to re-run. - FR-OPS-2
idvy deploymust deploy a prebuilt, checksum-verified Worker bundle by default, so self-hosters need no Rust toolchain. It must also support--from-source. - FR-OPS-3
idvy doctormust check DNS, routing, sending, event subscriptions, bindings, secrets and quota, and print a fix for each failure. - FR-OPS-4 Every queue must have a dead-letter queue with a consumer that records and alerts.
- FR-OPS-5 Pylota Identity Cloud production must be commissioned from the written Cloud commissioning page: its full configuration, scoped and short-lived credentials, the partner bootstrap, the checks, and three gated phases (partner-only, waitlist, open), so that Pylota’s integration runs on Cloud before public sign-up opens.
- FR-OPS-6 Pylota Identity Cloud must go live product by product (mail, phone numbers, the vault,
the SDKs) only through the gates of Cloud commissioning, each
opened when every row of Launch readiness that blocks it is
doneorn/awith evidence: build milestones, production checks, legal pages and processors, counsel and tax answers, licence obligations, security sign-off and operations.release-gatemust refusev1.0.0while a row that blocksv1.0is open. Acceptance:xtask::launch_readiness_refuses_open_blockers,cli::doctor::launch_readiness_gates.
6.14 Console and workspaces
- FR-CON-1 The console must be served by the same Worker at
/console, rendered on the server in Rust, and must work fully without JavaScript. Every state change is a POST with a CSRF token. - FR-CON-2 A workspace is a tenant. Each workspace must have exactly one owner and any number of
members up to its seat limit. Roles are
owner,admin,memberandviewer, with the permissions in Console design. Ownership can be transferred to an admin. - FR-CON-3 Sign-in must be passwordless: a single-use magic link or a six-digit code sent by email,
valid for 10 minutes. It must be rate-limited: 3 link or code requests per 10 minutes per address;
10 attempts per code (the token is burned after 10 failures); 30 failed codes per address per UTC day,
after which only the link works until the next UTC day; and
RL_SIGNIN, 10 requests per 60 s per client network (an IPv6 /64 counts as one) on the sign-in, sign-up, waitlist and pending-step routes and the OAuth start. Passkeys (WebAuthn) are P2: they need browser JavaScript, which the console does not use (FR-CON-1). - FR-CON-4 Members are invited by email. A pending invitation must count against the seat limit and expire after 7 days. Removing a member must end their sessions immediately.
- FR-CON-5 Sensitive actions must require a sign-in within the last 10 minutes and be written to the audit log: creating keys, inviting or removing members, changing roles, adding or removing domains, releasing quarantine, approving a draft, erasure, and billing changes.
- FR-CON-6 The console must show inboxes, threads and messages (with untrusted content rendered as
sanitised, inert HTML in a sandboxed frame or as text), search, quarantine with release, keys, domains,
webhooks, members, plan and usage, and settings. On Cloud, releasing quarantine must be possible
only for a signed-in person (
PM_QUARANTINE_KEY_RELEASE=off), except in a workspace whose policy hasquarantine.key_release: true, which only a platform key or the workspace’s partner key can set; there, those two keys can release too, never the workspace’s own tenant or identity keys. Self-hosters can allow release by API keys withquarantine:revieweverywhere (on, the default for self-hosting). Approving a vault grant or use, and activating a vault consumer, must follow the same rule (Decision::ApproveVault,Decision::ActivateConsumer); console reveal of a vault value must need re-authentication within 10 minutes. - FR-CON-7 A self-hosted deployment must create its first owner during
idvy setup(--owner-email). The console must be optional (PM_CONSOLE=offremoves its routes). - FR-CON-8 Self-serve sign-up must follow
PM_SIGNUP:closed(the default; no public sign-up),waitlistoropen. A waitlist entry must be confirmed by email (double opt-in) and creates no account. The operator invites confirmed entries in batches (POST /v1/platform/waitlist/invite), each with a sign-up link valid for 7 days for the waitlisted address only. With email sign-up, the account must be created only when the link or code is used. - FR-CON-9 Sign-in with Google and GitHub must be available when their client credentials are
configured (on Pylota Identity Cloud). It must accept only a verified email address, use PKCE and a
statebound to the browser by a cookie, and link to an existing person with the same verified email only as FR-CON-17 allows. - FR-CON-10 A person must be able to enrol two-step verification with an authenticator app (TOTP,
RFC 6238) and ten single-use recovery codes. Once enrolled, it is asked for after every first factor and
at re-authentication. A workspace owner may set
require_two_factor; a member without two-step verification must enrol before entering that workspace. - FR-CON-11 After sign-in, the console must route each person by the rules in
Cloud sign-up › Where people land. A
nextvalue must be followed only when it is a relative path under/console/with no//, backslash or scheme. - FR-CON-12 The workspace home (
/console, the Overview) must show banners for conditions that need action, the first-run checklist (each step’s state derived from real data on every render, never stored), “Needs a person” (the actions only a person should take, drafts awaiting approval and scheduled sends that failed among them) and usage against each allowance. - FR-CON-13 Returning from Stripe Checkout must never change the plan: Stripe webhooks are the only
source of plan state (FR-BILL-10), and another workspace’s Checkout session changes nothing. Pylota Identity
Cloud must apply abuse controls:
RL_SIGNIN, a new-workspace send ramp (a tenant daily cap of at most 50 for the first 7 days on Free, lifted by a daily evaluation of bounce and complaint rates or by a paid plan once its invoice is paid), refusal of disposable addresses (PM_SIGNUP_BLOCKED_DOMAINS), and system mail sent fromPM_SYSTEM_FROM. - FR-CON-14 A person may opt in, per workspace, to email notifications of new mail in the inboxes
they choose (
instant,hourlyordaily). Notifications must be coalesced (one email per person and inbox per window), must count only mail that becomes visible in the inbox, and must never include content from the mail: no subject, sender, snippet or attachment name (Notifications). - FR-CON-15 Owners and admins must receive a daily “needs a person” email by default
(quarantined mail, uncertain sends, drafts awaiting approval, failed scheduled sends, failing domains
and failing webhooks), and the person concerned must receive
accountemails for security and billing events, which cannot be turned off. Every other notification must carry RFC 8058 one-click unsubscribe. Notification email is capped at 50 per person and 200 per workspace a day, beyond which items go into one daily digest email (itself unsubscribable and not capped). - FR-CON-16 A first factor must never create a session while a second step is outstanding: the
pending step expires within 10 minutes and can be finished once. Accepting an invitation must be an
explicit action by the invited person, never automatic at sign-in, and a person enrolled in two-step
verification must pass it before the membership and the session exist. A workspace’s
require_two_factormust be checked on every console request (Cloud sign-up §5.1). - FR-CON-17 A Google or GitHub identity must be linked to an existing person only after a code emailed to that person’s address is entered, and a person must be able to unlink one. A console sign-in address (an account, an invitation or a workspace owner) must not be a mailbox that the deployment itself receives, and an identity address must not equal a console sign-in address.
- FR-CON-18 Pylota Identity Cloud must protect its shared system mail and shared domain: budgets for
system mail per recipient, per client network and ASN, and per inviting tenant, with a share of each
day kept for sign-in mail; one self-serve Free workspace per person; and, when the account’s daily
sending quota is configured, a breaker that stops Free and ramped workspaces at 60% of it and every
tenant at 90% until 00:00 UTC (Cloud sign-up §10).
The
signupclass of system mail (Agent self-sign-up) may use at most 5% of the system identity’s day, so at least 25% stays for sign-in and account mail.
6.15 Plans, metering and billing
- FR-BILL-1 Each workspace must have a billing mode:
metered(a plan applies),exempt(no checks, for the operator’s own tenants, or a partner’s tenants that the operator does not bill per workspace) ordisabled(self-hosting without billing: only the daily caps in tenant policy apply). A tenant created with a partner key takes its partner’sdefault_billing_mode; only a platform key changes it (FR-KEY-4). - FR-BILL-2 The plan catalog must be data (
PM_PLAN_CATALOG), defaulting to the Pylota Identity Cloud plans in section 13. A plan defines allowances forinboxes,sends,triage,custom_domains,storage_gbandseats, a price, and whether top-ups are allowed. - FR-BILL-3 Monthly allowances (
sends,triage) must reset at the start of each billing period. Counts (inboxes,custom_domains,seats,storage_gb) must not reset. - FR-BILL-4 Every metered action must take an atomic hold in the workspace’s
TenantQuotaobject before it runs, and settle it (consume or release) when the outcome is known. Holds that are never settled must expire after 10 minutes. Two requests must never both pass on the last unit. - FR-BILL-5 One send is one recipient: a message to three recipients uses three sends. A send is
consumed when the transport accepts it; a rejected, failed or cancelled send releases its hold; an
uncertainsend releases its hold and is consumed later only if reconciliation shows it was sent. - FR-BILL-6 A denied metered action must return
402 billing_limitbefore any idempotency record is written, so the sameIdempotency-Keysucceeds after the workspace upgrades or adds a top-up. A replay of an already-completed send must return its original result even when the allowance is spent. - FR-BILL-7 Triage must hold one unit when a message arrives and consume it when the analysis is stored; a failed analysis refunds it. Quarantined mail is charged only when someone releases it.
- FR-BILL-8 Inbound mail must never be refused or dropped because a plan limit is reached. When
storage_gbis exceeded, new identities, new domains and outbound attachments are refused with402 billing_limituntil usage falls or the plan changes; mail keeps arriving. - FR-BILL-9 A downgrade must never delete data. Existing identities, domains and members are kept; creating more is refused until the counts fit the new plan.
- FR-BILL-10 Payment must go through Stripe: Checkout for plans and top-ups, the Customer Portal for payment methods, invoices and cancellation, and signed webhooks (verified, deduplicated by event ID) as the only source of subscription state. A failed payment keeps the plan for a 7-day grace period, then moves the workspace to Free limits.
- FR-BILL-11
GET /v1/usagemust return the billing mode, plan, each feature’s granted, used, remaining and reset time, and the plan catalog, so agents can read their own limits. - FR-BILL-12 A self-hosted deployment must run with billing off by default and must not need a
Stripe account. Turning billing on (
PM_BILLING=stripe) is an operator choice. - FR-BILL-13 Owners and admins must be emailed when an allowance reaches 80% and 100% of its
limit (top-ups included), unless they turn it off. Each threshold alerts at most once per billing period
for allowances that reset, and at most once a day per feature and threshold for counts that do not.
With billing off, no usage alert is sent. Webhook events (
quota.warning,billing.limit_reached) are unchanged. - FR-BILL-14 An allowance must rise only after the payment for it succeeded: a plan or top-up increase applies when its invoice is paid, never on a subscription’s status alone, and decreases apply at once. A disputed payment must stop the workspace’s sends and apply the default plan until the dispute closes; a lost dispute cancels the workspace’s subscriptions. A workspace must have at most one Stripe customer and one subscription per plan or top-up feature; a duplicate is cancelled with its unused time credited (Billing › Disputes and refunds).
6.16 Drafts, approvals and scheduled send
- FR-DRF-1 The service must store drafts in the identity’s mailbox, with create, list, get,
update and delete through the API (
drafts:read,drafts:write). A create with aclient_idthe identity has already used must return the existing draft, or409 client_id_conflictif the request differs. A draft’s kind (new,reply,reply_all,forward) must be fixed at creation, and a field its kind does not take must be refused. Reply and forward drafts must be created only by a key holdingmessages:read, and must name a source message the creating key can see, neverhiddenorthrottledmail, andquarantinedorscreeningmail only withquarantine:review(Drafts). - FR-DRF-2 Every draft must carry a
revisionand anetag. An update with a staleIf-Match, and an approval of a revision or content digest that is no longer current, must fail with409 draft_revision_mismatchand change nothing. A draft being sent must refuse updates and deletes with a retryable409. - FR-DRF-3 A draft must become an outbound message only through the existing send pipeline, with
the idempotency key
draft:{draft_id}:{revision}; a draft revision must produce at most one message, whatever retries, concurrent requests, crashes or repeated alarms occur.POST …/drafts/{draft_id}/sendmust requiremessages:sendand anIdempotency-Keyand support?dry_run=true. A sent draft must be kept as a record with itsmessage_id, its labels must carry over to the message, and the message must recorddraft_id. - FR-DRF-4 Tenant policy
drafts.require_approval(never,new_recipients,external,always) must decide when a send needs approval, withnew_recipientsmeaning a recipient that is neither known (FR-OUT-13 rules 1–3 and 5) nor internal to the workspace andexternalmeaning a recipient that is not internal, and an identity’ssend_policy.require_approvalmay only make it stricter. It must apply to every send of the tenant’s identities except the system identity’s and a provisional agent sign-up’s (whose sends reach only its human): an ordinary send, reply, reply-all or forward that needs approval must be refused with403 approval_requiredbefore anything is stored. It is a guard field (FR-TEN-4). Whatever the level, a send of a draft whose writer requested approval, or whose current content was written by a key withoutmessages:send, must need approval. - FR-DRF-5 Approving and rejecting must need
drafts:approve, which identity keys must never hold; approving withsend: truemust also needmessages:send. On a deployment where only people may release quarantine (FR-CON-6), an API key must approve only on a tenant whose policy hasdrafts.key_approval: true, which only a platform key or the tenant’s own partner key can set, and then only if it is a platform key or that partner key, never a tenant key. A key must not approve content it wrote. An approval must bind to the digest of the content approved (sender identity, recipients as resolved, subject, bodies, attachments and their hashes, headers, kind, source; notsend_at), and any change of that content must return the draft topending_approvaland emitdraft.approval_requestedagain. The approval must be audit-logged with the approver and the optionalon_behalf_ofof the caller’s own user. - FR-DRF-6 For a send from a draft whose current revision carries a valid approval, every approved
recipient must count as known (FR-OUT-13 rule 4) for that send; suppressions, send-block entries and
send_allowlist_onlymust still apply. - FR-DRF-7 A draft must be schedulable at a UTC
send_atat least 60 seconds and at most 90 days ahead, rescheduled and unscheduled throughsend_at, and cancelled by deletion. The identity’s mailbox alarm must drive scheduled sends, multiplexing every draft onto its one alarm, and a scheduled draft whose alarm was missed must still be found and sent, or failed, without operator action. At the scheduled time every send check must run again with the authority recorded when it was scheduled, and every outcome must be defined. A scheduled send not attempted bysend_at+ 1 hour, and every failed scheduled send, must never be retried automatically. - FR-DRF-8 Draft attachments must be given inline (within the 7 MiB request body) or as upload
references to the same identity’s
ready, unexpired uploads, whose bytes must be copied into the draft’s own objects when the revision is saved, so that deleting or expiring the upload never changes the draft; a revision’s attachments must pass the classification and the 26,214,400-byte total of a send when it is saved; at send the draft’s copies must be copied into the message’s own attachment objects with their SHA-256 checked, without being held in memory, and keep theirupload_id. - FR-DRF-9 A forward draft must snapshot its source at send time, and fail with
409 source_unavailablewhen the source was erased, is no longer visible to the sender, or cannot be reproduced in full (a truncated body whose raw MIME has expired, or a missing attachment object). Reply recipients must be resolved at send time. - FR-DRF-10 Drafts must be deleted by every erasure scope (message: drafts replying to or
forwarding it and the draft that became it; thread; counterparty; identity; tenant), with
drafts_deletedin the receipt, kept by legal holds on their thread, and purged by retention: pending approvals expire after 7 days (or atsend_at+ 1 hour), other drafts 30 days after their last change, or sooner whenretention.message_daysis shorter. - FR-DRF-11 A draft must take no plan hold until it is actually sent; the send must take and
settle the
sendshold throughTenantQuotaexactly as any send, and a scheduled send refused with402 billing_limitmust fail with that reason, notified through the existing usage alerts. - FR-DRF-12 Drafts must emit
draft.approval_requested,draft.approved,draft.rejected,draft.sentanddraft.failed, from the mailbox outbox with the identity’s sequence, carrying no subject, body, address or note. - FR-DRF-13 The tenant’s drafts awaiting approval, scheduled and failed must be listable without a
fan-out over mailboxes (
GET /v1/tenants/{tenant_id}/drafts), from a D1 index that holds no mail content. The console must list them, show them in “Needs a person”, and let an owner or admin approve (a sensitive action), reject or cancel them, without JavaScript. - FR-DRF-14 MCP must offer tools to create, update, list, get, send and delete drafts, and must not offer one to approve or reject; the CLI must cover every draft route.
6.17 Event feed and live stream
- FR-EVT-1 The service must keep one append-only event log per tenant, to which the webhook consumer appends every event of the tenant once, deduplicated by event ID, before any webhook delivery of it is queued. Log positions must follow the order of appends and never go backwards, and the log must hold the same envelope bytes that webhook deliveries send.
- FR-EVT-2
GET /v1/eventsmust return a tenant’s events after an opaque cursor, in log order, with type and identity filters, a long poll of up to 60 seconds, and anext_cursorthat is never behind an event already returned. Platform and partner keys must name one tenant per request. - FR-EVT-3 The log must keep events for the tenant’s
retention.events_daysafter they were appended, within a per-tenant storage budget. A cursor behind the retained log must get410 cursor_expiredwith the oldest valid cursor; erasure must remove events without invalidating any cursor. - FR-EVT-4 A key must see only the events whose subject it could read through the API: identity keys
only their own identity’s events, mail events only with
messages:read, quarantine and screening events only withquarantine:review, and never an event of the system identity. Webhook endpoint filters must not affect the feed, and types a key may not see must be reported as withheld. - FR-EVT-5 Durable event consumers must keep a named position per tenant on the server: create is
idempotent by name; reads return the events after the committed position and redeliver them until a
commit; a commit only moves forward; a consumer is bound to the key that created it; a tenant has at most
20; and a consumer whose position falls out of retention must get
410 cursor_expireduntil it is reset explicitly. - FR-EVT-6
GET /v1/events/streammust push the same events over a WebSocket, in log order, with a documented client protocol (subscribe by cursor, time or consumer; optional acknowledgements; ping), a flow-control window, documented close codes and heartbeats, and must let a client resume from a cursor or a consumer with no event lost. - FR-EVT-7 The stream must accept a key in the
Authorizationheader, or a single-use stream token of at most 60 seconds carried inSec-WebSocket-Protocol. No credential may be accepted in a URL, and a stream token must never be logged or echoed. - FR-EVT-8 A stream whose key is revoked or expires, or whose tenant or partner is suspended, or whose tenant or identity is being erased, must be closed within 60 seconds, and no event may be sent on a connection whose key was last validated more than 60 seconds earlier.
- FR-EVT-9 The MCP server must offer
mail_events, a cursor poll of the feed, and the CLI must offeridvy events list,idvy events tail(resuming from a saved cursor or a consumer) and the consumer commands. - FR-EVT-10 Message, thread, counterparty, identity and tenant erasure must remove the log’s copies
of erased data, consumers and streams, report
log_events_deletedand a zerolog_hitsprobe, keep the events of held threads, and refuse a late append of erased data. Message retention and per-identity expiry must remove the log’s copies of the messages they delete, including their entries in events that list several messages. - FR-EVT-11 The service must measure the time from outbox commit to log append (target: p95 at most 10 seconds), append failures, consumers behind, stream connections and close codes, and alert when appends fail or lag.
6.18 Screening
- FR-SCR-1 Each tenant must have a screening policy:
screening.mode(off,monitororhold, defaultmonitor),screening.on_unavailable(quarantineordeliver, defaultquarantine) andscreening.deadline_seconds(30–900, default 120). All three are guard fields: a key must not loosen them where only people may release quarantined mail. - FR-SCR-2 In
holdmode, an inbound message that no quarantine rule held must be stored with statusscreeningand must not be listed, counted, searched, embedded, triaged, notified, auto-replied to, returned bywaitor evented as received until it has a verdict; only keys withquarantine:reviewmay see it, and it must not be released whilescreening. - FR-SCR-3 The verdict must combine a deterministic scan of every field an agent can read (including
HTML text that differs from the plain part, hidden content and attachment text) with a separate model
classifier: a decisive deterministic signal or a model judgement of steering must give
suspect(statusquarantined, reasonsteering_suspectedinholdmode); no signal must giveclear(statusreceived, withmessage.receivedemitted then and not before); no verdict must giveunavailable, handled byscreening.on_unavailable(quarantinedwith reasonscreening_unavailable, orreceived), except that anunavailablethe mail itself can cause (model_cap,invalid_output) must always be held. A message with an attachment whose text was not scanned must carry the trust flagattachments_unscreened. - FR-SCR-4 Every held message must reach a final status by its deadline, enforced by the mailbox’s alarm and an independent backstop timer. Screening must not depend on triage being enabled and must not change triage’s advisory role (FR-TRI-3).
- FR-SCR-5 Every screened message must carry a screening record (status, mode, reason code, signals with source, kind, field and severity, model, start, deadline, completion, release). The service must never store, log or return text written by the classifier.
- FR-SCR-6 Held mail must be released only through the existing release route and its person-only rule.
A release must emit
message.releasedand then, for a message never yet evented as received,message.received, in one transaction:message.receivedis emitted exactly once per message. Released mail must never be screened again. - FR-SCR-7 Delivery reports, read receipts and the system identity’s mail must never be screened.
Screening must never override
hidden,throttledor another quarantine reason. Mail from known correspondents, receive-allowed senders and authenticated senders must be screened. - FR-SCR-8 Keys with
messages:writemust be able to give feedback on a screened message (correct,false_positive,missed_threat,legitimate_instruction,spam; notes up to 500 characters; at most 20 per message), audit-logged without the notes. Feedback must never change a message’s state. The service must report per-tenant verdict counts, precision and recall from feedback. - FR-SCR-9 Text that becomes readable after the verdict (attachment text, a re-parse) must be scanned deterministically; a decisive signal must move a delivered message back to quarantine, unless a person released it.
- FR-SCR-10 Screening records and feedback must follow their message’s retention, legal holds and every erasure scope, and erasure receipts must count them.
- FR-SCR-11 Screening must never be charged to a plan allowance. Its model calls must be bounded by the
tenant’s daily model cap and
RL_AI; a reached cap must giveunavailableunless the deterministic scan is decisive. One sender must not be able to spend more than a tenth of the cap, senders that are not known correspondents must not together be able to spend its last fifth, and triage and agentic search must not be able to spend screening’s share ofRL_AI. - FR-SCR-12 The service must record verdict counts by reason, unavailable rates, deadline misses and latency, and must alert the operator when a tenant’s held mail becomes unavailable at volume, when model failures reach the deployment as a whole, or when a hold outlives its deadline.
6.19 Calendar invitations
- FR-CAL-1 Every inbound message must have each of its calendar parts (
text/calendar,application/ics,.icsfiles and calendar files inside TNEF; never parts of nested messages, DSNs or MDNs) read under size, line, component, override, attendee, time-zone and string bounds, and must expose one structured, boundedcalendarobject, ornull. A part that cannot be read must not stop the message from being stored; its object says why (invalid,too_large,too_complex,unsupported). - FR-CAL-2 Every time in the object must be given as a UTC instant where one can be computed, with
the original
TZIDand how it was resolved: IANA names, Windows names through the CLDR mapping,/-prefixed globally unique names, and the object’s ownVTIMEZONEdefinitions. All-day dates, floating times and unknown zones must be marked as such, never guessed. - FR-CAL-3 Recurrence rules must be validated and returned as text, never expanded; a master with up to 100 overrides must be read as one object.
- FR-CAL-4 Every iTIP method (
PUBLISH,REQUEST,REPLY,ADD,CANCEL,REFRESH,COUNTER,DECLINECOUNTER) must be classified, as well as objects without a method and with an unknown one.VTODO,VJOURNALandVFREEBUSYmust be listed as ignored;VALARM,ATTACHand extension properties must not appear in the object agents read. - FR-CAL-5 Each object must say whether it is verified, by which rule, and otherwise why not. An
organizer method is verified only when the message’s authenticated sender is the organizer, an attendee
method only when it is the replying attendee, and only when the part holds no component of another
UIDor organizer; aSENT-BYmust never verify an object. - FR-CAL-6 A
calendar.receivedevent must be emitted when a message with a calendar object first becomes visible asreceived, and never while it is quarantined, in screening, hidden or throttled. It must be thin, and an endpoint that receives it must be created only by a key withmessages:read. - FR-CAL-7 Every text value of the object must be cleaned of control and hidden characters and treated as untrusted content.
- FR-CAL-8 Send, reply and draft send must accept a caller-supplied iCalendar object, bounded in
size, and must refuse it unless it has exactly one known
METHOD, oneUID, aDTSTAMPin every component and the per-method structure of RFC 5546, and unless its organizer (organizer methods) or replying attendee (attendee methods) is the address the message will be sent from, and its recipients are the object’s attendees (organizer methods) or its organizer (attendee methods). - FR-CAL-9 A calendar message must be sent as iMIP: the human-readable text and a
text/calendarpart whosemethodparameter equalsMETHOD, as alternatives, optionally with anapplication/icscopy. MissingVTIMEZONEs for zones that resolve by name must be added, other systems’ extension properties removed and reported, and the object re-serialised with CRLF and 75-octet folding. A calendar message must bekind: transactionaland must never be sent through domain fallback. - FR-CAL-10 An identity must be able to answer a verified invitation it is an attendee of with
accepted,declinedortentativeand an optional comment, through one idempotent route that sends an iTIPREPLYto the organizer from the attendee address in the invitation’s thread, and refuses unverified, held (quarantined or in screening), cancelled, superseded, past and non-attendee cases with defined errors; only verified messages from the invitation’s own organizer may make it cancelled or superseded. - FR-CAL-11 An identity must not be able to send, for one
UID, an organizer method with a lowerSEQUENCEthan one it already sent, also when two sends race. - FR-CAL-12 A verified calendar message without thread headers must join the thread that holds a
calendar message with the same
UIDandORGANIZER(for an attendee’s answer, an invitation this identity sent that names that attendee); an unverified one must never join byUID. - FR-CAL-13 Pylota Identity must not keep calendar state beyond the message’s own row and attachment. Calendar data must be retained, erased (including by counterparty erasure of any address the object names), held and exported with its message.
- FR-CAL-14 The calendar object must be readable, and the reply route usable, through the REST API, MCP and the CLI; the console must show the object read-only.
6.20 Uploads
- FR-UPL-1 The service must let a key holding
messages:sendordrafts:writecreate an upload for an identity in its scope, with a filename, a content type, a size of 1–26,214,400 bytes and a SHA-256, and return the upload’s ID, a signed upload URL valid for at most one hour, and itsexpires_at. - FR-UPL-2 The service must accept an upload’s bytes only through its signed upload URL on the
Worker, require a
Content-Lengthequal to the declared size, stream the bytes into R2 without holding the file in memory, and make the uploadreadyonly after R2 has verified the declared SHA-256 and the stored size matches. - FR-UPL-3 The service must classify every upload with the inbound attachment rules and, when a
scanner is configured, scan it before it can be attached; a quarantining risk or an
infectedverdict must reject the upload, delete its bytes and refuse every later use with422 attachment_risky. - FR-UPL-4 The service must let send, reply, reply-all, forward and drafts attach a
readyupload of the sending identity byupload_id, re-check the risk of the final filename, and copy the bytes into the message; an upload of another identity or tenant must be refused exactly as a missing one (404 upload_not_found). - FR-UPL-5 The service must apply the transport limit to attachments from uploads as to inline
ones (
413 message_too_large, or signed links withlarge_attachments: "link"), and must refuse a message whose attachments total more than 26,214,400 decoded bytes. - FR-UPL-6 The service must admit one
PUTper upload at a time, answer a repeatedPUTof areadyupload with success without reading its body, resume an upload whose bytes were stored but whose response was lost, and expire an upload after ten failed attempts caused by the client. - FR-UPL-7 The service must delete every upload and its bytes at its
expires_at(default 24 hours, at most 7 days, never later than the identity’s mail retention), used or not, and deleting or expiring an upload must never change a message or a draft that used it. - FR-UPL-8 The service must limit each identity to 100 live uploads and 524,288,000 declared
bytes, count upload bytes toward
storage_gb, and refuse a create with402 billing_limitwhile storage is at or over its allowance. - FR-UPL-9 The service must delete uploads in every erasure scope, including the uploads that
erased messages were copied from, count them in the receipt as
uploads_deleted, leave them out of subject-access exports and the R2 backup copy, and delete upload objects that no row names. - FR-UPL-10 The service must classify inline base64 attachments of every send with the same rules, so that sending base64 never bypasses the checks an upload gets.
- FR-UPL-11 The service must never fetch attachment content from a URL, and must not offer uploads as a file store: no paths, no download route and no sharing between identities.
- FR-UPL-12 The MCP server must offer
mail_create_uploadandmail_get_uploadand acceptupload_iditems inmail_send,mail_replyandmail_forward; the CLI must offeridvy uploads create|list|get|deleteand use uploads for--attachfiles over 1 MiB.
6.21 Deliverability metrics
- FR-MET-1 The service must return, for an identity, a tenant or a domain, every window that can pause that scope’s sending (and, for a domain, the operator alert windows), each with its rule, threshold, threshold source, minimum outcomes, window bounds, outcomes, events, denominator, rate, whether it can trip yet, whether it is tripped, and the headroom in further outcomes of its kind.
- FR-MET-2 Rates must be computed inside
TenantQuotaby the same function, over the same rows, that decides the pauses, with integer comparisons at one part per million, so that a window reported as tripped is exactly one the pause decision acts on, and the reported headroom is exactly the number of further outcomes of its kind that would trip it. - FR-MET-3
RecordOutcomemust receive the tenant’s effective abuse thresholds from its caller, and every window must be bounded by UTC hours or days relative to the evaluation time, the same in the decision and in the rates. - FR-MET-4 The rates response must state every pause in effect that stops the scope’s sends, and must mark the system identity as exempt.
- FR-MET-5 The service must count message events (received, quarantined, sent, delivered, deferred, bounced, complained, rejected, failed, uncertain, suppressed, canceled) per UTC hour and day, per identity and sending or receiving domain, in the same transaction that appends each event, and must not count reprocessed or deduplicated events.
- FR-MET-6
GET /v1/metrics/eventsmust return those counts at identity, tenant or domain scope, one entry per bucket including zeros, for at most 168 hourly buckets within the last 192 hours or at most 92 daily buckets within the last 92 days, refusing wider or older ranges with400 query_range_too_wide. - FR-MET-7 Tenant and domain event counts must fan out to at most 100 identities (narrowed by
identity_ids, else422 scope_too_large) and must reportpartialandfailed_identitieswhen a mailbox does not answer in time. - FR-MET-8 Both routes must need the explicit permission
metrics:read; an identity key must read rates only for its own identity, its tenant and the domains its addresses use, and event counts only for its own identity; a foreign ID must answer as a missing one. - FR-MET-9 Event counts must hold no personal data, survive message, thread and counterparty erasure, and be deleted with their identity and tenant.
- FR-MET-10 The console must show the rates and headroom of the tenant, its domains and its
identities, and daily event counts; the MCP server must offer
mail_get_ratesandmail_get_event_counts; the CLI must offeridvy metrics rates|events.
6.22 Agent self-sign-up
- FR-ASU-1 Agent self-sign-up must be off unless
PM_AGENT_SIGNUPison, and must create nothing unlessPM_SIGNUPisopen, billing is on and started, the console is on and the operator’sagent_signupswitch is notoff; otherwisePOST /v1/agent-signupmust answer403 signup_closed. Turning it off must stop new sign-ups only: an existing provisional workspace must keep its verification, claim, refusal, abandonment and expiry. - FR-ASU-2
POST /v1/agent-signup, with no key, must require a username, the address of the human responsible for the agent and the acceptance of the terms, and must create in one transaction a provisional workspace on the Free plan, one identity with one platform address, and one identity key whose secret is returned once and never stored, replayed or emailed. - FR-ASU-3 The username must become the workspace’s slug and address suffix, with the address
agent.{username}@{PM_PLATFORM_DOMAIN}; it must pass the address-suffix rules (reserved, confusable and brand names refused), two concurrent sign-ups for one name must give it to exactly one, and a username must never be released or reused. - FR-ASU-4 The human address must be refused when it is on a placeholder or disposable domain, when
this deployment receives its mail (also through a
+tagthat inbound routing removes), or when its domain cannot receive mail, before anything is written or sent; and it must not be refused, or answered differently, because it belongs to an existing console user. - FR-ASU-5 Sign-ups must be bounded by
RL_SIGNIN, by exact daily budgets per client network, per ASN, per person and per deployment, and by one live provisional sign-up per person, the person counted by base address (+tagremoved, and for Gmail every dot removed andgooglemail.comread asgmail.com); every refusal that concerns a person must be one indistinguishable answer that costs the caller the same budget. - FR-ASU-6 Until verified, every key of the workspace must act with at most
identities:read,messages:read,messages:send,messages:write,attachments:read,search:read,events:readand the implicitusage:read; it must not mint keys, create webhooks, domains, identities, lists or drafts, request service accounts, sign assertions or HTTP requests, run agentic search, upload files or release quarantined mail. - FR-ASU-7 Until verified, the workspace’s effective policy must hold every guard switch at its strict value and its caps lowered, and its identity must send only to the named human, at most 10 messages a UTC day with one recipient each, and nothing once that address has hard-bounced.
- FR-ASU-8 The human must be emailed a six-digit code and a confirmation link by the system identity, in a fixed message that carries no text the caller wrote, with a one-click refusal (RFC 8058); this mail must be counted against its own system-mail class, at most 5 a day to one person and 3 an hour per sign-up, and must be stored without the code or the link.
- FR-ASU-9 A code must expire after 24 hours, allow 10 attempts and then be burned, and a sign-up must allow at most 30 failed codes in its life; codes must be stored as keyed hashes and compared in constant time, concurrent attempts must not exceed the limits, and a new code must invalidate the previous one.
- FR-ASU-10 Verification by the code, by the link and a console sign-in, or by a claim must in one
transaction make the human the identity’s accountable human and the workspace’s owner (a console person
created, or linked by the verified address), end the provisional restrictions on the next request, emit
signup.verified, send the person anaccountemail, and leave a Free workspace whose send ramp counts from verification; it must be refused when the person already owns a Free workspace, when the address has become hosted, or when the workspace is suspended, ended or past its 7 days. - FR-ASU-11 Before verification the agent may replace the human at most twice; each replacement must invalidate the previous code and link, must pass the rules of FR-ASU-4 and FR-ASU-5 for the new address, and must not extend the workspace’s life.
- FR-ASU-12 A signed-in person must be able to claim a provisional workspace by entering its key only when their sign-in address equals the named human’s address; a workspace created by a partner key, or any key that is not a provisional agent sign-up’s, must never be claimable.
- FR-ASU-13 The named person must be able to refuse in one click, without signing in, for 90 days after each code email, also once the sign-up has ended; a refusal or a complaint must end and erase the provisional workspace that names them and must refuse every later sign-up naming them, until they lift it in the console.
- FR-ASU-14 A provisional workspace must be erased by a tenant-scope erasure, with its receipt, when 7 days pass, when its agent abandons it, or when its person refuses it; its code emails must be erased from the system identity’s mailbox, and the person must receive no further mail about it.
- FR-ASU-15 Bounces and complaints of sign-up mail and of provisional workspaces must be counted deployment-wide, and above the thresholds of Agent self-sign-up §13.2 new sign-up mail and every send of a provisional workspace must stop automatically and page the operator; a sign-up spike and 80% of the daily cap must alert.
- FR-ASU-16 No log, audit row, idempotency record or event may hold the human’s address, a code, a link or refuse token, or a key; every new store must be covered by the tenant-scope erasure or hold only keyed hashes.
6.23 Phone numbers
Behind PM_PHONE (ADR 0020, Phone numbers). The
priority of each requirement is given in brackets; acceptance names the edge rows of section P of the
edge-case register.
- FR-PHN-1 (P0) Phone numbers must be off unless
PM_PHONEisonand the tenant’sphone.allowedistrue; the ops switchphonemust supporton,paused_purchasesandpausedas specified, and no flag, switch or rollback may release a number. Acceptance: P4, P101. - FR-PHN-2 (P0) The service must reach the telephony provider only through the
PhoneProvidertrait, at fixed hosts, with one Telnyx account in v1 andproviderandprovider_account_idstored on every row that names a provider resource; no route, tool, event or log may expose a provider credential. Acceptance: P103. - FR-PHN-3 (P0) What can be bought must come from a versioned catalogue of rows (country, number type,
status
available,requires_local_presenceornot_offered, capabilities, requirements, local presence, sender rules, quiet hours, emergency settings, sources and verification date); GB mobile, GB local and US local rows are P0, US toll-free, IE, NL and the DE, FR, ES and IT local rows P1. Acceptance: P1, P3. - FR-PHN-4 (P0) Number search must require every capability of the row on each candidate, never substitute another number type, drop candidates above the row’s cost ceiling and numbers in the 90-day cross-tenant quarantine, return a GBP quote and a signed quote token per candidate, and count against a daily cap. Acceptance: P1, P2, P39.
- FR-PHN-5 (P0) Each tenant must have one compliance profile describing a business in whose legal name its numbers are registered; individuals must be refused, and sole traders must be refused unless the owner’s recorded decision and the row allow them (FR-PHN-54); tax identifiers and the representative’s contact and birth data must be sealed and never returned. Acceptance: P5, P6.
- FR-PHN-6 (P0) KYC documents must be uploaded with declared size and SHA-256, sniffed and refused when risky, encrypted per document under a sealed data key before they reach R2, and never readable through any route; deleting one must crypto-shred it. Acceptance: P7, P8, P9.
- FR-PHN-7 (P0) Provider requirements must be read as data and mapped to profile fields and document kinds; submitting a profile for a country, type and action must be a request a person approves, whose run uploads and links documents within one run and validates addresses; provider group states must map to profile statuses, with expiry notifications. Acceptance: P10–P14.
- FR-PHN-8 (P0) KYC records must be kept while needed and for
PM_PHONE_KYC_RETENTION_DAYSafter the last number, then deleted; tenant erasure must delete them except documents in their retention period, which the receipt lists; provider copies must be deleted after the last number; a platform export must be single-use and audited. Acceptance: P98, P99. - FR-PHN-9 (P0) Every purchase, port-in, release, compliance submission, US registration, toll-free
verification, emergency registration, voice-route change and (under policy) outbound call must be a phone
request (a purchase may be approved by the standing budget, FR-PHN-43, and a scheduled release by its
purchase, FR-PHN-50), created with a required
Idempotency-Key, bounded per tenant, and rejected as expired after 7 days undecided. Acceptance: P15, P19, P22. - FR-PHN-10 (P0) Approving a phone request or deciding a port-out must be a decision reserved for
people (
key_may_decide, opt-inphone.key_approvalfor platform and own-partner keys only), never by the requesting key, bound to the request’s digest, and audited withon_behalf_of. Acceptance: P16, P17, P18. - FR-PHN-11 (P0) Quotes must be in GBP from the rate card; a higher price at execution must return
the request to
pending_approvalwith a new digest; provider costs in USD must be shown only to platform and partner keys. Acceptance: P20, P76. - FR-PHN-12 (P0) A request must run under one claim with a fencing token, re-check the ops switch, configuration, policy, compliance, tenant resources and the spend hold before any billable call, and never start for an erasing tenant or a deleting identity. Acceptance: P21, P33, P37.
- FR-PHN-13 (P0) Every order attempt must write a spend intent and an attempt-scoped
customer_referencefirst; a definitive refusal must clear the intent only after a complete listing proves no order; an unknown outcome must becomeuncertainand must not be retried until an order is adopted or absence is proved by two complete listings at least 5 and 10 minutes apart; at most 3 attempts; after 24 hours only a platform resolve ends it. Acceptance: P23–P27. - FR-PHN-14 (P0) Numbers must follow the state machine of § 6.2, with carrier, SMS and voice facets each
read back from the provider, the capability facets of FR-PHN-45,
setup_stateandprovisioning { status, code, retryable }using Pylota’s failure codes unchanged, and no provider IDs for tenant or identity keys. Acceptance: P34. - FR-PHN-15 (P0) Requirements pending, deadlines and long reviews must notify people, remind before
deadlines, back off and alert after 7 days, and end a cancelled order as
failedso the next request can order again. Acceptance: P28, P29, P30. - FR-PHN-16 (P0) Orders must be moved by provider events, the every-minute cron, read-repair that only queues work with a written backoff, and the nightly reconciler, all idempotent under the claim. Acceptance: P21, P96.
- FR-PHN-17 (P0) A number must be an address of one identity: a unique live E.164 in the directory, history kept after release, port-out or move, routing and lookup on live numbers only, primary and alias roles per capability, moves within a tenant, and per-identity and per-tenant limits. Acceptance: P23, P40, P103.
- FR-PHN-18 (P0) Deleting an identity that holds a live number must be refused; a paused identity must keep receiving and refuse sends; a suspended tenant must refuse sends and requests. Acceptance: P35, P36, P37.
- FR-PHN-19 (P0) Release must be an approved request that discovers the number by stored IDs, then
reference, then exact number in a complete listing, waits on pending orders, proves the ownership stamp,
removes the voice route first and treats
404as success; a released number must not be sold to another tenant for 90 days. Acceptance: P38, P39. - FR-PHN-20 (P0) Each tenant must have its own messaging profile, credential connection, outbound voice profile and billing group at the provider, found by name and tag before any create, read back after every change, and kept in step with policy. Acceptance: P41, P55.
- FR-PHN-21 (P0)
POST /hooks/telnyxmust verify the Ed25519 signature over the timestamp and raw body with a 5-minute window in every environment, write the raw event to R2 and queue a pointer before answering2xx, read nothing from D1, deduplicate on the event ID and apply events inoccurred_atorder per resource. Acceptance: P42–P45, P47. - FR-PHN-22 (P0) The owner of every provider event must come from a fact the provider controls and be cross-checked with a second fact where one exists; a mismatch must have no effect and alert. Acceptance: P46, P48.
- FR-PHN-23 (P0) Inbound SMS must be stored in the identity’s mailbox with the trust flag
sender_unverified, decided by the SMS quarantine rules, never refused for a plan or spend reason, and handled by the simulator in test tenants. Acceptance: P49, P52, P56. - FR-PHN-24 (P1) Inbound SMS must be screened as mail is (the deterministic scan, and in
holdmode the classifier and deadline), with short and keyword messages exempt from the model. Acceptance: P51. - FR-PHN-25 (P0) A consent ledger per tenant brand must record opt-outs and opt-ins by keyed hash, apply
STOP, START and HELP whatever the message’s other status, never send Pylota Identity’s own confirmation,
accept opt-ins only with
phone:manageand evidence, survive counterparty erasure, and stay in step with the provider’s list. Acceptance: P50, P53, P55, P67, P105. - FR-PHN-26 (P0) Verification codes in SMS must be extracted without the link rule, and where
accounts.require_approvalis true reach an agent only through an approved service-ledger entry naming the number, a registered wait and, when listed, the sender. Acceptance: P57, P58, P62. - FR-PHN-27 (P0) Codes on a number named by an active vault login item’s phone channel must be withheld
as
vault_code, never shown to agents or API keys, and given only to the vault’sSmsCodeSourceonce;vault.codes_into_fills_onlymust withhold every code SMS; reads and events must redact codes; no log may hold SMS text or codes. Acceptance: P59, P60, P61. - FR-PHN-28 (P0) Outbound SMS must use one send route with a required
Idempotency-Key, a sender bound to the sending identity, and the ordered pipeline of § 12.2, whose caps fail closed; a dry run must check without holding or storing. Acceptance: P64, P65, P69, P70, P71, P106. - FR-PHN-29 (P0) Dispatch must make one provider call per SMS under a transport claim, with the provider
idempotency key
pi-sms-{sms_id}; repeats with the same key may be enabled only after the contract test passes; an unknown outcome must enduncertain, never be resent automatically, and be reconciled by matching or resolved by the integrator. Acceptance: P63. - FR-PHN-30 (P0) Receipts must set SMS statuses, record the sender actually used and flag substitution, hold a receipt that arrives before its target for 15 minutes, and settle the spend hold with the provider’s cost. Acceptance: P66, P72, P75.
- FR-PHN-31 (P0 for 10DLC, P1 for toll-free) US A2P must use one brand and campaign per tenant,
readiness only at
MNO_PROVISIONED, brand approval atVERIFIEDorVETTED_VERIFIED,webhookURLset, creation only inside an approved and claimed request with a lookup before paying again, and a send gate for every US sender; simulated IDs must never be stored for live tenants. Acceptance: P68, P81–P84. - FR-PHN-32 (P0 for
vapi, P1 forsipandforward) Each voice-capable number must have one route (vapi,sipinbound,forwardornone) set by an approved request and read back; thevapiroute must use Vapi’s bring-your-own SIP trunk with the tenant’s SIP credentials, never a Telnyx key, adopt by exact number and verify by PATCH then GET. Acceptance: P85, P86, P89. - FR-PHN-33 (P0) Outbound calls must go through a
vapiroute only in v1, refuse emergency, short and premium destinations, followphone.calls.outbound, speak the disclosure first, hold their maximum cost, and becomeuncertainrather than be placed twice; calls the service did not place must be detected. Acceptance: P87, P88, P90. - FR-PHN-34 (P0) Recording must be off by default and on only with an announcement; transcripts the service holds must be untrusted input; call records and usage must count what the caps count. Acceptance: P90.
- FR-PHN-35 (P0) Each catalogue row must carry an emergency setting; US numbers must have a registered emergency address (an approved request) before their routes place calls; agent routes must never dial emergency numbers; tenants must be warned before purchase where emergency calls are not supported. Acceptance: P88, P91.
- FR-PHN-36 (P1) Port-in must be an approved request with a free portability check, sealed losing-carrier
details, provider splits as separate records, exceptions as
action_needed, and no cancellation within 48 hours of the FOC date. Acceptance: P92. - FR-PHN-37 (P0) Every number must carry a random port-out PIN kept only in the vault; a port-out must alert people at once, be decided only by a person, never be rejected automatically, escalate at 50%, 75% and 90% of its window, and rotate the PIN after a rejection or reveal. Acceptance: P93, P94, P95, P102.
- FR-PHN-38 (P0) The provider’s state must be reconciled continuously and nightly across numbers, orders, porting, compliance, A2P, message and call records, webhook deliveries, opt-outs and balance, and on request per tenant and per deployment. Acceptance: P96, P97.
- FR-PHN-39 (P0) Money must follow § 18: GBP prices from the rate card, one charge per unique source,
monthly spend caps per tenant and identity enforced with holds and refused with
402 spend_cap_reachedbefore anything is stored, recurring charges never refused, provider-side daily limits as backstops, balance alerts with an automatic pause, Stripe invoice items with idempotency keys, partner statements, and a paid plan or a partner for self-serve tenants. Acceptance: P73–P80. - FR-PHN-40 (P0) Erasure scopes must cover SMS, media, calls and phone data with the receipt fields of
§ 24; tenant erasure must run
phone_release; logs must pseudonymise phone numbers; every sealed column must be in the sealed-column registry. Acceptance: P53, P98, P61. - FR-PHN-41 (P0) The MCP server must offer the twelve
phone_*tools of § 28 and no tool that approves, releases, ports, submits KYC, changes a route, sets a budget or shows a PIN;phone_buy_numbermust not take a confirmation flag; the CLI must offeridvy phone …andidvy setup phone. Acceptance:it::mcp::phone_tools,cli::phone::commands. - FR-PHN-42 (P0) A platform key must be able to adopt a number already in the provider account into an
identity, stamping ownership and refusing a number already held; an adopted number registered under a
platform group must be re-papered under its tenant’s profile by its
legacy_deadline, and must never be released by a deadline (FR-PHN-54). Acceptance: P100, P126. - FR-PHN-43 (P0) A tenant may have a standing purchase budget (
phone.auto_approve), off by default, set or loosened only by a decision reserved for people and tightened byphone:manage; apurchase_numberit covers must be created approved with the budget’s version recorded, count against a monthly slot taken atomically with the spend hold, and remain subject to the spend caps, the ops switch and quote changes. Acceptance: P108–P111. - FR-PHN-44 (P0)
POST /v1/identities/{identity_id}/phone-numbersmust buy a number in one call with a required country and a requiredIdempotency-Key, defaulting the type per country, answering201with the number once the provider accepted the order inside the budget, or202with the request otherwise; a taken number must be replaced by the next candidate up to 5 times forany, and answered409 phone_number_takenwith up to 5 alternatives for an exact number. Acceptance: P112–P114. - FR-PHN-45 (P0) Every number must report the capability facets
outbound_sms,inbound_sms,inbound_callsandoutbound_callsasenabled,activating,registration_requiredornot_availablewith a reason and a next step, computed by the same function the send and call gates use, and emitphone_number.capability_changedon each change;setup_statemust beregistration_pendingwhen only a registration is missing. Acceptance: P115, P116. - FR-PHN-46 (P0) A purchase quote must carry
follow_on[]for every registration the number will still need for this tenant, with its price, typical wait and who acts, covered by the digest. Acceptance: P117. - FR-PHN-47 (P0) A purchase for a row the tenant has not finished onboarding must be created with
blocked_byand a next step rather than refused, must not be executed while blocked, and must run once onboarding completes. Acceptance: P118. - FR-PHN-48 (P0) One-off registration fees must count against
phone.spend.registration_cap_penceinstead of the monthly caps; pass-through fees must be priced at cost until the owner sets a margin. Acceptance: P119. - FR-PHN-49 (P0) Phone onboarding must report one status per tenant and country with its steps, fees,
waits and next step through REST and the MCP tool
phone_setup_status; agents may draft the registration text, which must hold no tax identifier, personal data or document and must be submitted only by a person. Acceptance: P120, P121. - FR-PHN-50 (P0) A purchase may carry
expires_at; its approval must cover the release at that time, which must run with every release safety rule; extending or removing the expiry must needphone:manage. Acceptance: P122. - FR-PHN-51 (P0) The profile must name the company register (with its region where a country has several), and document requirements must be mapped per registration country, never guessed. Acceptance: P123.
- FR-PHN-52 (P0) A US number of a tenant registered outside the US must report
outbound_sms: not_availableuntil GB brands are proved and allowed, andoutbound_calls: not_availablewithout a US emergency address; SMS must be refused to destinations the sending row has not tested. Acceptance: P124, P125. - FR-PHN-53 (P0) The provider account’s level must be probed and recorded, and a row that needs a level
the account lacks must report
platform_prerequisite; US rows must stay off until the enablement sequence of § 2.5 is complete. Acceptance: P127. - FR-PHN-54 (P0) Sole traders must be refused (owner decision of 2026-10-26, ADR 0020 decision 15); an adopted number of a sole-trader tenant must keep working with a dated exit (re-paper or port out), no earlier than 2027-01-24, and be suspended for outbound only, never released, at its deadline. Acceptance: P6, P126.
6.24 Vault
Behind PM_VAULT (ADR 0021). Priorities in brackets; acceptance names rows of
section U of the edge-case register.
- FR-VLT-1 (P0) The vault must be off unless
PM_VAULTisonand the tenant’svault.allowedistrue;vault.allowedis set only by a platform key; turning the vault off must not release a withheld code. Acceptance: U1, U2, U70. - FR-VLT-2 (P0) No route, MCP tool, event, log, audit row, idempotency record or export may return or
contain a vault value, ticket, packet, unlock key or TOTP seed; value-holding types must not implement
DebugorSerialize. Acceptance: U3, U4, U5. - FR-VLT-3 (P0) Items must be one of
login,api_keyorsession(and the internalmanaged_secret), bound to 1–10 exacthttpsorigins canonicalised as specified; wildcards, IP literals, internal names and confusable hosts must be refused. Acceptance: U6, U7, U8, U85. - FR-VLT-4 (P0) The vault must refuse payment cards, bank details, passkeys and WebAuthn keys, and must drop bot-challenge clearance cookies. Acceptance: U9, U10, U11.
- FR-VLT-5 (P0) Every usable item must be bound to an approved service-ledger entry whose registrable
domain (or
login_domains) covers each origin, re-checked at grant approval, use creation and redemption; closing the entry must archive the item and close its uses. Acceptance: U12, U13, U14, U15. - FR-VLT-6 (P0) Values must be sealed per item version under a fresh DEK, with AAD binding tenant, item, version and purpose, the DEK sealed by HPKE to the tenant’s X25519 key, and the tenant key sealed under the master key (and, in partner custody, under the partner’s unlock key). Acceptance: U16, U17, U18.
- FR-VLT-7 (P1) A tenant’s own partner key must be able to move the tenant into partner custody and back, with one or two unlock keys shown once; unwrapping routes must require the unlock key in that mode. Acceptance: U19, U20, U21.
- FR-VLT-8 (P0) An agent must obtain use of an item only through a grant a person approves (or a
platform or partner key under
vault.key_approvalwithon_behalf_of); the requesting key must never approve; identity keys must never holdvault:use,vault:approveorvault:admin; a later change to an item must not widen a live grant. Acceptance: U22, U23, U24, U78, U79. - FR-VLT-9 (P0) Uses must be created only by
vault:usekeys from an enumerated trigger, with the approval level computed as the strictest of item, tenant floor and operation floor, and approval bound to the use’s digest. Acceptance: U25, U26, U27, U28. - FR-VLT-10 (P0) Tickets must be one-use per phase, bound to one consumer, the run, the origin and a 60-second first-redemption window, stored only as a hash, and closed early by every cause listed. Acceptance: U29, U30, U31, U32.
- FR-VLT-11 (P0) Consumers must authenticate every request with an RFC 9421 Ed25519 signature with nonce replay protection, be activated by a person or platform key, and receive values only HPKE-sealed to their current encryption key. Acceptance: U33, U34, U35, U36.
- FR-VLT-12 (P0) Redemption must refuse and close the use on any mismatch of run, top-level origin, frame origin, trigger, form kind, browser declarations, hosting or mode, and on any live-state change. Acceptance: U37, U38, U39.
- FR-VLT-13 (P0) The consumer contract
vault-consumer/1(C1–C21) must be published, versioned and tested by conformance fixtures that a consumer passes before activation. Acceptance: U40, U73–U77, U80, U82. - FR-VLT-14 (P1) TOTP codes must be computed inside the vault, one code per step per item, with the seed never returned. Acceptance: U41, U42.
- FR-VLT-15 (P0) Verification email for a vault login item’s channel must be withheld from every agent
surface and API key and delivered only into an open
email_otpphase, once; a strict mode must extend this to every verification mail. Acceptance: U43, U44, U45, U46. - FR-VLT-16 (P1) SMS codes must follow FR-VLT-15 through the phone design’s code source, only into an
sms_otpphase of a use created at most 10 minutes before. Acceptance: U47, U48. - FR-VLT-17 (P0) Session items must be filtered to their origins, bounded, loaded by one run at a time, rotated at write-back with the previous version deleted, and expired by TTL. Acceptance: U49, U50, U51, U52.
- FR-VLT-18 (P1) Items must keep at most
current,previousandpendingversions; rotation by hand,rotate_filland write-back of rotated API keys must close open uses. Acceptance: U53, U54, U55. - FR-VLT-19 (P1)
api_keyitems with a sign scheme must produce HMAC-SHA256 and AWS SigV4 signatures through grants and approval, without returning the secret. Acceptance: U56. - FR-VLT-20 (P1) A person must be able to reveal a value only in the console, re-authenticated, at most 10 times a day, never a TOTP seed or session cookies; no API, MCP or CLI route may reveal. Acceptance: U57, U58.
- FR-VLT-21 (P0) The vault must keep internal managed secrets for other services (the port-out PIN), writable only by their owner service, with rotate-and-show-once where reveal is unavailable. Acceptance: U59, U60.
- FR-VLT-22 (P0) Every vault change must write a hash-chained audit row in the same batch, with typed fields only, kept 400 days by age and never trimmed by count; every row except authentication failures must emit an event carrying the chain head. Acceptance: U61, U62, U63, U83.
- FR-VLT-23 (P0) The kill switches and
revoke-allmust stop redemption at the next request. Acceptance: U64, U65. - FR-VLT-24 (P0) Item deletion must crypto-shred with a receipt, and identity and tenant erasure must remove vault rows and objects with receipt fields and probes. Acceptance: U66, U67, U68.
- FR-VLT-25 (P0) Documentation, the site and SDK descriptions must use the honest trust statement and must not claim zero knowledge or end-to-end encryption. Acceptance: U69.
- FR-VLT-26 (P0) Approval surfaces must not render any agent- or key-written text as a link or markup. Acceptance: U84.
- FR-VLT-27 (P1) The MCP server must offer the six vault tools only by permission, none of which returns a value or approves; the CLI must read values only from standard input or files. Acceptance: U71, U72.
- FR-VLT-28 (P0) A consumer holding a value across requests must learn of a use’s early closure within 30 seconds through the use status route, and drop the value and its connections. Acceptance: U82.
- FR-VLT-29 (P1) Pylota Identity must offer the session import route that lets an integrator migrate an existing sealed session store with idempotent, auditable imports. Acceptance: U50.
- FR-VLT-30 (P1) Every outbound fetch the platform makes, and every consumer fetch in the conformance fixtures, must refuse NAT64, 6to4 and cloud-metadata destinations by the embedded IPv4. Acceptance: U81.
7. Non-functional requirements
| ID | Requirement | Target |
|---|---|---|
| NFR-REL-1 | Acknowledged inbound messages lost | 0 |
| NFR-REL-2 | Valid inbound mail accepted | ≥ 99.9% per month |
| NFR-REL-3 | Inbound accepted → webhook delivered | p95 ≤ 30 s, p99 ≤ 120 s |
| NFR-REL-4 | Webhook delivered within 24 h, including retries | ≥ 99.99% |
| NFR-PERF-1 | Send API (accepted into queue) | p95 ≤ 500 ms |
| NFR-PERF-2 | Queued → handed to transport | p95 ≤ 60 s |
| NFR-PERF-3 | Keyword search, one identity | p95 ≤ 200 ms |
| NFR-PERF-4 | Hybrid search, one identity | p95 ≤ 800 ms |
| NFR-PERF-5 | Tenant search across up to 10 identities | p95 ≤ 1 s |
| NFR-PERF-6 | Agentic search | p95 ≤ 8 s, first evidence ≤ 1.5 s |
| NFR-QUAL-1 | Search recall@10 on the golden mailbox | ≥ 0.90 (hybrid), CI fails on a drop over 1 point |
| NFR-QUAL-2 | Agentic citation precision | ≥ 0.98 after verification |
| NFR-QUAL-3 | Triage category accuracy on the labelled set | ≥ 0.85 |
| NFR-SEC-1 | Cross-tenant access in attack tests | 0 |
| NFR-SEC-2 | Worker bundle size | ≤ 10 MiB compressed (startup ≤ 1 s) |
| NFR-PRV-1 | Erasure completes | ≤ 24 h, receipt always produced |
| NFR-OPS-1 | Fresh deploy, hands-on time | ≤ 15 minutes |
| NFR-OPS-2 | Recovery point / time objectives | RPO ≤ 1 min (indexes); ≤ 15 min (blobs) against infrastructure loss, from R2’s durability. R2 has no versioning or replication, so blobs deleted by a bug are recoverable only with the optional nightly backup bucket (RPO 24 h, off by default); RTO ≤ 4 h |
| NFR-OPS-3 | Operator alerting with one operator | Every page alert reaches the operator through two independent channels (alert email from the deployment, and an external scheduled heartbeat that fails when the deployment does not answer or a page alert fires) within 15 minutes; a stopped deployment or a stopped heartbeat is detected within 1 hour; conditions that need a safe action at once are contained automatically (Observability § 5.5–5.6) |
| NFR-COST-1 | Idle deployment cost beyond Workers Paid | ≈ 0 (no always-on compute) |
| NFR-BILL-1 | Metered actions allowed beyond a granted allowance | 0 (holds are atomic per workspace) |
| NFR-BILL-2 | Metered actions failed because a billing provider was unreachable | 0 (metering is in-process; Stripe is only needed to change plans) |
| NFR-CON-1 | Console pages, server render time | p95 ≤ 300 ms |
| NFR-REL-5 | Inbound SMS accepted → webhook delivered | p95 ≤ 30 s, p99 ≤ 120 s |
| NFR-REL-6 | Provider webhook acknowledged (/hooks/telnyx) | p99 ≤ 500 ms |
| NFR-PERF-7 | Vault ticket redemption, consumer request to sealed packet | p95 ≤ 500 ms (excluding a one-time-code long poll) |
| NFR-SEC-3 | Vault values in API responses, MCP results, events, webhook deliveries or logs | 0 |
| NFR-OPS-4 | A product flag turned on with a row that blocks its gate still open | 0 (Launch readiness) |
8. Success metrics
- Pylota cut over from AgentMail. Every operator has four identities, inbound mail works end to end,
and none of the edge-case register’s
Srows fails in production for 30 days. - A fresh agent session deploys from the self-hosting page alone, with no help, inside 15 minutes of hands-on time (measured by the M20 rehearsal, ADR 0015).
- Agents in Pylota’s eval suite find and cite the right email in at least 90% of mail-retrieval tasks.
- Zero duplicate sends attributed to retries.
9. Release criteria (v1.0)
- Every
P0requirement maps to at least one passing test (unit, conformance, or integration against workerd). - Every row in the edge-case register marked
SorS+Ihas a named, passing test. - The live end-to-end suite passes on a staging deployment. It covers real inbound from Gmail and Outlook, real outbound to both, bounce and complaint simulation, a domain change, a domain failure with fallback, and erasure.
- Search quality gates (NFR-QUAL-1/2) and triage gate (NFR-QUAL-3) pass.
- A threat model is written, and the findings rated high are fixed.
- A fresh-account deploy rehearsal has been run from the docs.
- The release gate passes:
release-gates/v{version}.mdticks every item of the pre-release checklist with a link to its evidence, and the release carries SBOMs, signed checksums and build provenance (cargo xtask release-gate). - Every row of Launch readiness whose Blocks names
v1.0isdoneorn/awith its evidence (FR-OPS-6).
10. Risks
| Risk | Mitigation |
|---|---|
| Cloudflare Email Sending is in public beta | A MailTransport trait with an SES adapter, plus a documented failover runbook |
workers-rs is pre-1.0 | Exact pins. Only crates/platform touches it. Gaps (Vectorize, toMarkdown) are covered with wasm-bindgen externs |
| Vectorize has no documented jurisdiction option | Vectors hold IDs and filter fields only, never text. Documented in privacy notes |
| A shared platform domain means shared reputation | Per-identity caps, complaint and bounce auto-pause, DMARC ramp, custom domains encouraged |
| An LLM fabricates in agentic search or triage | Deterministic citation check, schema validation, untrusted-content fencing, read-only tools |
| Web Bot Auth is still an IETF draft, and Cloudflare’s verifier can change | Spike S13 checks the format against Cloudflare’s test endpoint. Signed HTTP requests are P1 and stay off (PM_WEB_BOT_AUTH=off) unless S13 passes; agent assertions rely only on published RFCs (7517, 7519, 7638, 8037) |
| SES receiving, SMTP from a Worker and child zones are unproven from a Worker | Spikes S11, S12 and S10 gate dns_records, smtp_relay and delegated_subdomain (smtp_relay with inbound: ses needs S11 too). A method whose spike fails moves to v1.1 by ADR; cloudflare_zone, nameservers and send_only do not depend on them |
| Telephony is regulated, and TREFT may count as a provider (Ofcom General Conditions, emergency calling, caller ID) | Numbers registered in each tenant’s own name; agent routes never dial emergency numbers; tenants warned before purchase; each legal question listed for counsel and answered before the feature opens in production (Phone numbers § 32) |
| One Telnyx account serves every tenant: a suspension stops all of them, and limits are shared | Per-tenant provider-side spend limits; the phone ops switch; balance alerts; provider_account_id on every row so a partner can move to its own managed account; a provider trait that admits a second provider |
| Buying a number needs regulatory work an agent cannot do, so agents stall waiting on people | Onboarding once per tenant and country with one status and the person who must act; a standing budget a person sets; a one-call purchase; purchases that wait on onboarding instead of failing (Phone numbers § 4.7, § 5.7, § 6.7) |
| US texting for businesses registered outside the US, and for sole traders, is unproven | US numbers sold for receiving and calls only to such tenants until a staging registration and counsel’s answer; the sole-trader decision recorded before M41 (§ 13.1, § 13.2) |
| Provider costs are in US dollars and customers pay in pounds | A rate card with a currency buffer; an alert at 5% exchange-rate drift; 30 days’ notice before existing numbers are re-priced |
| Telnyx’s documents contradict themselves on prices, statuses and rules | Every external behaviour has a contract test against the real API before code depends on it; the catalogue fails a release when a row is unverified for 180 days |
| A vault value reaches a model through a consumer’s mistake (a screenshot during a fill, an echoing response, a page that copies the value) | Values only through registered consumers bound by a contract with conformance fixtures; no model step during a fill; post-fill exposure search; response redaction; value_exposed blocks the item until rotation |
| The operator or Cloudflare can decrypt vault values | Stated plainly in every document; partner custody for partners who hold their own unlock key; no zero-knowledge claim, enforced by a CI check |
hpke 0.14.1 may not build or meet the CPU budget on wasm32-unknown-unknown | Spike S-VLT1 first; the fallback implements the same RFC 9180 suite from pinned primitives, with the same wire format |
11. Open questions
None blocking v1.0. Decisions are recorded in ADRs.
12. Licensing
- The source is published under the Functional Source License, Version 1.1, ALv2 Future License
(
LICENSE.md). Anyone may use, modify and redistribute it for any purpose except a Competing Use: offering it to others in a commercial product or service that substitutes for it or offers substantially similar functionality. Internal use, non-commercial education and research, and professional services for licensees are explicitly permitted. - Each version becomes available under the Apache License 2.0 on the second anniversary of its release.
- FSL is a Fair Source licence, not an OSI-approved open-source licence. Public copy says “source available” or “Fair Source”, never “open source”.
- The licensor is TREFT LTD, the company behind Pylota (
LICENSE.md: “Copyright 2026 TREFT LTD”). - Contributions are licensed to TREFT LTD under Apache-2.0 with a DCO sign-off (
CONTRIBUTING.md), so it can publish them under FSL now and Apache-2.0 later. - The client libraries are licensed differently from the service: the TypeScript, Python, Go and Rust SDKs, the
crate
pylota-identity-api-typesthey depend on, and the agent skills are under the Apache License 2.0 (ADR 0022 decision 9). Everything else in this repository stays FSL-1.1-ALv2.
13. Business model and pricing
Self-hosting is free under FSL-1.1-ALv2 with no plan limits. Pylota Identity Cloud is Pylota’s hosted deployment of the same code, with billing on. The plans mirror goshen-email’s published plans (read 2026-10-09) with every allowance identical. Each price is half goshen’s figure and is charged in pounds sterling: goshen’s $20 and $99 become £10 and £49.50, and its $2 top-up becomes £1.
| Free | Developer | Team | Self-host | |
|---|---|---|---|---|
| Price (GBP, excl. VAT) | £0 | £10 a month | £49.50 a month | £0 under FSL-1.1-ALv2 |
| Inboxes (identities) | 5 | 10 | 100 | no plan limits |
| Sends per month | 1,000 | 10,000 | 100,000 | |
| Triage analyses per month | 500 | 10,000 | 100,000 | |
| Custom domains | none | 5 | 50 | |
| Storage | 1 GB | 10 GB | 100 GB | |
| Seats | 1 | 2 | 10 | |
| Top-ups | none | £1 per unit | £1 per unit | |
| Support | GitHub issues | priority email | contracts available |
- A top-up unit is one inbox, 1,000 sends or 1,000 triage analyses, added to the plan each month while it is subscribed. Custom domains, storage and seats have no top-up: they come with the plan.
- Every plan includes the full API, MCP server, CLI, console, quarantine review and all four search modes. The per-identity rolling send limit stays on every plan as an abuse backstop.
- Prices are in pounds sterling (GBP) and exclude VAT. Stripe Tax adds UK VAT, and VAT or sales tax in other countries, where it is due. Every customer is billed in GBP; there are no local-currency prices in v1.
- Phone numbers are priced outside the plan allowances: a monthly and a one-time price per number, and per-segment and per-minute usage, all in GBP from a published rate card built from the provider’s USD list prices with a margin and a currency buffer (Phone numbers § 18). They need a paid plan, or a partner that pays for its tenants, and are capped per workspace and per identity each month. Regulatory pass-through fees (the US texting registration) are priced at cost and capped separately. Charges are added to the next Stripe invoice, or to the partner’s monthly statement.
- The vault is part of the paid plans, with no separate price and no metering in v1.0; a Free-plan workspace cannot use it. Its limits (items per identity and per workspace, sessions, grants, uses) are in Limits › Vault.
Cost controls
Sending and model calls are the costs that grow with use. Storage and Vectorize are small next to them.
-
Triage and agentic-search models are chosen by evaluation, with cost per call as a scored criterion alongside quality (Triage, Search).
-
A top-up is priced above the provider cost of what it adds.
-
Usage per workspace is metered (
GET /v1/usage), so plan allowances can be reviewed against real use. -
Agentic searches are not a separate allowance (goshen has no agentic search), so they are rate-limited per key and capped per workspace per day (
agentic_daily_cap) to bound model cost.