PUT /api/v1/mailboxes/:id/folders/:id had no validation at all: any caller
could rename a system folder (inbox, sent, draft, archive, trash, spam) to
anything, rename it to an empty string, or collide its name with another
folder and trigger an unhandled SQLite UNIQUE-constraint exception.
deleteFolder already protected system folders via is_deletable -- give
updateFolder the same guard, reject empty names, and turn the UNIQUE
collision into a clean 409 instead of a 500.
Also notes that Cloudflare R2/AI/Durable Object infra is now actually
provisioned and the Worker is live at
https://agentic-inbox.subasiarhan3.workers.dev (fails closed pending the
owner-only Access + domain/Email Routing setup).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>