-
Notifications
You must be signed in to change notification settings - Fork 1
perf: repo-finder burns ~59-109 API calls per scan for data it already fetched #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gaurav0107
merged 4 commits into
gaurav0107:main
from
imkp1:feat/repo-finder-query-shape
Jul 13, 2026
+336
−34
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9098f3b
perf(repo-finder): cut per-scan API calls from ~59-109 to 5 + 1/candi…
imkp1 dd9ae6b
fix(repo-finder): implement the Step 1 guards the prose already promised
imkp1 7f103ee
test(repo-finder): execute the Step 1 guards instead of grepping for …
imkp1 0b05f34
test(repo-finder): close two holes in the Step 1 regression checks
imkp1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "$id": "https://github.com/gaurav0107/superhuman/schemas/repo_shortlist.schema.json", | ||
| "title": "repo_shortlist", | ||
| "description": "Ranked repos worth contributing to, with the single best issue candidate per repo. Consumed by opensource-contributor and the contribute/contribution-fleet commands, which bind a target via .repos[0].repo. Owner (sole writer): repo-finder.", | ||
| "type": "object", | ||
| "additionalProperties": true, | ||
| "required": ["generated_at", "repos"], | ||
| "properties": { | ||
| "generated_at": {"type": "string", "format": "date-time"}, | ||
| "criteria": { | ||
| "type": "object", | ||
| "additionalProperties": true, | ||
| "description": "the filter that produced this list, e.g. {\"min_stars\":20000,\"min_score\":60}" | ||
| }, | ||
| "repos": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "additionalProperties": true, | ||
| "required": ["repo", "scores"], | ||
| "properties": { | ||
| "rank": {"type": "integer", "minimum": 1}, | ||
| "repo": {"type": "string", "pattern": "^[^/]+/[^/]+$", "description": "owner/repo slug. Search returns this field as full_name; map it across on write or .repos[0].repo binds null downstream."}, | ||
| "stars": {"type": "integer", "minimum": 0}, | ||
| "category": {"type": "string"}, | ||
| "language": {"type": ["string", "null"], "description": "null for repos GitHub cannot classify"}, | ||
| "topics": {"type": "array", "items": {"type": "string"}, "description": "from the Step 1 search projection; cited by the notes rationale"}, | ||
| "description": {"type": ["string", "null"]}, | ||
| "scores": { | ||
| "type": "object", | ||
| "additionalProperties": true, | ||
| "required": ["final"], | ||
| "description": "commands/repo-finder.md renders scores.final. A score written to a bare .score key renders as null on every row.", | ||
| "properties": { | ||
| "responsiveness": {"type": "number"}, | ||
| "opportunity_quality": {"type": "number"}, | ||
| "outside_contributor_track": {"type": "number"}, | ||
| "ai_friendliness": {"type": "number"}, | ||
| "category_bonus": {"type": "number"}, | ||
| "final": {"type": "number"} | ||
| } | ||
| }, | ||
| "responsiveness_detail": {"type": "object", "additionalProperties": true}, | ||
| "best_issue": { | ||
| "type": "object", | ||
| "additionalProperties": true, | ||
| "required": ["number", "url"], | ||
| "properties": { | ||
| "number": {"type": "integer"}, | ||
| "title": {"type": "string"}, | ||
| "type": {"type": "string"}, | ||
| "labels": {"type": "array", "items": {"type": "string"}}, | ||
| "has_maintainer_approval": {"type": "boolean"}, | ||
| "issue_score": {"type": "number"}, | ||
| "url": {"type": "string"} | ||
| } | ||
| }, | ||
| "notes": {"type": "string"} | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.