Repository navigation
Phase 3b: support ticket admin API - #1930
Merged
neuromechanist merged 16 commits intoOct 24, 2026
Merged
neuromechanist merged 16 commits into
neuromechanist merged 16 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1930Version: 🤖 Updated on each push. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
neuromechanist
merged commit Oct 24, 2026
5eefb82
into
feature/issue-1893-epic-email-cf
18 checks passed
This was referenced Oct 24, 2026
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The admin API on top of 3a's tickets. Admins are not distinguished by kind (person or agent).
/admin/mail/ticketslist (filters, keyset paging) and detail; reply, note, assign, status, escalate;/admin/mail/queues,/admin/mail/availability,/admin/mail/reprocess. Every read and write goes throughticketVisibleTo: restricted tickets (security, conduct) only for owners and never for the excluded account; a hidden ticket answers 404 on every route, counts included.support@with reply-tosupport+t<ref>@,Message-ID/In-Reply-To/References(allowlisted headers onsendEmail, References trimmed to fit, root kept). An optionalIdempotency-Keymakes a retried reply return the first outcome instead of sending twice; an unknown outcome is never re-sent.support_ticketsnotification preference; creation and escalation mail never reach anyone the ticket is hidden from.mail_reply_keys.MAIL_INBOUNDbinding tonemar-mail(2-year lifecycle); no production routing rule targets the Worker until the cutover.Part of #1896, epic #1893.
Test plan
mail-admin-routes(50+),mail-ticket-cascades,tickets-ingest, provider header tests🤖 Generated with Claude Code