Repository navigation
Envelope v1.0.0
First public release. Envelope is a bring-your-own-mailbox email client with
agent-native primitives: it runs a fleet of AI agents on one shared inbox with
per-agent identity, per-action attribution, and a fail-closed send gate, plus a
full webmail dashboard for the humans in the loop.
Added
- Multi-agent identity on a shared inbox. Named agent identities
(envelope agent create|list|show|revoke,envtok_tokens shown once and
stored as a SHA-256 hash + display prefix). Per-agent policy
(envelope agent policy set) clamps allowed accounts, folders, actions, a
send-mode ceiling, and recipient allowlists — a clamp never widens what a
policy permits. Every mutation and send-policy/Governor event carries
agent_idattribution;envelope actions tail --agent <id>shows the
per-agent trail. MCP contexts resolveENVELOPE_AGENT_TOKENat startup and
authorize every tool call pre-dispatch (unknown/revoked token fails loud). - License gate. Free tier runs up to 2 active agent identities; a 3rd
requiresenvelope license activate(stableagent_limit_license_required
denial).license activate|status|deactivatepersist locally, prefix-only
display. - Full webmail dashboard (v2). SvelteKit (Svelte 5) SPA embedded in the
binary — accounts rail with health badges, unified/smart mailboxes, message
list with range-selection and contextual bulk toolbar, sandboxed reader that
never marks messages read, composer (reply/forward, send-later, undo-send),
and the Agent Cockpit: per-account draft-approval queue, per-agent
attribution feed, scheduled sends with persisted Governor verdict badges, and
rules-first authoring with live blast-radius preview. - Bulk operations (
envelope bulk, MCPbulktool): move/copy/flag/delete/
tag over UID or search targets (500 cap), partial-failure isolation, dry-run
default for destructive ops, UID-range coalescing. - Durable event push / webhooks. HMAC-SHA256 signed deliveries with
exponential backoff and dead-lettering, per-route secrets minted once,
delivery-result capture.envelope watch --deliver,
envelope events routes …, catalog:send_queued,draft_approved,
send_completed,governor_blocked,agent_action. - Server-sent events at
/api/events/stream(metadata-only, heartbeat,
reconnecting client with polling fallback). - Linux support. Target-conditional keyring backends (macOS
apple-native,
Linux secret-service + file/passphrase default), systemd--userunits with
LoadCredential,dist/install.sh(OS/arch detect + sha256 verify), and a
4-target tag-triggered release pipeline. - Passphrase-first credential store. Interactive passphrase on first
account add (Argon2),ENVELOPE_MASTER_PASSPHRASE_FILEfor systemd,
envelope accounts rekey; machine-key storage is now an explicit
--insecure-machine-keyopt-in. - Onboarding. Provider app-password guidance on quickstart auth failure,
and docs: install-linux, credential-backends, agent-fleet-shared-inbox,
quickstart, webhooks.
Security
- MCP trust boundary. Hostile message fields (body/subject/from/snippet)
returned to agents are wrapped in an_envelope_trust: "untrusted-content"
envelope so prompt-injection payloads are labelled, not silently trusted. - Dashboard CSRF. Double-submit
__Host-cookie +X-Envelope-CSRFheader
with Origin/Sec-Fetch-Site checks on all state-changing endpoints; valid
bearer requests are exempt. Stabledashboard_csrf_requiredcode. - SSRF guard on webhook URLs. Every sink (CLI rule create/edit, CLI event
routes, dashboard rule create and update) rejects loopback/link-local/
private/reserved/documentation targets — including cloud metadata
169.254.169.254, and IPv4-mapped/compatible IPv6 forms of them — before the
URL is persisted. - No automatic retry after an inconclusive SMTP failure. A scheduled send
whose SMTP attempt errors parks indelivery_uncertainrather than releasing
for retry: a dropped final acknowledgement cannot prove non-delivery, so an
operator must reconcile before the draft is discarded — never a silent
duplicate send. - Secrets are never accepted as CLI arguments. Account passwords and license
keys use a hidden terminal prompt or explicit--password-stdin/--key-stdin,
keeping them out of process listings and shell history. - Bearer token required for broad dashboard binds. A Tailscale identity
allowlist is honored only on a loopback listener behindtailscale serve;
any non-loopback bind requires a dashboard bearer token.
Fixed
- Drafts always land in the real IMAP Drafts folder. Draft create/reply/
forward previously appended to IMAP only best-effort and silently fell back to
a local-only record (invisible to Mail.app and other clients) on any failure.
The append is now mandatory and fail-loud, and Envelope resolves the Drafts
folder itself via the RFC 6154 SPECIAL-USE\Draftsattribute (plus provider
and localized-name detection), so a folder namedBrouillons,INBOX/draft,
or[Gmail]/Draftsall resolve without the agent naming it. Send-only accounts
with no IMAP host now error instead of creating an invisible draft.
Notes
- Send-mode names (
draft-only,confirm-send,allowlisted-send,
autonomous-send) are stable. MCP/agent contexts default todraft-only. - All outbound mail remains gated through Governor attribution; there is no
send bypass. Mailbox reads useEXAMINE+BODY.PEEK[]only. - Agent contract
envelope.agent_contract.v1grew additively across this
release; no--jsonoutput shapes were removed or retyped.