Harden follower-history audience selection - #69
Merged
pRizz merged 2 commits intoJul 25, 2026
Merged
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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.
Summary
Context
PR #68 already prunes unrelated member metrics from X profile public-cache entries. This adds defense in depth at the history-selection boundary so malformed or mixed metadata from any source cannot switch a known profile to the wrong audience kind.
The branch was rebuilt from
upstream/main. The diff contains four shared source/test files and excludes every path inconfig/fork-owned-paths.json. No migration or public data-contract change is required.Verification
bun test src/lib/analytics/follower-history.test.ts scripts/sync-follower-history.test.ts— 38 passedbun run validate:databun run buildbun run biome:checkbun run studio:lintbun run typecheckbun run studio:typecheckbun run --filter @openlinks/studio-api test— 30 passedbun run studio:test:integration— 9 passedThe pre-commit mutation guard detected that the upstream starter build refreshed two fork-owned image-cache artifacts. Those generated side effects were reverted and excluded; the verified commit was created with Husky disabled to avoid including fork-owned content.