Repository navigation
feat(analytics): track trusted events and issue browser identity proofs - #93
Open
thedogwiththedataonit wants to merge 8 commits into
Open
thedogwiththedataonit wants to merge 8 commits into
thedogwiththedataonit wants to merge 8 commits into
Conversation
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.
Applications need an authenticated way to submit product events and bind consented browser activity to an existing Brew contact. Add typed analytics tracking and short-lived identity-token methods, with canonical OpenAPI types and documentation. Identity-token requests deliberately omit automatic and caller-supplied idempotency headers so expired proofs cannot be replayed.
Validation: 791 tests across 128 files, typecheck, lint, formatting, ESM/CJS/declaration builds and generated-type freshness all passed. Paired platform implementation: https://github.com/GetBrew/brew-v2/pull/2514. Hold for coordinated merge; this PR does not publish a package.
Reviewed with sol-loop: 3 rounds with GPT-6.1 Sol. Sol verdict: approved.
Created with GPT-6 in Codex.
Need help on this PR? Tag
@codesmith-botwith what you need.

Confidence Score: 5/5
The reviewed changes appear safe to merge as part of the coordinated platform rollout.Summary
Adds trusted event tracking and short-lived browser identity tokens to
brew.analytics.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Backend[Application backend] --> Analytics[brew.analytics] Analytics --> Track[track] Analytics --> Identity[createIdentityToken] Track --> Events[Accepted IDs and rejected events] Identity --> Token[Short-lived token] Token --> Browser[Browser SDK]Reviews (7) · Last reviewed commit: "Sync plan and notification API contracts" · Reviewed by Greptile