Repository navigation
Fix ticket replies on Cloudflare, word refs - #1952
Merged
neuromechanist merged 6 commits intoOct 25, 2026
Merged
neuromechanist merged 6 commits into
neuromechanist merged 6 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1952Version: 🤖 Updated on each push. |
Contributor
Author
|
Review (Sonnet, one round): no blocking defects. Addressed: the 0109 restore now deletes each child table before restoring it, so it is exact even if a cascade were skipped; ADR 0112 body lines on the plus address, Message-ID and reference entropy carry dated amendment markers; the CLI retry comment is rewrapped. Not changed: the EFF word list attribution stays in |
neuromechanist
merged commit Oct 25, 2026
b384633
into
feature/issue-1893-epic-email-cf
1 check passed
This was referenced Oct 25, 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.
Part of epic #1893.
Summary
Staging showed every ticket reply failing: Cloudflare Email Service treats
Message-IDas platform-controlled and refuses the whole send. This PR fixes that, moves mail errors off 502, and makes ticket references readable.In-Reply-ToandReferences.sendViaCloudflarechecks headers against Cloudflare's allowlist before the binding is called, and the test binding enforces the same allowlist, so a platform-controlled header now fails in tests.sendEmailreturns the provider's id; it is stored as the outgoing message'smessage_idonly when it is a valid msg-id, otherwise NULL. Threading of the requester's answer relies on thesupport+t<ref>@reply-to plus tag.reply_not_sent502 -> 422,reply_delivery_unknown502 -> 409,inbound_not_configured503 -> 409. The website's proxy lost the JSON body of a 502, so the page could not readcode. Clients decide bycode.amber-falcon-river), plus tagsupport+t-<ref>@. Legacy ten-character refs keep working and are not rewritten. Creation retries on a ref collision.mail_ticketsso its CHECK accepts both forms, preserving rows, ids, indexes, the trigger, the sequence and every child row (children are copied out and restored, becauseDROP TABLEcascades even with deferred foreign keys).Contract change for the website
ReplyResponse.header_message_idis nowstring | null; reply error statuses as above. The website transcription needs the same change.Test plan
bun run typecheck,bun run lint