Skip to content

Phase 3b: support ticket admin API - #1930

Merged
neuromechanist merged 16 commits into
feature/issue-1893-epic-email-cffrom
feature/issue-1896-phase3b-api
Oct 24, 2026
Merged

neuromechanist merged 16 commits into
feature/issue-1893-epic-email-cffrom
feature/issue-1896-phase3b-api

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

The admin API on top of 3a's tickets. Admins are not distinguished by kind (person or agent).

  • /admin/mail/tickets list (filters, keyset paging) and detail; reply, note, assign, status, escalate; /admin/mail/queues, /admin/mail/availability, /admin/mail/reprocess. Every read and write goes through ticketVisibleTo: restricted tickets (security, conduct) only for owners and never for the excluded account; a hidden ticket answers 404 on every route, counts included.
  • Replies go from support@ with reply-to support+t<ref>@, Message-ID/In-Reply-To/References (allowlisted headers on sendEmail, References trimmed to fit, root kept). An optional Idempotency-Key makes a retried reply return the first outcome instead of sending twice; an unknown outcome is never re-sent.
  • support_tickets notification preference; creation and escalation mail never reach anyone the ticket is hidden from.
  • Migration 0103: escalation owner per queue (must be an owner; cleared in all three revocation paths) and mail_reply_keys.
  • Production MAIL_INBOUND binding to nemar-mail (2-year lifecycle); no production routing rule targets the Worker until the cutover.
  • ADR 0111, support tickets.

Part of #1896, epic #1893.

Test plan

  • mail-admin-routes (50+), mail-ticket-cascades, tickets-ingest, provider header tests
  • Full backend suite 8578 pass, 0 fail (before the final small round; targeted 107 pass after it)
  • Typecheck, lint, route inventory, ADR index, email-preferences tests
  • Two Sonnet review rounds, all findings fixed

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1930

Version: 0.10.24-PR1930.1715709
Commit: 1715709


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 5eefb82 into feature/issue-1893-epic-email-cf Oct 24, 2026
18 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-1896-phase3b-api branch October 24, 2026 17:23

This branch was previously deployed

1 inactive deployment
npm — 1715709a Deployed Oct 24, 2026 by neuromechanist via publish #3902
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant