fix(review): preserve priority repairs during regate backlog - #4484
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-10 07:17:35 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4484 +/- ##
=======================================
Coverage 94.12% 94.12%
=======================================
Files 430 430
Lines 38181 38183 +2
Branches 13922 13923 +1
=======================================
+ Hits 35939 35941 +2
Misses 1585 1585
Partials 657 657
🚀 New features to boost your workflow:
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 3f10052 | Commit Preview URL Branch Preview URL |
Jul 10 2026, 07:01 AM |
Motivation
Description
regateBacklog > 0and there are priority repairs, narrow the input pool to only those priority PRs before callingselectRegateCandidatesso the backlog-time cap cannot drop repairs (src/queue/processors.ts).SetofpriorityPullNumbersand apply therepairCandidateLimitas before, preserving the intended global ordering semantics outside backlog windows.test/unit/queue.test.ts).Testing
git diff --checkwhich passed with no issues.npm run typecheckwhich completed successfully with no TS errors.npx vitest run test/unit/agent-sweep.test.ts test/unit/queue.test.ts -t "repair priority|active per-PR regate backlog restricts|sweep tags a priority"and the relevant tests passed.npm audit --audit-level=moderatewas blocked by the registry (403 Forbidden).npm run test:cirun failed atcf-typegen:checkbecauseworker-configuration.d.tsis stale and requiresnpm run cf-typegento regenerate; this is unrelated to the logic fix but blocks the full gate in this environment.Codex Task