:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat: add `identity_verified` boolean to `Ticket` (#54628)
Luke Belton812026842c51
diff --git a/frontend/src/layout/scenes/components/SceneTitleSection.tsx b/frontend/src/layout/scenes/components/SceneTitleSection.tsxindex 606ce79d840e..f14e3e91f4b7 100644--- a/frontend/src/layout/scenes/components/SceneTitleSection.tsx+++ b/frontend/src/layout/scenes/components/SceneTitleSection.tsx@@ -143,6 +143,10 @@ type SceneMainTitleProps = {* undefined to show the default name*/name?: string | null+ /**+ * Optional node rendered inline immediately after the name (e.g. a status tag)+ */+ nameSuffix?: React.ReactNode/*** null to hide the description,* undefined to show the default description@@ -218,6 +222,7 @@ type SceneMainTitleProps = {export function SceneTitleSection({name,+ nameSuffix,description,resourceType,markdown = false,@@ -345,27 +350,30 @@ export function SceneTitleSection({onGenerateMetadata={onGenerateMetadata}isGeneratingMetadata={isGeneratingMetadata}suffix={- hasDescription ? (- <ButtonPrimitive- className={cn(- 'size-[var(--button-height-sm)] shrink-0',- isScrolled- ? 'animate-fade-out-subtle pointer-events-none'- : 'animate-fade-in-subtle group-hover/scene-title-section:opacity-100 opacity-30 transition-opacity duration-200 motion-reduce:transition-none'- )}- onClick={toggleShowDescription}- tooltip={showDescription ? 'Hide description' : 'Show description'}- tooltipPlacement="bottom"- iconOnly- data-attr={- showDescription- ? 'toggle-description-button-collapse'- : 'toggle-description-button-expand'- }- >- {showDescription || forceEdit ? <IconCollapse /> : <IconExpand />}- </ButtonPrimitive>- ) : undefined+ <>+ {nameSuffix}+ {hasDescription ? (+ <ButtonPrimitive+ className={cn(+ 'size-[var(--button-height-sm)] shrink-0',+ isScrolled+ ? 'animate-fade-out-subtle pointer-events-none'+ : 'animate-fade-in-subtle group-hover/scene-title-section:opacity-100 opacity-30 transition-opacity duration-200 motion-reduce:transition-none'+ )}+ onClick={toggleShowDescription}+ tooltip={showDescription ? 'Hide description' : 'Show description'}+ tooltipPlacement="bottom"+ iconOnly+ data-attr={+ showDescription+ ? 'toggle-description-button-collapse'+ : 'toggle-description-button-expand'+ }+ >+ {showDescription || forceEdit ? <IconCollapse /> : <IconExpand />}+ </ButtonPrimitive>+ ) : undefined}+ </>}/></>diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeSupportTickets.stories.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeSupportTickets.stories.tsxindex 6c7433833882..093063d9205e 100644--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeSupportTickets.stories.tsx+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeSupportTickets.stories.tsx@@ -43,6 +43,7 @@ function makeTicket(overrides: Partial<Ticket> & { id: string; ticket_number: nustatus: 'open',channel_source: 'widget',anonymous_traits: {},+ identity_verified: false,ai_resolved: false,created_at: '2024-01-10T14:30:00Z',updated_at: '2024-01-11T09:15:00Z',diff --git a/products/conversations/backend/api/email_events.py b/products/conversations/backend/api/email_events.pyindex 7f75665dbbc1..a8539e7a8663 100644--- a/products/conversations/backend/api/email_events.py+++ b/products/conversations/backend/api/email_events.py@@ -354,7 +354,8 @@ def email_inbound_handler(request: HttpRequest) -> HttpResponse:# 7b. Detect team member sender — only trust From when DKIM passes# AND the envelope-sender domain aligns with the From domain.- posthog_user = _resolve_team_member(sender_email, team) if _sender_authenticated(request, sender_email) else None+ sender_authenticated = _sender_authenticated(request, sender_email)+ posthog_user = _resolve_team_member(sender_email, team) if sender_authenticated else Noneis_team_member = posthog_user is not None# 8. Create ticket/comment/mapping in a transaction@@ -387,7 +388,19 @@ def email_inbound_handler(request: HttpRequest) -> HttpResponse:email_from=sender_email,cc_participants=cc_list,unread_team_count=0 if is_team_member else 1,+ identity_verified=sender_authenticated,)+ elif (+ sender_authenticated+ and not ticket.identity_verified+ and sender_email.lower() == (ticket.email_from or ticket.distinct_id or "").lower()+ ):+ # A later authenticated message promotes the thread to verified — but only when the+ # authenticated sender matches the identity already on the ticket. Otherwise a different+ # SPF-aligned sender could thread onto a ticket claiming someone else's identity and+ # falsely mark it verified.+ ticket.identity_verified = True+ ticket.save(update_fields=["identity_verified", "updated_at"])assert ticket is not Nonediff --git a/products/conversations/backend/api/tests/test_email_endpoints.py b/products/conversations/backend/api/tests/test_email_endpoints.pyindex 9cd51c1b98cf..9340006ce11a 100644--- a/products/conversations/backend/api/tests/test_email_endpoints.py+++ b/products/conversations/backend/api/tests/test_email_endpoints.py@@ -1215,6 +1215,31 @@ class TestEmailInboundTeamMemberDetection(BaseTest):assert comment.item_context["from_email"] is Trueassert comment.item_context["author_type"] == "customer"+ @parameterized.expand(+ [+ # (name, extra_post_fields, expected_identity_verified)+ ("spf_pass_aligned_domain", {"sender": "[email protected]", "X-Mailgun-Spf": "Pass"}, True),+ ("no_spf", {}, False),+ ("spf_pass_misaligned_domain", {"sender": "[email protected]", "X-Mailgun-Spf": "Pass"}, False),+ ]+ )+ @patch("products.conversations.backend.api.email_events.validate_webhook_signature", return_value=True)+ def test_inbound_identity_verified_reflects_spf(+ self, _name: str, extra_fields: dict[str, str], expected_verified: bool, _mock_sig: MagicMock+ ):+ self._post(+ {+ "recipient": "[email protected]",+ "from": "Alice <[email protected]>",+ "Message-Id": f"<iv-{_name}@external.com>",+ "subject": "Question",+ "stripped-text": "Hello",+ **extra_fields,+ }+ )+ ticket = Ticket.objects.get(team=self.team)+ assert ticket.identity_verified is expected_verified+@patch("products.conversations.backend.api.email_events.validate_webhook_signature", return_value=True)def test_no_spf_treated_as_customer(self, _mock_sig: MagicMock):"""From header matches a team member but no SPF pass → customer."""@@ -1268,6 +1293,45 @@ class TestEmailInboundTeamMemberDetection(BaseTest):assert forged.item_context["author_type"] == "customer"assert forged.created_by is None+ @parameterized.expand(+ [+ # (name, claimed_email, reply_sender, expected_verified)+ # Same identity re-authenticates on a later message → legitimately promoted.+ ("matching_sender", "[email protected]", "[email protected]", True),+ # A different SPF-aligned sender threads onto a ticket claiming someone else's+ # identity — must NOT promote it to verified (confused-deputy / impersonation).+ ("different_sender", "[email protected]", "[email protected]", False),+ ]+ )+ @patch("products.conversations.backend.api.email_events.validate_webhook_signature", return_value=True)+ def test_promotion_requires_authenticated_sender_to_match_ticket_identity(+ self, _name: str, claimed_email: str, reply_sender: str, expected_verified: bool, _mock_sig: MagicMock+ ):+ # First message: unauthenticated (no SPF) → unverified ticket claiming `claimed_email`.+ self._post(+ {+ "recipient": "[email protected]",+ "from": f"Claimant <{claimed_email}>",+ "Message-Id": f"<promote-init-{_name}@external.com>",+ "subject": "Question",+ "stripped-text": "Hello",+ }+ )+ # Reply: SPF-authenticated (envelope sender aligned with From) threaded onto the same ticket.+ self._post(+ {+ "recipient": "[email protected]",+ "from": f"Reply <{reply_sender}>",+ "sender": reply_sender,+ "X-Mailgun-Spf": "Pass",+ "Message-Id": f"<promote-reply-{_name}@external.com>",+ "In-Reply-To": f"<promote-init-{_name}@external.com>",+ "stripped-text": "Follow-up",+ }+ )+ ticket = Ticket.objects.get(team=self.team)+ assert ticket.identity_verified is expected_verified+class TestEmailInboundCcParticipants(BaseTest):def setUp(self):diff --git a/products/conversations/backend/api/tests/test_github_tasks.py b/products/conversations/backend/api/tests/test_github_tasks.pyindex e06427ac0663..fc5b619a6143 100644--- a/products/conversations/backend/api/tests/test_github_tasks.py+++ b/products/conversations/backend/api/tests/test_github_tasks.py@@ -104,6 +104,8 @@ class TestProcessGithubEvent(BaseTest):assert ticket.channel_source == "github"assert ticket.channel_detail == "github_issue"assert ticket.status == Status.NEW+ # Created from a signature-validated GitHub webhook — platform-attested.+ assert ticket.identity_verified is Truecomment = Comment.objects.get(team=self.team, item_id=str(ticket.id))assert comment.content is not Nonediff --git a/products/conversations/backend/api/tests/test_tickets.py b/products/conversations/backend/api/tests/test_tickets.pyindex 6ed1f0566fd8..e799d360be84 100644--- a/products/conversations/backend/api/tests/test_tickets.py+++ b/products/conversations/backend/api/tests/test_tickets.py@@ -1640,6 +1640,20 @@ class TestComposeTicketAPI(APIBaseTest):if expected_detail:assert expected_detail in response.json()["detail"]+ def test_composed_ticket_is_not_born_verified(self, mock_on_commit):+ # The team typed the recipient address; the recipient never proved they control it,+ # so an outbound ticket must start with unknown identity (None) — never verified.+ response = self._compose(+ {+ "recipient_email": "[email protected]",+ "email_config_id": str(self.email_config.id),+ "message": "Hello!",+ }+ )+ assert response.status_code == status.HTTP_201_CREATED+ ticket = Ticket.objects.get(team=self.team)+ assert ticket.identity_verified is None+class TestTicketPersonalAPIKeyScopes(APIBaseTest):def _auth_with_pak(self, scopes: list[str]) -> None:diff --git a/products/conversations/backend/api/tests/test_widget.py b/products/conversations/backend/api/tests/test_widget.pyindex 1d61f7adf5f2..7d2194452a58 100644--- a/products/conversations/backend/api/tests/test_widget.py+++ b/products/conversations/backend/api/tests/test_widget.py@@ -694,6 +694,42 @@ class TestWidgetIdentityVerification(BaseTest):self.assertEqual(response.status_code, status.HTTP_200_OK)ticket = Ticket.objects.get(id=response.json()["ticket_id"])self.assertEqual(ticket.distinct_id, self.distinct_id)+ self.assertTrue(ticket.identity_verified)++ def test_anonymous_message_creates_unverified_ticket(self):+ # A widget_session_id-only (no HMAC) request is not server-attested.+ response = self.client.post(+ "/api/conversations/v1/widget/message",+ {+ "widget_session_id": self.widget_session_id,+ "distinct_id": self.distinct_id,+ "message": "Anonymous hello",+ },+ **self._get_headers(),+ )+ self.assertEqual(response.status_code, status.HTTP_200_OK)+ ticket = Ticket.objects.get(id=response.json()["ticket_id"])+ self.assertFalse(ticket.identity_verified)++ def test_verified_message_promotes_anonymous_ticket(self):+ # An existing anonymous ticket becomes verified once an HMAC-verified+ # message with the matching distinct_id lands on it.+ ticket = self._create_ticket()+ self.assertFalse(ticket.identity_verified)++ response = self.client.post(+ "/api/conversations/v1/widget/message",+ {+ "identity_distinct_id": self.distinct_id,+ "identity_hash": self.identity_hash,+ "message": "Now verified",+ "ticket_id": str(ticket.id),+ },+ **self._get_headers(),+ )+ self.assertEqual(response.status_code, status.HTTP_200_OK)+ ticket.refresh_from_db()+ self.assertTrue(ticket.identity_verified)def test_send_message_existing_ticket_ownership_by_distinct_id(self):ticket = self._create_ticket()diff --git a/products/conversations/backend/api/tickets.py b/products/conversations/backend/api/tickets.pyindex c984d2d1e73e..83febd533872 100644--- a/products/conversations/backend/api/tickets.py+++ b/products/conversations/backend/api/tickets.py@@ -236,6 +236,7 @@ class TicketSerializer(TaggedItemSerializerMixin, serializers.ModelSerializer):"priority","assignee","anonymous_traits",+ "identity_verified","ai_resolved","escalation_reason","ai_triage",@@ -290,8 +291,17 @@ class TicketSerializer(TaggedItemSerializerMixin, serializers.ModelSerializer):"organization_id","person","ai_triage",+ "identity_verified",]extra_kwargs = {+ "identity_verified": {+ "help_text": (+ "Trust signal indicating whether the ticket's claimed identity was attested by the server "+ "(widget HMAC, SPF-authenticated email, or a signature-validated platform webhook). "+ "True when verified, false when assessed but not attested, null when unknown "+ "(e.g. created before this signal existed)."+ )+ },"status": {"help_text": "Ticket status: new, open, pending, on_hold, or resolved"},"priority": {"help_text": "Ticket priority: low, medium, or high. Null if unset."},"sla_due_at": {"help_text": "SLA deadline set via workflows. Null means no SLA."},@@ -1201,6 +1211,9 @@ class TicketViewSet(TaggedItemViewSetMixin, TeamAndOrgViewSetMixin, viewsets.Modemail_config=email_config,email_from=data["recipient_email"],email_subject=data.get("email_subject", ""),+ # The recipient hasn't proven control of this address — a team member just typed it —+ # so leave identity unknown. It's promoted to verified if/when they reply and authenticate.+ identity_verified=None,)Comment.objects.create(diff --git a/products/conversations/backend/api/widget.py b/products/conversations/backend/api/widget.pyindex cf54ef419bda..f15816b64f91 100644--- a/products/conversations/backend/api/widget.py+++ b/products/conversations/backend/api/widget.py@@ -173,6 +173,10 @@ class WidgetMessageView(APIView):if session_context:ticket.session_context.update(session_context)+ # HMAC-verified requests are server-attested — mark the identity trusted.+ if verified_distinct_id is not None:+ ticket.identity_verified = True+# Increment unread count for team (customer sent a message)ticket.unread_team_count = F("unread_team_count") + 1ticket.save(@@ -182,6 +186,7 @@ class WidgetMessageView(APIView):"session_id","session_context","unread_team_count",+ "identity_verified","updated_at",])@@ -208,6 +213,7 @@ class WidgetMessageView(APIView):unread_team_count=1,session_id=session_id,session_context=session_context,+ identity_verified=verified_distinct_id is not None,)try:diff --git a/products/conversations/backend/migrations/0042_ticket_identity_verified.py b/products/conversations/backend/migrations/0042_ticket_identity_verified.pynew file mode 100644index 000000000000..29a8997184bb--- /dev/null+++ b/products/conversations/backend/migrations/0042_ticket_identity_verified.py@@ -0,0 +1,17 @@+# Generated by Django 5.2.14 on 2026-06-25 16:32++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("conversations", "0041_ticket_organization_id"),+ ]++ operations = [+ migrations.AddField(+ model_name="ticket",+ name="identity_verified",+ field=models.BooleanField(null=True),+ ),+ ]diff --git a/products/conversations/backend/migrations/0043_backfill_identity_verified.py b/products/conversations/backend/migrations/0043_backfill_identity_verified.pynew file mode 100644index 000000000000..7e034cc9872b--- /dev/null+++ b/products/conversations/backend/migrations/0043_backfill_identity_verified.py@@ -0,0 +1,20 @@+from django.db import migrations+++def backfill_identity_verified(apps, schema_editor):+ # Slack/Teams/GitHub tickets originate from signature-validated webhooks, so their+ # identity is server-attested purely by channel — backfill those to verified.+ # Everything else (widget HMAC, email SPF) was assessed per-request and isn't+ # recoverable for historical rows, so it stays NULL ("unknown") rather than False.+ Ticket = apps.get_model("conversations", "Ticket")+ Ticket.objects.filter(channel_source__in=["slack", "teams"]).update(identity_verified=True)+++class Migration(migrations.Migration):+ dependencies = [+ ("conversations", "0042_ticket_identity_verified"),+ ]++ operations = [+ migrations.RunPython(backfill_identity_verified, migrations.RunPython.noop),+ ]diff --git a/products/conversations/backend/migrations/max_migration.txt b/products/conversations/backend/migrations/max_migration.txtindex 4b1dc4731b2d..d3331da1ad1d 100644--- a/products/conversations/backend/migrations/max_migration.txt+++ b/products/conversations/backend/migrations/max_migration.txt@@ -1 +1 @@-0041_ticket_organization_id+0043_backfill_identity_verifieddiff --git a/products/conversations/backend/models/ticket.py b/products/conversations/backend/models/ticket.pyindex 29987beb0177..2d09b602a321 100644--- a/products/conversations/backend/models/ticket.py+++ b/products/conversations/backend/models/ticket.py@@ -46,6 +46,13 @@ class Ticket(UUIDTModel):status = models.CharField(max_length=20, choices=Status, default=Status.NEW)priority = models.CharField(max_length=20, choices=Priority, null=True, blank=True)anonymous_traits = models.JSONField(default=dict, blank=True)+ # Trust signal (tri-state):+ # True — the claimed identity was attested by the server (widget HMAC,+ # SPF-authenticated email, or a signature-validated platform webhook).+ # False — assessed but not attested (anonymous claim we couldn't verify).+ # None — unknown; we never assessed it (e.g. predates this signal and the+ # channel doesn't structurally guarantee verification).+ identity_verified = models.BooleanField(null=True)ai_resolved = models.BooleanField(default=False)escalation_reason = models.TextField(null=True, blank=True)ai_triage = models.JSONField(default=dict, blank=True)diff --git a/products/conversations/backend/slack.py b/products/conversations/backend/slack.pyindex 10144967b6f8..a4be2edb8567 100644--- a/products/conversations/backend/slack.py+++ b/products/conversations/backend/slack.py@@ -486,6 +486,8 @@ def create_or_update_slack_ticket(slack_thread_ts=thread_ts,slack_team_id=slack_team_id,unread_team_count=0 if is_team_member else 1,+ # Created from a signature-validated Slack webhook — platform-attested identity.+ identity_verified=True,)Comment.objects.create(diff --git a/products/conversations/backend/tasks.py b/products/conversations/backend/tasks.pyindex 9c3ea8fcaf6e..61fd39b79cf7 100644--- a/products/conversations/backend/tasks.py+++ b/products/conversations/backend/tasks.py@@ -1544,6 +1544,8 @@ def _get_or_create_github_ticket(team: Team, repo: str, issue_number: int, paylogithub_repo=repo,github_issue_number=issue_number,unread_team_count=0,+ # Created from a signature-validated GitHub webhook — platform-attested identity.+ identity_verified=True,)if title:@@ -1877,6 +1879,9 @@ def create_github_issue(status=Status.OPEN,github_repo=repo,github_issue_number=issue_number,+ # Outbound issue opened by the team — there's no external party whose identity we verified,+ # so leave it unknown rather than claiming a verification that never happened.+ identity_verified=None,)CommentModel.objects.create(diff --git a/products/conversations/backend/teams.py b/products/conversations/backend/teams.pyindex 3289788ff9de..046b819f551e 100644--- a/products/conversations/backend/teams.py+++ b/products/conversations/backend/teams.py@@ -687,6 +687,8 @@ def create_or_update_teams_ticket(teams_service_url=service_url,teams_tenant_id=tenant_id,unread_team_count=0 if is_team_member else 1,+ # Created from a signature-validated Teams webhook — platform-attested identity.+ identity_verified=True,)Comment.objects.create(diff --git a/products/conversations/frontend/components/IdentityBadge/IdentityBadge.tsx b/products/conversations/frontend/components/IdentityBadge/IdentityBadge.tsxnew file mode 100644index 000000000000..275fdbcdb91d--- /dev/null+++ b/products/conversations/frontend/components/IdentityBadge/IdentityBadge.tsx@@ -0,0 +1,44 @@+import { IconShield, IconShieldEmpty, IconShieldExclamation } from '@posthog/icons'+import { LemonTag, Tooltip } from '@posthog/lemon-ui'++const DOCS_URL = 'https://posthog.com/docs/support/widget#identity-verification'++const VERIFIED_TEXT =+ "Verified identity — PostHog confirmed this person controls the identity on the ticket (a signed widget request, an authenticated email, or a validated Slack, Teams, or GitHub event). You can trust who you're talking to."+const UNVERIFIED_TEXT =+ "Unverified identity — this ticket was raised anonymously, so the claimed identity may not belong to this person. Confirm who you're talking to before sharing account details."+const UNKNOWN_TEXT =+ "Unknown identity — PostHog never checked who's on this ticket. This happens for tickets created before identity verification existed, or outbound tickets where the recipient hasn't replied yet. Confirm who you're talking to before sharing account details."++interface IdentityBadgeProps {+ /** True = verified, false = assessed but not verified, null = unknown. */+ verified: boolean | null+ /** Icon-only rendering */+ iconOnly?: boolean+}++export function IdentityBadge({ verified, iconOnly = false }: IdentityBadgeProps): JSX.Element {+ const tooltip = verified ? VERIFIED_TEXT : verified === false ? UNVERIFIED_TEXT : UNKNOWN_TEXT+ // verified → shield+tick, unverified → shield+exclamation, unknown → empty shield+ const icon = verified ? <IconShield /> : verified === false ? <IconShieldExclamation /> : <IconShieldEmpty />+ // verified → green, unverified → amber, unknown → muted grayscale+ const iconColor = verified ? 'text-success' : verified === false ? 'text-warning' : 'text-muted-alt'+ const tagType = verified ? 'success' : verified === false ? 'warning' : 'muted'++ if (iconOnly) {+ return (+ <Tooltip title={tooltip} docLink={DOCS_URL}>+ <span className={iconColor}>{icon}</span>+ </Tooltip>+ )+ }++ return (+ <Tooltip title={tooltip} docLink={DOCS_URL}>+ <LemonTag type={tagType}>+ <span className="mr-1">{icon}</span>+ {verified ? 'Verified' : verified === false ? 'Unverified' : 'Unknown'}+ </LemonTag>+ </Tooltip>+ )+}diff --git a/products/conversations/frontend/generated/api.schemas.ts b/products/conversations/frontend/generated/api.schemas.tsindex bb1116c2712f..d238e490d3e4 100644--- a/products/conversations/frontend/generated/api.schemas.ts+++ b/products/conversations/frontend/generated/api.schemas.ts@@ -685,6 +685,11 @@ export interface TicketApi {readonly assignee: TicketAssignmentApi/** Customer-provided traits such as name and email */anonymous_traits?: unknown+ /**+ * Trust signal indicating whether the ticket's claimed identity was attested by the server (widget HMAC, SPF-authenticated email, or a signature-validated platform webhook). True when verified, false when assessed but not attested, null when unknown (e.g. created before this signal existed).+ * @nullable+ */+ readonly identity_verified: boolean | nullai_resolved?: boolean/** @nullable */escalation_reason?: string | null@@ -770,6 +775,11 @@ export interface PatchedTicketApi {readonly assignee?: TicketAssignmentApi/** Customer-provided traits such as name and email */anonymous_traits?: unknown+ /**+ * Trust signal indicating whether the ticket's claimed identity was attested by the server (widget HMAC, SPF-authenticated email, or a signature-validated platform webhook). True when verified, false when assessed but not attested, null when unknown (e.g. created before this signal existed).+ * @nullable+ */+ readonly identity_verified?: boolean | nullai_resolved?: boolean/** @nullable */escalation_reason?: string | nulldiff --git a/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx b/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsxindex e82023560018..6e93b16d7f1d 100644--- a/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx+++ b/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx@@ -23,6 +23,7 @@ import { ProductKey } from '~/queries/schema/schema-general'import { AssigneeIconDisplay, AssigneeLabelDisplay, AssigneeSelect } from '../../components/Assignee'import { ChannelsTag } from '../../components/Channels/ChannelsTag'import { ChatView } from '../../components/Chat/ChatView'+import { IdentityBadge } from '../../components/IdentityBadge/IdentityBadge'import { SlaDisplay } from '../../components/SlaDisplay'import { TicketTags } from '../../components/TicketTags'import {@@ -144,6 +145,11 @@ export function SupportTicketScene({ ticketId }: { ticketId: string }): JSX.Elem<SceneContent><SceneTitleSectionname={`Ticket: ${ticket?.ticket_number?.toString() || ticket?.id || ''}`}+ nameSuffix={+ ticket && ticket.identity_verified !== true ? (+ <IdentityBadge verified={ticket.identity_verified} />+ ) : undefined+ }description=""resourceType={{ type: 'conversation' }}forceBackTo={{@@ -202,27 +208,30 @@ export function SupportTicketScene({ ticketId }: { ticketId: string }): JSX.ElemView person</LemonButton></div>- <PersonDisplay- person={- ticket.person- ? {- id: ticket.person.id,- distinct_id: ticket.distinct_id,- distinct_ids: ticket.person.distinct_ids,- // Merge anonymous_traits as fallback for missing person properties- properties: {- ...ticket.anonymous_traits,- ...ticket.person.properties,- },- }- : {- distinct_id: ticket.distinct_id,- properties: ticket.anonymous_traits || {},- }- }- withIcon- withComposeTicketButton- />+ <div className="flex items-center gap-2">+ <PersonDisplay+ person={+ ticket.person+ ? {+ id: ticket.person.id,+ distinct_id: ticket.distinct_id,+ distinct_ids: ticket.person.distinct_ids,+ // Merge anonymous_traits as fallback for missing person properties+ properties: {+ ...ticket.anonymous_traits,+ ...ticket.person.properties,+ },+ }+ : {+ distinct_id: ticket.distinct_id,+ properties: ticket.anonymous_traits || {},+ }+ }+ withIcon+ withComposeTicketButton+ />+ <IdentityBadge verified={ticket.identity_verified} />+ </div><div className="my-3 border-t" /></>)}diff --git a/products/conversations/frontend/scenes/tickets/SupportTicketsScene.test.tsx b/products/conversations/frontend/scenes/tickets/SupportTicketsScene.test.tsxindex a9728858e5c8..f25a9af0e7e1 100644--- a/products/conversations/frontend/scenes/tickets/SupportTicketsScene.test.tsx+++ b/products/conversations/frontend/scenes/tickets/SupportTicketsScene.test.tsx@@ -18,6 +18,7 @@ const TICKET: Ticket = {status: 'open',channel_source: 'email',anonymous_traits: {},+ identity_verified: false,ai_resolved: false,created_at: '2026-06-12T00:00:00Z',updated_at: '2026-06-12T00:00:00Z',diff --git a/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsx b/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsxindex 3a9cb2614be8..d2b37678adc2 100644--- a/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsx+++ b/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsx@@ -46,6 +46,7 @@ import {import { ChannelsTag } from '../../components/Channels/ChannelsTag'import { ComposeTicketButton } from '../../components/ComposeTicket'import { ConversationsDisabledBanner } from '../../components/ConversationsDisabledBanner'+import { IdentityBadge } from '../../components/IdentityBadge/IdentityBadge'import { SavedViewsButton } from '../../components/SavedViews/SavedViewsButton'import { ScenesTabs } from '../../components/ScenesTabs'import { SlaDisplay } from '../../components/SlaDisplay'@@ -107,6 +108,7 @@ export const SUPPORT_TICKETS_TABLE_COLUMNS: LemonTableColumns<Ticket> = [}withIcon/>+ {ticket.identity_verified === false && <IdentityBadge verified={false} iconOnly />}</div>),},diff --git a/products/conversations/frontend/types.ts b/products/conversations/frontend/types.tsindex 2cab01397e76..c9ffc1102049 100644--- a/products/conversations/frontend/types.ts+++ b/products/conversations/frontend/types.ts@@ -118,6 +118,7 @@ export interface Ticket {channel_source: TicketChannelchannel_detail?: TicketChannelDetail | nullanonymous_traits: Record<string, any>+ identity_verified: boolean | nullai_resolved: booleanescalation_reason?: stringcreated_at: stringdiff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 0315528efcb6..ed8384dfdb02 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -34767,6 +34767,11 @@ export namespace Schemas {readonly assignee: TicketAssignment;/** Customer-provided traits such as name and email */anonymous_traits?: unknown;+ /**+ * Trust signal indicating whether the ticket's claimed identity was attested by the server (widget HMAC, SPF-authenticated email, or a signature-validated platform webhook). True when verified, false when assessed but not attested, null when unknown (e.g. created before this signal existed).+ * @nullable+ */+ readonly identity_verified: boolean | null;ai_resolved?: boolean;/** @nullable */escalation_reason?: string | null;@@ -42114,6 +42119,11 @@ export namespace Schemas {readonly assignee?: TicketAssignment;/** Customer-provided traits such as name and email */anonymous_traits?: unknown;+ /**+ * Trust signal indicating whether the ticket's claimed identity was attested by the server (widget HMAC, SPF-authenticated email, or a signature-validated platform webhook). True when verified, false when assessed but not attested, null when unknown (e.g. created before this signal existed).+ * @nullable+ */+ readonly identity_verified?: boolean | null;ai_resolved?: boolean;/** @nullable */escalation_reason?: string | null;