Repository navigation
refactor: isolate Featured evidence reads - #5003
Merged
Merged
Conversation
Contributor
|
🦞👀 |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
vincentkoc
marked this pull request as ready for review
November 30, 2026 07:00
This branch was successfully deployed
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.
What Problem This Solves
Search report assembly imported the registered Featured action module to collect read-only evidence. That tied a read consumer to action registration and a broader runtime context than it uses.
User Impact
No user-visible change or data migration. Featured and search reports keep their existing results, ordering, errors, and authorization checks, including the distinct ordinary-download and weekly-install rankings.
Why This Change Was Made
The existing collector and monthly reads now have one reader owner with only
runQueryandrunActioncapabilities. All five registered functions remain unchanged. The change adds four production lines, including generated API metadata, while removing the search-report reader's dependency on the registered Featured module.Evidence
bun run ci:static,bun run ci:unit(10,639 passed, 6 skipped),bun run ci:types-build,bunx tsc -p packages/schema/tsconfig.json --noEmit,bunx tsc -p packages/clawhub/tsconfig.json --noEmit,bun run --cwd packages/clawhub-admin typecheck, andbunx tsc -p convex/tsconfig.json --noEmitpassed. The initial unit run lackedunzipand Go on the fresh runner; after installing those system prerequisites, all 15 tests in the affected three suites and full unit coverage passed. Repository dependencies were unchanged.Focused command:
bunx vitest run convex/featuredIntelligence.test.ts convex/lib/featuredIntelligence.test.ts convex/searchReports.test.ts convex/searchWeeklyDigest.test.ts.Source/caller review and P3 review found no remaining issue. P3 was source-only; the later unused-import, formatter-order, and generated-metadata changes received separate source review. Runtime and compiler evidence were checked separately.
AI assistance was used for implementation, validation, and review. I understand and can maintain the change.