Skip to content

[codex] Add freebuff access tier analytics#706

Merged
jahooma merged 2 commits into
mainfrom
jahooma/freebuff-posthog-mode
May 19, 2026
Merged

[codex] Add freebuff access tier analytics#706
jahooma merged 2 commits into
mainfrom
jahooma/freebuff-posthog-mode

Conversation

@brandonkachen
Copy link
Copy Markdown
Collaborator

Summary

  • Add accessTier: 'full' | 'limited' to freebuff chat completion analytics after country/privacy classification.
  • Move the sampled chat completions request event until after freebuff access classification so it receives the same analytics defaults.
  • Add tests covering full-tier success events and limited-tier validation events.

Validation

  • bun test web/src/app/api/v1/chat/completions/__tests__/completions.test.ts

Note: the focused test run passes, with an existing postgres reconnect TimeoutNegativeWarning emitted during the suite.

@jahooma jahooma marked this pull request as ready for review May 19, 2026 18:46
@jahooma jahooma merged commit 30a8095 into main May 19, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/freebuff-posthog-mode branch May 19, 2026 19:02
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