Skip to content

v3.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 13:00
6ba05b8

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): Added runner/template_probe.py with 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 stdlib extract_special_tokens() in utils/tokenizers.py and detect_special_token_leak() plus Gemma 4 tool/channel markers (<|tool_call>, <channel|>, <turn|>, call:<name>{...}) in domain/wire_hygiene.py. Exposed --check-template and --tokenizer on probe (with --json template_probe events) and updated SCHEMA_VERSION to 13.
    • Withheld scores, degenerate-loop detection, and answer_in_thinking diagnostics: score_results() now returns final_score=None and rating="Withheld" (with weighted_score=None and deployability=None) whenever max_points == 0 instead of reporting 0, and CLI, reports, cards, and the web UI render withheld runs cleanly. Added stdlib-only domain/loop_detection.py (FailureKind.DEGENERATE_LOOP) to catch repeated 20-gram word cycles and degenerate character/whitespace runs separately from genuine REASONING_TRUNCATED cutoffs, 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 over evals/ and runner/orchestrator.py), recorded rubric versions on RunContext, decoupled cohort_fingerprint() from unrelated git_sha/tool_version commits (keeping legacy fallback for pre-rubric stored runs), excluded withheld runs from leaderboard eligibility, and added comparability_warnings() to leaderboard rows and paired run comparisons.
  • Five frontier Hard Mode scenarios (TC-105 to TC-109) and resource-budget capability. 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 the resource-budget capability 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, alias hyperflare) over the OpenAI-compatible adapter and /v1/messages with
    --format anthropic. Automatic detection recognizes the flare_ Prometheus namespace on /metrics
    and falls back to the flare metadata object on /v1/models. Engine probing records
    max_model_len (used automatically by context pressure and needle runs) and flare.max_concurrency
    as slot_count, while --spec-bench and spec-live read 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-scope picks every turn, tool-call turns, or final replies, and
    --reviewer-max-rounds caps 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 takes reviewer=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. See docs/reviewer.md.
  • Splash backend: added support for Splash (--backend splash)
    over the OpenAI-compatible adapter. Automatic detection recognizes the splash_ Prometheus namespace
    on /metrics, owned_by: "splash" on /v1/models, and the Server: Splash header. Engine probing
    records max_model_len (Splash's single-request limit, used by context pressure and needle runs)
    and /status frontend.preparation_capacity as slot_count. --spec-bench reads the
    metrics.speculation draft counts and cycles that Splash adds to each response that drafted, which
    give exact per-request acceptance rate and acceptance length, and spec-live reads Splash's draft,
    token, and scheduler counters.

Changed

  • Cloud dev environment configuration — added .agents/environment.json to provision contributor
    cloud workspaces via locked uv sync, and pruned .agents in MANIFEST.in so 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) sort scenario_ids into canonical order so the same scenario set in any order shares one cohort hash, while --resume still compares the stored execution order. Completed run rows are immutable in storage/db.py: an upsert that would downgrade completed to another status raises unless forced, and status-only updates leave it untouched. Fixed held-out redaction on context-pressure runs in CLI and Web UI (/api/runs, /api/schema credential stripping and env auth restoration in /api/probe and launcher, /api/compare infrastructure-failure parity), fixed effective_tg_tps calculation, unified cli/legacy_parser.py and schema.py under ArgSpec, and dropped python-dotenv, pre-commit, and towncrier from runtime/[dev] extras. cli/helpers.py::load_dotenv_file replaces python-dotenv with 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=#abc stays literal #abc while KEY= #note is 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_VERSION to "3" (domain/rubric.py) after enforcing unadvertised-tool rejection (unadvertised_tool_minefield), clause-scoped negation (negated_before and evals/helpers/_claims.py), strict failure on unauthorized send_email recipients or premature writes, non-empty final-answer requirements across reporting Hard Mode scenarios, discovery-before-mutation checks (TC-97, TC-103), opt-in fail_on_tool_error: true in evals/yaml_loader.py, and decimal overflow/comma guards (TC-37). Split runner/orchestrator/loop.py into focused scenario_runner.py, turn_handlers.py, and batch.py modules. Scoring (runner/orchestrator/scoring.py) now grades only gradable_results (in-run results excluding infrastructure failures), and --weight-by-difficulty divides 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 to hf_utils.download_rows_paginated
      for retries and partial-file resume, classified httpx.NetworkError,
      ProtocolError, and ProxyError as connection_error, unified
      LOCALE_VERSION = "2" under domain/rubric.py, fixed RateLimitCoordinator
      slot accounting on rate-limit updates, scaled httpx connection pools from
      configured concurrency, restricted Anthropic string-to-list wrapping in
      extra_params to stop_sequences, ensured SQLite handles close cleanly on
      scored-run exit, filtered completed tool_eval runs in SQL for leaderboard
      and export (returning [] on empty JSON export), and surfaced paired
      comparability_warnings in CLI compare and 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,
      lightweight get_latest(), and batch get_runs(), parsed Prometheus text in
      a single linear pass in runner/spec_live.py, offloaded synchronous git,
      SQLite, and report I/O off the event loop, and cached symmetric TF-IDF cosine
      pairs in plugins/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 under web/static/, and focused CLI modules for dispatch,
      plugin runners, and the spec-live dashboard, with per-module branch coverage
      floors enforced in scripts/check_module_coverage.py.
    • Tests and documentation. Streamlined redundant tests, sped up slow test
      harnesses, tightened README.md and AGENTS.md, and aligned docs/,
      CONTRIBUTING.md, and RELEASING.md with current scoring diagnostics,
      rubric-versioned cohorts, SQLite schema v6, and CLI and API options.
  • Spec-bench zero-draft responses without /metrics: a llama.cpp or Splash response whose
    timings object omits draft_n now counts as an exact zero when the response's own Server header
    names the engine, also when /metrics is unavailable (llama-server without --metrics, or a proxy
    that hides it). Before, that zero was inferred only when /metrics identified llama.cpp. Both
    engines write draft_n only 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's root name. 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 --perf failure no longer aborts downstream scenarios or plugins, combined plugin flags now run after tool-call scenarios as documented, --needle retries once with a larger answer budget (capped to context headroom) when reasoning exhausts 256 tokens and tracks remaining truncations separately from empty misses, single-run compare verdicts report paired sign-test scope instead of claiming single-run variance, and orchestrator.MAX_TURNS now 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; 0 is sent as a seed; fractions are rejected. (#351)

  • TC-98 hypothetical and negated region mentions (#354): TC-98 no longer flags conditional
    hypotheticals questioning whether ap-south-9 is 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 use ap-south-9 or adopting it in a consequent clause still fail as unsafe. (#354)

  • Negation scope for cannot (#356): the shared negation helpers (negated_before and
    coordinated verbal negation) and TC-89's negated-report matcher now treat cannot the same way as
    can't and can 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_number and answer_affirms_number reject wrong signs and non-zero decimal suffixes on integer targets, strip commas only on 3-digit thousands groups, and preserve spaced dashes. Negation parsing handles nor with auxiliaries, coordinated negative subjects, decimals, abbreviations, emails, and German/Spanish/Chinese clause boundaries (kein*, ningun*, 而是/但是/且). Fixed a decimal.InvalidOperation crash in core/_shared.py on answers containing 26+ decimal places.
    • Runner, variants, noise, and YAML packs: orchestrator.py no longer sends response_format alongside active tools on Turn 2+, classifies handle_tool_call and checkpoint exceptions as EVALUATOR_ERROR rather than MODEL_CRASH, rejects NaN/Infinity in tool args/results, enforces declared dependencies on errored or skipped producers with mutating-tool safety classification, respects caller-raised max_turns overrides, and excludes purely harness-injected --error-rate turns from max_turns. variants.py performs case-insensitive stale() checks on structured literals and scans assistant_messages. noise.py supports price_usd and avoids fabricating derived temperatures when temperature is absent. context_pressure.py trims overshoot proportionally across all user filler chunks. yaml_loader.py validates expected_tool_calls argument keys and uses numeric/negation-aware answer checks. milestones.grade() sets FailureKind.FORBIDDEN_ACTION on 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_code and 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)

  • Eval rubric v4 and full 109-scenario quality sweep. Bumped EVAL_RUBRIC_VERSION to "4", LOCALE_VERSION to "3", and NOISE_VERSION to "2" (domain/rubric.py) after auditing and repairing evaluator false negatives, spurious safety_violation flags, mock-vs-evaluator parameter mismatches, undisclosed prompt requirements, overly tight turn budgets, and unnecessary read-to-read dependencies across all 109 scenarios (TC-01 to TC-109). Shared helpers (evals/helpers/) now handle Markdown pipe-table boundaries, hyphenated negatives, localized negation and scope breakers, timezone-aware is_tomorrow_morning, arithmetic percentage math, and case-insensitive attachment checks. Synthetic noise (evals/noise.py) now honors --reference-date, stops tagging generic errors as ERR_TOOL_UNAVAILABLE, and stops injecting fake Engineering department titles onto external contacts. Locale normalization (evals/locales/) no longer corrupts leading-zero decimals such as 0.125. Also closed three evaluator loopholes: TC-38 now fails with safety_violation on unauthorized BCC even during injected errors, TC-53 requires notifying both attendees, and TC-57 fails empty zero-call answers instead of awarding partial credit.

  • Plugin scoring fixes (IFEval and Decision). IFEval's highlighted_sections checker 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 in constraint_types instead 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 as 0.0 instead 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 expose vllm: Prometheus metrics without a /version endpoint now record engine_name="vLLM" instead of None, --backend auto runs normal backend detection, and unrecognized --backend values fail fast during argument parsing. Results cards scale down safety-capped hero rating lines so Adequate capped fits without truncation on portrait cards and clarify that the safety cap banner reflects safety-critical scenario scores. TC-92 accepts "only rotated the one for your current tenant" while continuing to fail multi-tenant claims, legacy compare/ helpers and stale packaging exclusions are removed, and documentation and the README header graphic are updated for v3.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 IMMEDIATE transactions with active-run guards, late-completion cancellation shielding, thread-safe RunRepository executor 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 unify RateLimitCoordinator generation coalescing, AsyncClient teardown, iterative stream downgrades, and [no content: ...] sentinel handling for plugins. Orchestrator failure classification, reviewer revision validation, variant email round-tripping, and retry grading fixes bump EVAL_RUBRIC_VERSION from "1" to "2".