Repository navigation
feat: Phase 3 — LLM verifier + eval harness - #3
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… schema Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ng verdict Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…dition is accurate)
…fy CI comment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Phase 3 — Verifier + Eval Harness
Adds the bounded LLM verifier and the eval harness that measures it, completing the deterministic-suspects → LLM-verdict pipeline.
What's here
llm.py—LLMClient: single chokepoint for LLM traffic (litellm wrapper, token accounting,LLMError).verification/tools.py— root-sandboxedread_file/grep/list_symbols+ OpenAI tool schemas +make_dispatch.verification/{prompts,verifier}.py— bounded tool-use loop (read tools + submit_verdict). Every failure path →unverified, neverstale(LLM error, malformed args, budget exhausted, prose-only) — false positives are the product's life bar.eval/harness.py+docpulse eval— file-fixture cases → precision/recall + per-case table, with a--min-precisionregression gate.evals/cases/— 12 hand-labeled seed cases (6 stale / 6 accurate, 4 per language; labels independently verified)..github/workflows/ci.yml— deterministiclint + testjob on every PR; gated live-eval job enforcing the precision gate.Baseline
docpulse evalon the 12 seed cases withanthropic/claude-haiku-4-5: precision 1.00 · recall 1.00 (12/12, 65.9k tokens). Exit gate (≥0.9) cleared. Seed cases are clear-cut by design — real robustness accrues as real-world false positives become newaccuratecases (the README's golden rule).Notes
ruff checkclean.grepglob sandbox escape + unhandledTypeErrorin tool dispatch; a non-lastsubmit_verdictleaving the tool-call conversation protocol-invalid (real-provider 400 on retry); andevals/fixtures breaking repo-wide lint.indexing/anddiffing/import no LLM code.🤖 Generated with Claude Code