Skip to content

feat(harvest): judge the precedent pick for long sweep candidates - #1272

Merged
tieubao merged 10 commits into
masterfrom
fix/harvest-precedent-judge
Dec 5, 2026
Merged

tieubao merged 10 commits into
masterfrom
fix/harvest-precedent-judge

Conversation

@tieubao

@tieubao tieubao commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

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 --clauses call, 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

Set (judged sweep pick)         origin/master   this branch
hold-out pick@1 (scored once)   0/8             5/8 (6/8 counting a skill's source copy)
long tuning pick@1              1/16            9/16
long tuning gold-free kept      18/18           17/18
ENHANCE-30 wrong picks          7               6
short set, wrap joined replay   27/45, 7/23     byte-identical
precedent window call           median 1.82s, max 2.12s
judge call, 10 candidates       3.4s to 5.7s (one per run at the mean 8.5 candidates)

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 --changed 23 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

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.
@tieubao

tieubao commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator Author

independent-check (failed at af058247)

  • Verdict: fail (verifier timed out after 900s)
  • Proof: fresh-context claude re-run at af05824732a4bbb0ef47699f1689b0737969f398 (904.2s)
  • Risk: Fix proof or code, push, and re-run independent-check run consolelabs/devkit#1272.

Commands run:

  • (no proof command executed)

@tieubao

tieubao commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator Author

independent-check (failed at af058247)

  • Verdict: fail (verifier timed out after 900s)
  • Proof: fresh-context claude re-run at af05824732a4bbb0ef47699f1689b0737969f398 (904.4s)
  • Risk: Fix proof or code, push, and re-run independent-check run consolelabs/devkit#1272.

Commands run:

  • (no proof command executed)

@tieubao
tieubao merged commit 1facce9 into master Dec 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant