S1 · REWARD ENGINELogprob decoding and caching
Computes continuous rewards, normalizes scores, caches comparisons, and records token usage.
llm_verifier/fine_grained_reward.py
S2 · RANKERPivot tournament orchestration
Runs ring comparisons, chooses pivots, alternates prompt positions, aggregates win mass, and returns rankings.
llm_verifier/pivot_tournament.py
S3 · SEMANTIC LAYERPrompt and criteria management
Loads domain criteria, normalizes user inputs, and builds pairwise verification prompts.
llm_verifier/prompts.py · criteria/*.md
S4 · DATA ADAPTERSBenchmarks and trajectory loaders
Connect task datasets, candidate trajectories, harness metadata, and reproduction settings.
benchmarks.py · loaders.py · data/
S5 · LIVE MONITORProgressTracker
Scores a growing trace checkpoint by checkpoint without seeing future actions, enabling live stopping or resampling.
llm_verifier/progress.py
S6 · PUBLIC INTERFACEThree task-level APIs
Select chooses the best candidate, compare exposes pairwise rewards, and track returns a progress curve.
llm_verifier.select · compare · track
S7 · PERFORMANCEPrefix-cache optimization
Places stable task and trajectory context before changing criteria, warms shared prefixes, and fans out repeated calls.
cache hit: 5.2% → 78.4%
uncached input: ≈3.4× lower
S8 · BACKENDSVerifier model adapters
Uses DeepSeek, Gemini, or an OpenAI-compatible server that exposes scoring-token logprobs and required modalities.
DEEPSEEK_API_KEY
VERTEX_API_KEY
OPENAI_BASE_URL