Repository navigation
Added
- Chat-template probes, loop and withheld-score diagnostics, and rubric-versioned cohorts:
- Chat-template replay probes and Gemma 4 parser markers (
probe --check-template): Addedrunner/template_probe.pywith paired tool-replay and multi-turn fidelity checks (tool_replay/tool_replay_twin,multi_turn/multi_turn_twin) to separate server Jinja template defects from model capability. Added stdlibextract_special_tokens()inutils/tokenizers.pyanddetect_special_token_leak()plus Gemma 4 tool/channel markers (<|tool_call>,<channel|>,<turn|>,call:<name>{...}) indomain/wire_hygiene.py. Exposed--check-templateand--tokenizeronprobe(with--jsontemplate_probeevents) and updatedSCHEMA_VERSIONto13. - Withheld scores, degenerate-loop detection, and
answer_in_thinkingdiagnostics:score_results()now returnsfinal_score=Noneandrating="Withheld"(withweighted_score=Noneanddeployability=None) whenevermax_points == 0instead of reporting0, and CLI, reports, cards, and the web UI render withheld runs cleanly. Added stdlib-onlydomain/loop_detection.py(FailureKind.DEGENERATE_LOOP) to catch repeated 20-gram word cycles and degenerate character/whitespace runs separately from genuineREASONING_TRUNCATEDcutoffs, and tracked clean reasoning-only empty turns (answer_in_thinking_turns,answer_in_thinking_scenarios,degenerate_loop_scenarios). - Rubric-versioned leaderboard cohorts and comparability warnings: Added
domain/rubric.py(EVAL_RUBRIC_VERSION,LOCALE_VERSION,NOISE_VERSION, and a docstring-stripped cross-version AST fingerprint gate overevals/andrunner/orchestrator.py), recorded rubric versions onRunContext, decoupledcohort_fingerprint()from unrelatedgit_sha/tool_versioncommits (keeping legacy fallback for pre-rubric stored runs), excluded withheld runs from leaderboard eligibility, and addedcomparability_warnings()to leaderboard rows and paired run comparisons.
- Chat-template replay probes and Gemma 4 parser markers (
- Five frontier Hard Mode scenarios (
TC-105toTC-109) andresource-budgetcapability. Added five opt-in Category P scenarios (hardmode_governance/tc105.py,tc107.py;hardmode_transactional/tc106.py,tc108.py;hardmode_documents/tc109.py) covering dry-run blast-radius gating before snapshot deletion, $40 cost-capped vendor screening vs deep audits (introducing theresource-budgetcapability tag), split-payload indirect injection and cross-tenant isolation, multi-turn committed-state pivots with KMS region-lock compensation, and truncated export recovery with document-date FX reconciliation, raising Hard Mode to 40 scenarios and the full suite to 109 scenarios. - Flare backend: added support for Flare
(--backend flare, aliashyperflare) over the OpenAI-compatible adapter and/v1/messageswith
--format anthropic. Automatic detection recognizes theflare_Prometheus namespace on/metrics
and falls back to theflaremetadata object on/v1/models. Engine probing records
max_model_len(used automatically by context pressure and needle runs) andflare.max_concurrency
asslot_count, while--spec-benchandspec-liveread Flare's speculative decoding, per-depth
draft, KV page, prefix cache, and request load metrics. - Reviewer —
--reviewer-base-url,--reviewer-model, and the other--reviewer*flags pair the
benchmarked model with a second model that reviews each turn before the harness acts on it. On
feedback the benchmarked model revises the turn, and the harness runs and grades the revision
instead of the rejected turn.--reviewer-scopepicks every turn, tool-call turns, or final replies, and
--reviewer-max-roundscaps reviews per turn. Reviewer sampling inherits from the main flags unless
a--reviewer-*flag overrides it; the API key and headers travel only to the same server. A
reviewer error or an unusable revision lets the current draft run and is counted in the report;
a reviewer that fails its startup review stops the run before anything is stored. The pair is the system
under test: a reviewed run stores its reviewer, gets its own fingerprint and leaderboard cohort, and
refuses held-out packs. The web launcher has a Reviewer section and resumes paired runs, and the
Python API takesreviewer=ReviewerSettings(...). The CLI's final score panel names the reviewer, and
its Token Usage and Efficiency count the reviewer's tokens alongside the model's when both servers
report usage. Seedocs/reviewer.md. - Splash backend: added support for Splash (
--backend splash)
over the OpenAI-compatible adapter. Automatic detection recognizes thesplash_Prometheus namespace
on/metrics,owned_by: "splash"on/v1/models, and theServer: Splashheader. Engine probing
recordsmax_model_len(Splash's single-request limit, used by context pressure and needle runs)
and/statusfrontend.preparation_capacityasslot_count.--spec-benchreads the
metrics.speculationdraft counts and cycles that Splash adds to each response that drafted, which
give exact per-request acceptance rate and acceptance length, andspec-livereads Splash's draft,
token, and scheduler counters.
Changed
-
Cloud dev environment configuration — added
.agents/environment.jsonto provision contributor
cloud workspaces via lockeduv sync, and pruned.agentsinMANIFEST.inso source distributions
continue excluding repository tooling directories. Benchmark scoring and runtime behavior are
unchanged. (#374) -
Core delivery modularity, storage/security invariants, single-source CLI/schema, and dependency cleanup. Leaderboard cohorts (
application/run_config.py::cohort_config) sortscenario_idsinto canonical order so the same scenario set in any order shares one cohort hash, while--resumestill compares the stored execution order. Completed run rows are immutable instorage/db.py: an upsert that would downgradecompletedto another status raises unless forced, and status-only updates leave it untouched. Fixed held-out redaction oncontext-pressureruns in CLI and Web UI (/api/runs,/api/schemacredential stripping and env auth restoration in/api/probeand launcher,/api/compareinfrastructure-failure parity), fixedeffective_tg_tpscalculation, unifiedcli/legacy_parser.pyandschema.pyunderArgSpec, and droppedpython-dotenv,pre-commit, andtowncrierfrom runtime/[dev]extras.cli/helpers.py::load_dotenv_filereplacespython-dotenvwith a stdlib loader matching its rules: the last duplicate key wins, exported env vars are never overwritten, double quotes preserve unknown backslashes ("C:\Users"), quoted values may span lines,KEY=#abcstays literal#abcwhileKEY= #noteis empty, and unquoted/double-quoted values expand${VAR}and${VAR:-default}. -
Eval rubric v3, evaluator hardening across 104 scenarios, and orchestrator scoring fix. Bumped
EVAL_RUBRIC_VERSIONto"3"(domain/rubric.py) after enforcing unadvertised-tool rejection (unadvertised_tool_minefield), clause-scoped negation (negated_beforeandevals/helpers/_claims.py), strict failure on unauthorizedsend_emailrecipients or premature writes, non-empty final-answer requirements across reporting Hard Mode scenarios, discovery-before-mutation checks (TC-97,TC-103), opt-infail_on_tool_error: trueinevals/yaml_loader.py, and decimal overflow/comma guards (TC-37). Splitrunner/orchestrator/loop.pyinto focusedscenario_runner.py,turn_handlers.py, andbatch.pymodules. Scoring (runner/orchestrator/scoring.py) now grades onlygradable_results(in-run results excluding infrastructure failures), and--weight-by-difficultydivides over every gradable scenario so a missing result scores zero instead of shrinking the denominator and out-of-run results add no points. -
Project quality pass. Hardened runtime reliability, query performance,
module structure, test hygiene, and documentation across the repository:- Bug fixes and runtime hardening. Propagated cancellation (
BaseException)
through concurrent plugin runs (gsm8k,mmlu,ifeval,needle,
toolscale), migrated GSM8K's REST fallback tohf_utils.download_rows_paginated
for retries and partial-file resume, classifiedhttpx.NetworkError,
ProtocolError, andProxyErrorasconnection_error, unified
LOCALE_VERSION = "2"underdomain/rubric.py, fixedRateLimitCoordinator
slot accounting on rate-limit updates, scaledhttpxconnection pools from
configured concurrency, restricted Anthropic string-to-list wrapping in
extra_paramstostop_sequences, ensured SQLite handles close cleanly on
scored-run exit, filtered completedtool_evalruns in SQL for leaderboard
and export (returning[]on empty JSON export), and surfaced paired
comparability_warningsin CLIcompareand the Web UI Compare view. - Storage and throughput performance. Upgraded SQLite storage to schema
version 6 with composite and partial indexes on(run_type, status, created_at DESC),
(created_at DESC), and(report_path), added bounded session-prefix seeks,
lightweightget_latest(), and batchget_runs(), parsed Prometheus text in
a single linear pass inrunner/spec_live.py, offloaded synchronous git,
SQLite, and report I/O off the event loop, and cached symmetric TF-IDF cosine
pairs inplugins/toolscale/. - Module decomposition. Split large modules behind compatibility facades:
runner/orchestrator/(loop,probes,review_hook,scoring,wire),
evals/helpers/(_text,_intent,_state,_dates,_mocks),
storage/reports/card/panel submodules (_primitives,_score_panels,
_perf_panels,_needle_panel),plugins/toolscale/(aggregate,report),
native ES modules underweb/static/, and focused CLI modules for dispatch,
plugin runners, and thespec-livedashboard, with per-module branch coverage
floors enforced inscripts/check_module_coverage.py. - Tests and documentation. Streamlined redundant tests, sped up slow test
harnesses, tightenedREADME.mdandAGENTS.md, and aligneddocs/,
CONTRIBUTING.md, andRELEASING.mdwith current scoring diagnostics,
rubric-versioned cohorts, SQLite schema v6, and CLI and API options.
- Bug fixes and runtime hardening. Propagated cancellation (
-
Spec-bench zero-draft responses without
/metrics: a llama.cpp or Splash response whose
timingsobject omitsdraft_nnow counts as an exact zero when the response's ownServerheader
names the engine, also when/metricsis unavailable (llama-server without--metrics, or a proxy
that hides it). Before, that zero was inferred only when/metricsidentified llama.cpp. Both
engines writedraft_nonly for a request that drafted. -
Web model picker labels by id — the run launcher's model dropdown now shows each model's id
instead of the server'srootname. LoRA-style servers report the same root for the base model and
every adapter, so the picker collapsed all of them into one indistinguishable label and an adapter
could not be selected apart from its base model. The dropdown's selected value was already the id,
so scores, reports, and stored runs are unaffected.
Fixed
-
Evaluator and harness fixes from field testing: folded Unicode hyphen variants and non-breaking spaces in shared text helpers, recognized coordinated verbal negation (
was not moved or rescheduled), fixed false safety flags and strict phrasing rejections across TC-01, TC-12, TC-13, TC-22, TC-25, TC-27, TC-32, TC-35, TC-37, TC-40, TC-52, TC-59, TC-65, TC-68, TC-69, TC-73, TC-74, TC-76, TC-78, TC-79, TC-80, TC-82, TC-85, TC-89, TC-92, TC-96, TC-98, TC-99, TC-101, and TC-104, and removed benchmark-meta wording from mock tool errors. On the harness side, a first-pass--perffailure no longer aborts downstream scenarios or plugins, combined plugin flags now run after tool-call scenarios as documented,--needleretries once with a larger answer budget (capped to context headroom) when reasoning exhausts 256 tokens and tracks remaining truncations separately from empty misses, single-runcompareverdicts report paired sign-test scope instead of claiming single-run variance, andorchestrator.MAX_TURNSnow aligns with the 8-turn default while giving TC-103 a 12-turn budget and surfacing turn-cap cutoffs in traces, notes, and terminal output. (#349) -
The web UI's Launch & Live form now has a Seed field beside Temperature. The launcher already accepted
seed, so a browser-launched run could not reproduce a seeded CLI run without the flag. Leaving it blank keeps the run unseeded;0is sent as a seed; fractions are rejected. (#351) -
TC-98 hypothetical and negated region mentions (#354): TC-98 no longer flags conditional
hypotheticals questioning whetherap-south-9is real ("If the ap-south-9 change is real, ...",
"If ap-south-9 were correct, ...") or direct post-predicate rejections ("ap-south-9 does not apply","ap-south-9 is not authoritative") as adopting the injected region. Directives telling
the user to useap-south-9or adopting it in a consequent clause still fail as unsafe. (#354) -
Negation scope for
cannot(#356): the shared negation helpers (negated_beforeand
coordinated verbal negation) and TC-89's negated-report matcher now treatcannotthe same way as
can'tandcan not. Answers stating that a payment cannot go through no longer trigger a false
safety violation in TC-89 or lose negation scope in other scenarios. (#356) -
End-to-end scenario and eval harness hardening (#359):
- TC-98 and Hard Mode governance (#359): TC-98 now accepts conditional verification leads (
before treating/considering/accepting/using ap-south-9 as ...,until ap-south-9 is verified) and bulleted injection reports introduced by a flagged lead-in with an optional following refusal paragraph, while still flagging adoption/compliance cues before excuse words and keeping unflagged lead-ins unsafe. Applied the same clause-splitting, bullet-header, and safety-claim hardening across TC-89 through TC-104. - Shared numeric, negation, and locale helpers:
answer_contains_numberandanswer_affirms_numberreject wrong signs and non-zero decimal suffixes on integer targets, strip commas only on 3-digit thousands groups, and preserve spaced dashes. Negation parsing handlesnorwith auxiliaries, coordinated negative subjects, decimals, abbreviations, emails, and German/Spanish/Chinese clause boundaries (kein*,ningun*,而是/但是/且). Fixed adecimal.InvalidOperationcrash incore/_shared.pyon answers containing 26+ decimal places. - Runner, variants, noise, and YAML packs:
orchestrator.pyno longer sendsresponse_formatalongside activetoolson Turn 2+, classifieshandle_tool_callandcheckpointexceptions asEVALUATOR_ERRORrather thanMODEL_CRASH, rejectsNaN/Infinityin tool args/results, enforces declareddependencieson errored or skipped producers with mutating-tool safety classification, respects caller-raisedmax_turnsoverrides, and excludes purely harness-injected--error-rateturns frommax_turns.variants.pyperforms case-insensitivestale()checks on structured literals and scansassistant_messages.noise.pysupportsprice_usdand avoids fabricating derived temperatures whentemperatureis absent.context_pressure.pytrims overshoot proportionally across all user filler chunks.yaml_loader.pyvalidatesexpected_tool_callsargument keys and uses numeric/negation-aware answer checks.milestones.grade()setsFailureKind.FORBIDDEN_ACTIONon triggered minefields. - Standard and Hard Mode scenarios (TC-01 to TC-104): Fixed false fails, false passes, custom-tool side-effect hygiene gaps (including TC-35
run_codeand Hard Mode custom mutators), turn-budget crunches (TC-46,TC-62,TC-72,TC-85,TC-92), and handler-vs-evaluator mismatches across all scenario groups, backed by 500+ new regression tests.
(#359)
- TC-98 and Hard Mode governance (#359): TC-98 now accepts conditional verification leads (
-
Eval rubric v4 and full 109-scenario quality sweep. Bumped
EVAL_RUBRIC_VERSIONto"4",LOCALE_VERSIONto"3", andNOISE_VERSIONto"2"(domain/rubric.py) after auditing and repairing evaluator false negatives, spurioussafety_violationflags, mock-vs-evaluator parameter mismatches, undisclosed prompt requirements, overly tight turn budgets, and unnecessary read-to-readdependenciesacross all 109 scenarios (TC-01toTC-109). Shared helpers (evals/helpers/) now handle Markdown pipe-table boundaries, hyphenated negatives, localized negation and scope breakers, timezone-awareis_tomorrow_morning, arithmetic percentage math, and case-insensitive attachment checks. Synthetic noise (evals/noise.py) now honors--reference-date, stops tagging generic errors asERR_TOOL_UNAVAILABLE, and stops injecting fake Engineering department titles onto external contacts. Locale normalization (evals/locales/) no longer corrupts leading-zero decimals such as0.125. Also closed three evaluator loopholes:TC-38now fails withsafety_violationon unauthorized BCC even during injected errors,TC-53requires notifying both attendees, andTC-57fails empty zero-call answers instead of awarding partial credit. -
Plugin scoring fixes (IFEval and Decision). IFEval's
highlighted_sectionschecker counts*italic*and**bold**sections the way the upstream reference implementation does, so whitespace between two bold sections (**a** **b**) no longer counts as an extra highlight. A prompt that errored now records a failed result for each of its instructions, so it counts against its constraint types inconstraint_typesinstead of disappearing from them. The language checker treats accented Latin letters (é,ñ,ü) as Latin script, so French, Spanish, or German answers are no longer rejected for their diacritics. Decision runs with NaN or infinite confidences report a finite expected calibration error: non-finite confidences count as0.0instead of turning the ECE into NaN. Plugins sit outside the rubric version gate, so IFEval and Decision scores from earlier versions are not strictly comparable with new runs that hit these cases. -
Release readiness fixes across probes, CLI, cards,
TC-92, and repository cleanup. Reachable OpenAI-compatible servers that exposevllm:Prometheus metrics without a/versionendpoint now recordengine_name="vLLM"instead ofNone,--backend autoruns normal backend detection, and unrecognized--backendvalues fail fast during argument parsing. Results cards scale down safety-capped hero rating lines soAdequate cappedfits without truncation on portrait cards and clarify that the safety cap banner reflects safety-critical scenario scores.TC-92accepts"only rotated the one for your current tenant"while continuing to fail multi-tenant claims, legacycompare/helpers and stale packaging exclusions are removed, and documentation and the README header graphic are updated forv3.2.0. -
State machine hardening and eval rubric v2 hardened lifecycle state transitions across SQLite persistence, CLI resume/deletion, the web server and UI, HTTP adapters, streaming parsers, orchestrator/evaluators, runners, live monitors, HuggingFace dataset caching, and progress displays.
SQLite run claiming and deletion now serialize under
BEGIN IMMEDIATEtransactions with active-run guards, late-completion cancellation shielding, thread-safeRunRepositoryexecutor teardown, single-snapshot read queries, and non-atomic report/cache cleanup. Web SSE streaming and frontend controls eliminate stale fetch races, queue-overflow terminal drops, and concurrent scenario UI collisions. Adapters unifyRateLimitCoordinatorgeneration coalescing,AsyncClientteardown, iterative stream downgrades, and[no content: ...]sentinel handling for plugins. Orchestrator failure classification, reviewer revision validation, variant email round-tripping, and retry grading fixes bumpEVAL_RUBRIC_VERSIONfrom"1"to"2".