fix(sdk): drop Message.blockedReason — abuse block reason is operator-only#52
Open
tuyakhov wants to merge 1 commit into
Open
fix(sdk): drop Message.blockedReason — abuse block reason is operator-only#52tuyakhov wants to merge 1 commit into
tuyakhov wants to merge 1 commit into
Conversation
senderkit-app #211 ("keep spam-detection detail out of customer-visible
surfaces") confirms the outbound abuse scanner's detailed block reason is
operator-only: the customer-facing message read columns omit `blockedReason`
entirely, and a blocked message surfaces only a generic `blocked` entry on its
timeline. The field added in the prior sync would never be populated via the
public API, so remove `Message.blockedReason` and correct the `Message.status`
and `MESSAGE_STATUSES` docs. The `blocked` status itself is unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ACZUdzMZGZFNjwfSZ42E2u
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.
Sync pass over
senderkit-appmaincovering everything merged since the last run (theblocked-status sync, app PR #196). Reviewed app PRs #198–#211.Outcome
Only one app change affects the SDK/CLI/MCP surface — and it's a correction to the previous sync, not a new feature.
Message.blockedReasonis operator-only → removed from the SDKApp #211 ("keep spam-detection detail out of customer-visible surfaces") makes the data model explicit:
messageColumns, backingGET /v1/messageslist & get, the SSE tail, and the logs SSR fetch) deliberately omitsblockedReason. Git history confirms the column was never in that set — the only commit to touch it inlib/services/messages.tsis #211, and only to add the exclusion.blockedReasoncolumn + the admin abuse review. The customer sees only a genericblockedentry on the messagetimeline(app'sPUBLIC_BLOCK_REASON = "Blocked by automated content safety checks.").The prior sync added an optional
Message.blockedReasonfield and documented "the trigger is on the message'sblockedReason". Since the public API never returns it, that field would never be populated. This PR:Message.blockedReasonfrompackages/sdk/src/types.ts.Message.statusdoc (types.ts) and theMESSAGE_STATUSESdoc (mcp-schemas.ts) to state the trigger is operator-only and customers see only a genericblockedtimeline entry.@senderkit/sdk+@senderkit/cli, patch).The
blockedstatus itself,MESSAGE_STATUSES, and thesenderkit_messages_liststatus filter are unchanged.No SDK action needed (reviewed, internal-only)
blockedstatus was already synced.messages.renderedVersioncolumn powering itrenderedVersionis not in the customer column set, so not exposed by the API.lib/messages/cursor.tsextraction (base64url cursor codec)cursor/nextCursorSDK handling is unaffected.Verification
pnpm --filter @senderkit/sdk build✅pnpm --filter @senderkit/sdk test✅ (58 passing)🤖 Generated with Claude Code
https://claude.ai/code/session_01ACZUdzMZGZFNjwfSZ42E2u
Generated by Claude Code