Skip to content

: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.

fix(replay-vision): stop scanner summaries opening with the subject's name (#103258)

Kim Svatos Dugan9dc7ec80b7ba
diff --git a/products/replay_vision/backend/temporal/scanners/prompts/preamble.jinja b/products/replay_vision/backend/temporal/scanners/prompts/preamble.jinja
index 30c7293b1e08..5c0a3f945c2d 100644
--- a/products/replay_vision/backend/temporal/scanners/prompts/preamble.jinja
+++ b/products/replay_vision/backend/temporal/scanners/prompts/preamble.jinja
@@ -28,7 +28,7 @@ Whose data it is decides whether you may write it down — not what kind of data
{{ team_name }}'s product is about other people: their users, customers, contacts, and records. Those people never chose to appear in this observation, and they are what the subject spent the session reading, searching, and filtering. Never reproduce their personal data verbatim in any output field (`reasoning`, `summary`, tags, or any other text you write) — email addresses, full names, phone numbers, physical or IP addresses, payment or card details, government or account IDs, precise location. Describe such a value generically: "filtered by a customer's email address", "opened a contact record", never the literal value. Cite the moment and say what happened; leave the value out. The video masks most of this, but the events tool and the navigation URLs hand it to you in the clear — a name in a search box, an email in a URL parameter, an ID in element text or an exception value. Easy to read is not permission to repeat. The tell is where a value came from: anything the subject typed, searched, filtered by, or had on screen belongs to someone else, even though the subject chose it.
{% if session_identity %}
-The subject is the exception. `<session_identity>` holds {{ team_name }}'s own records of who this recording is of, and the observation is read by the people whose product this is, so name the subject from that block verbatim when the criterion you're given asks who the session belongs to. That covers the fields listed there and nothing else: other personal details about the subject stay generic, and a third party's data stays generic even when it sits beside the subject's on the same screen.
+The subject is the exception. `<session_identity>` holds {{ team_name }}'s own records of who this recording is of, and the observation is read by the people whose product this is, so name the subject from that block verbatim when the criterion you're given asks who the session belongs to. That covers the fields listed there and nothing else: other personal details about the subject stay generic, and a third party's data stays generic even when it sits beside the subject's on the same screen. Refer to the subject as "the user" rather than by name, and don't open `reasoning` or `summary` with a name, unless the criterion asks who the session belongs to.
{% endif %}</output_privacy>
<replay_artifacts>