Skip to content

feat(inbox): make AI observability source available to everyone - #4006

Merged
trunk-io[bot] merged 4 commits into
mainfrom
posthog-code/ai-observability-available-to-everyone
Jul 30, 2026
Merged

feat(inbox): make AI observability source available to everyone#4006
trunk-io[bot] merged 4 commits into
mainfrom
posthog-code/ai-observability-available-to-everyone

Conversation

@Radu-Raicea

@Radu-Raicea Radu-Raicea commented Jul 30, 2026

Copy link
Copy Markdown
Member

Problem

The AI observability source in the Self-driving inbox config was marked with an "Internal" badge and a "This is only visible to staff users of PostHog" tooltip, even though nothing in the code actually gated it to staff — it already rendered for everyone. It also rendered as an "Open" link-out to the web evaluations page instead of an on/off toggle like every other source.

Changes

  • Removed the staff-only "Internal" badge and tooltip so AI observability reads as a regular, available source.
  • Replaced the "Open" link-out card with a real on/off toggle, matching the web app's AI observability source card and the other sources. The toggle governs the evaluation_report signal source (AI observability signals are always emitted per evaluation report).
  • Wired it through the shared source types, the responder roster (Inbox 2.0), the settings source toggles, and the parallel core SignalSourceService.

How did you test this?

  • Added a unit test in signalSourceService.test.ts verifying the toggle creates a config with the evaluation_report source type. Full core inbox suite passes (172 tests).
  • @posthog/shared, @posthog/core, and @posthog/ui typecheck clean; Biome check clean on all changed files.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog from a Slack thread

Remove the staff-only "Internal" badge and tooltip from the AI observability card in the Self-driving source config, so it's presented as generally available rather than internal.

Generated-By: PostHog Code
Task-Id: 9725e5be-8b91-44f8-8c12-3419a5bf080c
@trunk-io

trunk-io Bot commented Jul 30, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

React Doctor found 1 issue in 1 file · 1 warning.

1 warning

src/features/inbox/components/SignalSourceToggles.tsx

Reviewed by React Doctor for commit 19b7b92.

Replace the AI observability "Open" link-out card with an on/off toggle like the other sources, matching the web app's AI observability source card.

The toggle governs the project-level `evaluation_report` signal source. `llm_analytics` also carries per-evaluation `evaluation` configs (managed on the evaluations page); the toggle is scoped to `evaluation_report` so those are left untouched. Wired in both the responder roster (Inbox 2.0) and the settings source toggles, plus the parallel core SignalSourceService, with tests covering the scoping.

Generated-By: PostHog Code
Task-Id: 9725e5be-8b91-44f8-8c12-3419a5bf080c
AI observability signals are always emitted per evaluation report — there's no per-evaluation `evaluation` signal source to guard against — so treat llm_analytics as a plain single-type source like the others. Removes the type-scoping helper and the now-moot scoping tests, keeping the source-type mapping to `evaluation_report`.

Generated-By: PostHog Code
Task-Id: 9725e5be-8b91-44f8-8c12-3419a5bf080c
Signals only emit once evaluations exist, so the AI observability source card now says to set up evaluations and links to the ai-evals docs.

Generated-By: PostHog Code
Task-Id: 9725e5be-8b91-44f8-8c12-3419a5bf080c
@Radu-Raicea
Radu-Raicea marked this pull request as ready for review July 30, 2026 14:05
@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(inbox): point AI observability sour..." | Re-trigger Greptile

@trunk-io
trunk-io Bot merged commit d07bc34 into main Jul 30, 2026
40 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/ai-observability-available-to-everyone branch July 30, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants