Repository navigation
feat(harvest): judge the precedent pick for long sweep candidates - #1272
Merged
Merged
Conversation
A whole pattern slug matches almost nothing in precedent, while its short word windows find the home among other hits. The sweep now retrieves with sliding three-word windows in one --clauses call and one batched extractor call per ten candidates picks a listed hit or none. Any judge failure keeps the old whole-slug path.
Review finding: hit 1 was also the slug path's pick, so a lenient judge passed the bool, string, float and failed-call cases. Each case now checks that the last precedent call is the whole-slug query. Also regenerate FEATURES.md and drop an operator path from the spec.
Collaborator
Author
independent-check (failed at
|
Collaborator
Author
independent-check (failed at
|
…nt-judge # Conflicts: # docs/reference/FEATURES.md
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
The harvest sweep's precedent pick for long candidates. A whole slug as one query matched nothing (hold-out 0/8), so every long candidate reported NEW. The sweep now retrieves with the slug's three-word windows in one
--clausescall, and one batched extractor call per 10 candidates picks a listed code hit, or none. Any judge failure, and any run already stopped on auth or a usage limit, keeps the old whole-slug path.lib/precedent/is unchanged.Demo
Proof
Re-runnable here (about two minutes):
bash tests/test-harvest-sweep.sh(663/663), and the negative control in the proof file's "Re-run" table (a judge that never answers: 659/663, red; green after restore).docs/verification/harvest-precedent-judge.md: recall before and after on all four labelled sets plus the ENHANCE-30 rows, the options measured first (key phrases, local embeddings, lexical variants),tests/run-all.sh --changed23 suites green (author run), and a second negative control (a lenient-type judge: 658/661 red). A blockers-only review on a fresh context found one test blocker (fixed) and no code blockers; a design critique on a fresh context said sound with concerns (two taken, one left as a named gap).The labelled sets hold logged queries, so they stay in the operator's private ops repo with their harness change; this PR carries only the public replay harness (
judge_replay.py,recall.py --picks).Bookkeeping
no-board-row: follow-up to the precedent audit (#1270) gap 1, dispatched directly
One-way door: harvest sweep hook. Second yes: waived by Han as repo owner