Repository navigation
fix(action-center): order the candidate queue by what each action covers - #866
Merged
Merged
Conversation
Evidence in the priority score was the signal count. The library folds a group of prompts into one signal and keeps at most five signals a kind, so nearly every candidate scored 67 or 73 and the queue promoted in id order. Evidence is now the action's reach (payload.targetCount) on a log scale, capped at the same 15 points, so breadth orders a grade without crossing one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
33 of 37 tasks
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
Orders the candidate queue by what each action covers, instead of by how many signals carry it.
Evidence in the priority score was the linked signal count (1.5 per signal, capped at 10). The V1 library folds a group of prompts into one signal and keeps at most five signals per kind. So the evidence term was almost always 1.5 or 7.5, nearly every waiting candidate scored 67 or 73, and the daily promotion fell back to definition-id order.
Evidence is now the action's reach:
payload.targetCount, the prompts, pages, sources or topics it covers. It is scored on a log scale and capped at the same 15 points:priority.evidencePerSignal/evidenceCap→evidencePerDoubling(2.5) /evidenceMax(15).Re-scored against the hosted queue (68 waiting candidates). Where reach differs, it now decides the order. For example, one brand's 32-page and 25-prompt candidates move ahead of its single-target ones. The ties that remain are candidates with the same impact, one target each and the same first-seen day. Nothing distinguishes those, and they keep breaking on wait time, then id.
Related issue
Tracking #818
Type of change
fix— Bug fixHow to test
cd server && npx vitest run→ 877 passing.candidates.test.jscovers reach over signal count, the 1/5/50 ordering, the fallback, the cap, and the grade invariant.action_candidates.priorityfor waiting rows spreads beyond 67/73. A candidate covering many targets sits above a single-target one of the same impact and age.Checklist
🤖 Generated with Claude Code