Skip to content

Probing - #153

Merged
jiaq-liu merged 28 commits into
mainfrom
probing
Nov 22, 2026
Merged

jiaq-liu merged 28 commits into
mainfrom
probing

Conversation

@jiaq-liu

Copy link
Copy Markdown
Collaborator

Summary

Add a new probing policy and --m1-policy trigger, fix analzyers

Type of change

  • New analyzer
  • New model / model spec
  • [ ✅ ] Bug fix
  • [ ✅ ] Infrastructure / CI
  • Documentation

Checklist

  • ruff check . passes
  • mypy evalrx passes
  • pytest -m "not gpu" passes (all fast unit tests green)
  • New analyzer / model has a unit test using FakeModel
  • CHANGELOG.md updated under [Unreleased]
  • Paper citations included (if method from literature)

jiaq-liu and others added 27 commits October 17, 2026 14:04
…ring

Builds on the MVP-0 triage controller (--m1-policy triage_active).

- Fidelity: edit analyzers self-check every analysed case (FidelityGate),
  the first unfaithful case refuses the batch; action identity includes
  the tool's code hash. Patchscope's patch check raises FidelityError.
- modality_ablation(donor_rule="counterfactual", donor_pool): same prompt,
  different media, donor gold != the model's answer; few-answer tasks
  test N only on such swaps.
- U (self_consistency per case + verbatim prompt wrappers, compared by the
  task's label-blind answer_key) and S (FAIL with H/N/U all tested and
  clear); threshold instruction, embed_lens and patchscope as descriptive
  S readings with case-specific question words.
- Fix: logit margins compared an answer with its own other spelling
  ("Yes" vs " Yes"); answer surface forms are now one answer.
- MVP-1: gemini runtime usage counters, per-action and Stage-0 requests,
  tokens and USD from a dated price table, per-call sampling on gemini,
  rule-based next candidates gated on the actual model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-ups

Expansion (rule E1) doubles the nested sample up to --triage-max-fail while
a gap more cases can close holds: a positive routing difference whose 95%
Newcombe interval still includes zero, or a gold stratum with fewer than 8
S or stable PASS cases. Step evidence is now chunk observations over
disjoint case sets (probing/evidence.py): steps whose per-case rows do not
depend on the batch (PlanStep.reuse) run on the new cases only, and the
batch-dependent descriptive steps (embed_lens, patchscope) run once on the
settled sample. An observation index by step identity without the cases
lets a later invocation with a larger cap reuse earlier chunks.

Follow-ups (probing/rules.py): each route with at least 3 FAIL cases
proposes, per round, the next candidate of its first open layer on its FAIL
cases plus gold-matched PASS controls; failures fall back within the layer,
valid results advance, gated-off candidates are passed over at no cost, and
describe-first candidates need an output cap of at least 128 tokens. Every
decision is traced with its rule, condition and what it passed over.
--triage-max-actions caps the decisions. proposals.py is replaced by the
rules; report key steps -> executions.

Validated on Qwen3.5-0.8B (8 -> 16 -> 32 FAIL; every case identical to the
one-batch 32-FAIL run) and gemini-3.1-flash-lite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scored scheduler (--triage-scheduler scored, probing/scoring.py): one
decision at a time over every feasible candidate (each active route's open
or stale layer, the expansion, the deferred battery steps), ranked by
U = q*[D + T + C - R]+ / (c + eps). D is 0 until competing explanations
with predictions exist; T rewards extending a reuse step to new cases (1)
or an expansion that may close a recorded gap (0.5); C is the coverage gap
over layer x gold-stratum units the action removes; R filters existing
observations; q is smoothed success over distinct observations; c is the
step's own cost per case, else measured per-call rates (USD when every
action is priced, else wall seconds). Every 10th decision explores with a
seed; nothing above the 0.01 gain floor stops the run. No batch-dependent
candidate is taken while an expansion can still follow. Each decision
records every candidate's components; the report is
triage_report.scored.*, and probing/compare.py compares two reports on
first-execution evidence cost, controller time and coverage. Adoption of
earlier chunks is limited to chunks inside the target. --triage-budget-usd
caps USD on priced models.

On Qwen3.5-0.8B POPE the scored run reaches the rules' follow-ups,
readings and call counts exactly, with twice the decisions: with D = 0 it
only reorders.

prompt_contrast takes gen_kwargs for every re-ask; describe-first asks for
max_new_tokens=256 where the backend honours per-call settings and is
gated on the host's cap where it does not. Its follow-up readings add
extra_words_* / complied_*, and the report warns when most route cases did
not describe first (Qwen3.5-0.8B 0/17, gemini-3.1-flash-lite 15/15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steps run in chunks of --triage-chunk cases (default 8, FAIL and PASS
alternating). The budget is checked before every chunk on the cost
measured so far, so a step whose cost nobody knew overshoots by at most
one chunk; a chunk that raises stops the rest of the step.

Cost estimates no longer use per-call rates (calls_per_case is kept for
reservations only): a step that has run is priced at its own measured
cost per case in this run, one that has not at the run's median case
when ranking and its most expensive case in budget checks. A cost
calibration on Qwen3.5-0.8B showed the ratios hold within a tool family
on one model but not across input sizes (patchscope 3.9-16.7x embed_lens
between 72 and 985 media tokens), and per-case cost grows with batch
size for several tools.

The scored scheduler decides one chunk at a time (scoring mvp3-score-3):
T and D are earned in proportion to the share of the route's remaining
FAIL cases a chunk covers, and further chunks of a step it already took
do not count against --triage-max-actions.

On Qwen3.5-0.8B POPE no budgeted run exceeds its budget (before: +111 s
rules, +185 s scored at 800 s); chunking adds about 2% to the unbudgeted
cost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sistency

embed_lens(reference=...) and patchscope(reference=...) tell a case's own
question words from a fixed reference set's prompts instead of the batch
(embed_lens also its recurring words, from the reference's first
reference_media distinct media, cached on the model). tuned_lens(
fit_cases=...) fits its translators on fixed cases, cached per fit set.
causal_trace and attribution_patching seed each case's noise from its
content (prompt and media) instead of its position; the default case id
is a random uuid, so content is the stable key (_internals/seeds.py).
self_consistency(seed=0) draws a case's samples under torch's random
state seeded the same way and restores it afterwards (seed=None keeps
the global state; provider-side sampling is unaffected). Without the new
arguments the lenses behave as before.

The triage passes EXPLORE in the sampler's rank order as the reference
(its first 32 cases as the tuned lens's fit set), so all four steps are
reuse steps that run on new cases only and in chunks;
PlanStep.deferred keeps the descriptive steps no route reads
(embed_lens, patchscope) waiting for the settled sample. Decomposability
tests on TinyVLM cover the four. On Qwen3.5-0.8B, twelve cases sampled at
temperature 1.0 give identical samples in chunks, in one batch and in
reverse order; before, 7 of 64 route labels changed between two runs
that executed in a different order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- D counts each conflicting pair of live explanations by how decidable the
  conflict is on the route's cases (explanations.decidability, mvp3-explain-2):
  the cases a side the verdict's interval needs to contradict one prediction
  with the other true at its reference difference; unmeasured readings take
  the least favourable spread.
- An answered layer offers its other candidates as alternatives: R = 0.5 for
  the same kind of evidence (PlanStep.evidence) as the tool that answered it,
  0 otherwise; the judge is offered them from the first ask (alternative_to).
- Exploration takes a share of the spending (--triage-explore-share, default
  0.1) instead of every 10th decision, and continues below the gain floor
  until nothing fits; --triage-weights for ablations (mvp3-score-4).
- The judge is asked only while its largest call so far fits the budget; a
  run with budget-filtered candidates stops for "budget".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exploration's share (--triage-explore-share) is of the evidence spending, not
the judge's calls, and it draws only from targets the value never takes: the
next candidate of a route too small to be active, and on each active route the
carded representative of every other route's layer it does not own. Targets
are priced at a budget check's conservative estimate; completing one on its
route is paid from the share until its readings show a difference outside the
band, and from then on it is completed on value (T). Alternatives run only on
their D. --triage-explore-from candidates keeps the previous draw (the other
candidates, alternatives included) as an ablation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e model's own answer

- validation.py: PartitionBundle (validation = CONFIRM minus cases sharing media
  with EXPLORE), issues frozen from a triage report (route signals, one reading
  per route and step), power plan from DISCOVERY, frozen.json before the
  validation partition is read, Bonferroni over the union of the arms' issues,
  supported / refuted / inconclusive / unavailable; readings whose per-case
  values go together within FAIL and within controls are one phenomenon, and
  each arm is credited with its own issues grouped that way.
- --triage-validate, --triage-validation-budget-sec; partition_bundle.json.
- Steps with a target read the model's own answer (target="prediction"): a
  gold margin lower on FAIL restates the label. fixed_* readings are off the
  cards; run_triage and the validator refuse a carded gold-target step.
- t quantile by exact inversion; intervals at a given level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es, a validation-only source, gradient passes that fit

Six increments since MVP-4 (96c3158), developed on ChartQA with Qwen3.5-2B (runs triage12-17):

- Fixed: triage_cases gave every record its gold answer as stratum whatever rule the sample was drawn with, so open-answer tasks had almost no matched controls (ChartQA: 5 for 30 U FAIL cases); it now takes the sampler's rule. Rules mvp4-rules-3.
- Changed: the U re-sampling check fires only when another answer is sampled more often than the Stage-0 answer (a tie stays clear), not on any one of 5 samples differing. Rules mvp4-rules-4.
- Changed: the main validation metric is each arm's supported phenomena at every grouping threshold of RHO_GRID (0.3-0.7), an arm ahead only where it has more at every threshold; one-sided tests at alpha/K on the claimed side; the live explanations are frozen with the family, each naming one or two primary predictions that the validator tests on new cases as one Bonferroni family (supported / refuted / undecided / untestable); a reading a route is cut on (DEFINITIONAL) is neither asked nor measured; a re-ask keeps the live explanations and adds competing ones (carry_over). Explanations mvp4-explain-5, validation mvp4-validate-4.
- Changed: the judge is also offered the tools already run on a route (already_run, readings in view: a fit in the triage, tested on new cases, no D), the first ask needs no tool left to run, and a re-ask fires only for a route with tools it can be asked about; logprob_entropy on U is definitional. Explanations mvp4-explain-6, validation mvp4-validate-5.
- Added: --triage-validation-source MANIFEST, cases used only for DIAGNOSTIC_VALIDATION, labelled by their own Stage 0 (<run>/baseline_validation_source.json) and never seen by the controller or the judge; partition_bundle keeps them off DISCOVERY media and off pool ids and records where the validation cases came from; python -m evalrx.benchmark.tasks.chartqa freezes the human rows the pool left (rest of the test split, the val split). ChartQA validation grew from 293 cases (100 FAIL, N 7) to 1398 (450 FAIL, N 36): the first N decision (N.h1 supported).
- Fixed: hf_local ran the whole model under autograd for CaptureSpec(with_grad=True), so a vision tower's attention over a large image was kept for backward (Qwen3.5-2B, a 918x1811 chart: 6400 patches, 75 GB, out of memory). The media encoders now run without a graph (media_encoders_without_grad; CaptureSpec(media_grad=True) opts out), readings unchanged, that chunk at 19 GB and 4x faster; gradcam and generic_attention skip a case whose graph still does not fit (skip_reasons: out_of_memory) instead of failing the chunk.

Suite: 2826 passed, 16 skipped; ruff clean.
The U and S checks and the follow-up readings compared answer keys by
equality while the grader holds ChartQA's numeric answers to a 5 %
relative rule, so two samples of 12.5 and 12.8 were two answers for the
triage and one verdict for the scorer. The host now passes an agreement
rule next to the answer key (tasks.same_answer on scoring.same_answer:
equal keys, or two numbers with the candidate within the case's
numeric_tolerance of the reference), threaded as agree_fn through
run_triage / validate / triage_cases (default: equal keys, recorded in
the report settings). The re-sampling check counts the samples agreeing
with the Stage-0 answer as that answer and clusters the rest the same
way (rivals); rewording, threshold and prompt_contrast "changed"
readings use the rule too. answer_key applies the grader's yes/true
aliases on exact_or_numeric. Rules version mvp4-rules-5.

Re-reading triage17's stored evidence under the new rule: validation
FAIL U 287 -> 261, PASS 78 -> 53, route signal 0.464 -> 0.462.
The explore/confirm draw was over single cases, so on ChartQA (two
questions per chart, each row saving its own copy of the image) 207 of
the 500 CONFIRM cases shared a chart with DISCOVERY and were dropped by
the partition, not at random. --confirm-split-by media (default: case,
the judge-driven loop's split, which a triage run must share to be
compared case for case) groups the cases by media content and moves
whole groups, stratified by the labels a group holds, so DISCOVERY and
CONFIRM never share an image and the diagnostic validation leaves
nothing out. The bundle records split_by and its rule.

On the ChartQA pool with triage17's labels: EXPLORE 502 / CONFIRM 498
cases, 176 FAILs each; internal validation 293 (100 FAIL) -> 498 (176
FAIL); EXPLORE charts 406 -> 299.
…d at its own cost (score-5)

Two controls for the scored scheduler, --triage-scheduler random | cheapest:
the same candidate pool, gain floor, budget and stop rules, only the pick
differs (a seeded uniform draw among the candidates at or above the floor;
the cheapest of them, unpriced last, ties by the soft order). Neither
explores nor takes an explainer, so scored_x0 is their nearest value arm.
Reports triage_report.random / .cheapest; scoring.choose(policy=).

step_cost took a step's own measurement only from observations that called
the model, so the two audits of stored outputs counted as unmeasured and a
budget check priced them at the run's most expensive case per case: on
ChartQA triage18 the 32 -> 64 FAIL expansion (912 s when run) was estimated
at 3205 s, or 22215 s after an exploring arm had fitted tuned_lens on 4
cases, and every budget-tier arm stopped on "expand over budget" with budget
to spare. A step's own cost now covers every observation that called the
model or completed without calling it; the typical and worst-case prices of
a step that never ran still come from model-calling observations only
(scoring mvp3-score-5).
…d against the budget

The decision to expand was checked once, on the sum of the battery steps'
estimates over the new cases, and the battery then ran unchecked. On ChartQA
triage18 the 64 -> 128 FAIL expansion was estimated at 1668 s from the cases
measured so far and cost 2413 s, so the 4000 s arms that expanded charged
4220-4548 s.

do_expand now runs every immediate step on one chunk of the new cases before
any step moves to the next, with the budget checked before each chunk on the
cost measured so far, like every other action. A refusal stops the run
(stop budget, pending expansion): the chunks measured so far are routed on
every check, a check that never ran on the remaining new cases is untested,
and the run overshoots by at most one chunk of one step. The budget_checked
parameter of run_step is gone.

Test: an expansion whose cases cost four times the estimate stops at the
budget with one whole chunk measured, for both schedulers.
… has a CLI, docs synced

The drivers of the multi-arm scheduler comparison (run_triage17.sh, run_triage18.sh and
its phase 2 and 3 variants, the GPU launcher) and the analysis scripts behind the design
document's tables (the union validation validate_arms.py, the budget-matched discovery
curve, the U re-count under the tolerant agreement rule) lived in a job's scratch
directory; they are now examples/benchmark/tools/triage/ with a README, the
machine-specific paths taken from the environment.

Removed what later code had superseded: Ledger.spent / spent_wall_sec (the budget is
charged by _Run.charged), StepEvidence.sec_per_case (costs come from scoring.step_cost),
the run_triage_mvp0 alias (tests call run_triage) and the sampler's _rank alias.
compare.py gets a main() (python -m evalrx.eval_agent.probing.compare a.json b.json
[--json]). A layer that narrows its route's cases (X1) states its filter in its state
(case_filter). Stale strings updated: the package and controller docstrings no longer
describe MVP-2, --m1-policy says when a judge is built and that CONFIRM reaches only the
validator; the design document has a current status header and a list of the remaining
gaps between design and implementation. POLICY_VERSION stays mvp2-0 on purpose: it is
part of every action identity.

Tests: full suite 2826 passed / 16 skipped; test_probing_chunks 8 passed separately;
ruff clean (the new scripts too).
The drivers and analysis scripts of the triage17/18 scheduler comparison
(run_triage17.sh, run_triage18.sh and its phase 2 and 3 variants, the GPU
launcher, validate_arms.py, discovery_curve.py, recount_u.py and their
README) were added to examples/benchmark/tools/triage/ by d6b9a2f. They
are one experiment's drivers, not a feature of the package: nothing in the
code or the tests uses them, the run scripts hard-code that experiment's
model, dataset and budget tiers, and validate_arms.py monkeypatches the
runner's private functions. They now live beside the design document,
outside the repository (evalsmith/probing/scripts/, pointed at the
checkout through TRIAGE_REPO).

CHANGELOG and docs/agentic_benchmark.md no longer point at the directory.
The only version a run kept was tool_version: a hash of the analyzer's own file
and analyzers/_internals, part of the action identity. A change anywhere else (a
backend, the executor, the scheduler) left no trace, although costs move with it:
the 10-22 media-encoder no-grad fix that cut gradcam from 30 s to 9 s a chunk was
in hf_local. A ledger shared across invocations could thus hold observations from
different code with nothing to tell them apart, which a cross-run record of
analyzer cost and yield needs.

controller.code_version() (once per process) gives
  tree   a content hash of every evalrx *.py file (no __pycache__, node_modules),
  parts  the same hash per package directory (models, eval_agent/probing, ...;
         "." = the top-level modules), to tell a backend change from a scheduler one,
  git    the checkout's commit and whether tracked files under evalrx differ from it;
         in a code snapshot (no .git) the CODE_REF.json the snapshot carries; else null.
The triage and validation reports carry it as "code" (their markdown says it in the
first lines), the triage summary.json too; every planned trace event and every
Stage-0 cost line carry the tree. Observation files are unchanged (join on
action_id). It is recorded only, not part of any identity: a change outside the
analyzer still reads the ledger back, exactly as before.

Tests: the report, the planned events, the Stage-0 lines and the markdown carry it;
a different tree reuses every action; per-directory hashes move only where a file
changed; a snapshot's CODE_REF.json is read. Full suite 2836 passed / 16 skipped;
ruff clean.
… none

On a task whose outputs commit to no categorical answer (open captions:
CHAIR, where answer_key gives None) the two U steps of the battery still
ran, and every U reading came back untested ("the task has no categorical
answer to compare"). U untested kept every FAIL case out of S, so they all
landed in X; and the 0.8B CHAIR smoke measured those two steps at about
three quarters of the battery's time (512-token captions re-sampled five
times and re-asked in three wrappers).

PlanStep.needs_answer marks a step whose readings compare the answers
outputs commit to: the battery's self_consistency, prompt_reword and
prompt_threshold, and the follow-ups describe_first, self_consistency_n10
and format_sensitivity. _Run.inapplicable() is the one place that says why
a step has no meaning on a task (other task kinds, or needs_answer where the
outputs commit to none), used by gate(), run_step() and the two expansion
filters that tested task_kinds inline. triage.commits_to_answers() decides it
on the Stage-0 outputs (no model call); run_triage and validate pass it in.

In the records U is then not_applicable (both parts, same shape), like N on a
case without media: it neither fires nor counts as missing, so S needs H and
N alone there. Tasks with an answer key behave as before; no action identity
changes (PlanStep fields are not part of it), so existing ledgers read back.

Tests: the records (U not applicable, the fully checked FAIL case is S; with
a key and no U observations it stays X) and a run on an unkeyed task (the
three battery steps not applicable, never executed). Full suite 2838 passed /
16 skipped; ruff clean.
… tasks too

N fires when the answer survives a media swap. On yes/no and letter tasks a
swap to unrelated media often leaves the right answer unchanged, so there N
counts only a counterfactual donor (the same question on other media, gold
different from the model's answer) and a content-only swap leaves it
untested. Spatial457 (exact_or_numeric) was not treated that way, though its
1837 L5 questions have 39 answers (small/large, 2/3, colours) and no question
is asked twice: every donor was content-only, and N fired on PASS cases as
often as on FAIL cases (mem1, 10-27: 0.8B 9/37 PASS vs 27/92 FAIL, 2B 14/38
vs 21/91; routing signal about 0).

Task.few_answers declares a small closed answer set beyond yes/no and
letters; Spatial457 sets it, and runner._needs_counterfactual() is the one
rule for n_needs_counterfactual (discovery and validation alike). On
Spatial457 N is now untested, so its FAIL cases go to U or X, not N or S. No
action identity changes: the swap itself is the same, only its reading is.

Tests: pope_adversarial and spatial457 need a counterfactual donor, chartqa
does not. Analysis, eval_agent and datasets suites pass; ruff clean.
…mon gold

d59b0e1 made N need a counterfactual donor on tasks declared few-answer
(Task.few_answers, set on Spatial457 alone). The trouble is per answer, not
per dataset: an unchanged answer after a swap to unrelated media is no N
evidence when that answer is often right anyway, and ChartQA has such cases
too (yes/no and small counts, 12% of the triage pool), while 23% of
Spatial457's cases have rare answers a swap still tests.

triage.common_answers() takes the golds (as answer keys) at least
COMMON_ANSWER_SHARE = 2% of DISCOVERY has, with their shares; never an
output. _n_check leaves N untested on a content-only swap when the model's
answer agrees (the task's agree_fn) with one of them, says so, and records
the match (common_answer). run_triage and validate both read the common
answers off DISCOVERY; the triage report keeps them in settings. Yes/no and
letter tasks still need a counterfactual donor for every case. The task flag
and runner._needs_counterfactual are removed; no action identity changes.

On the finished mem1 cells (offline, from their reports) the rule moves N to
untested on 60/129 (0.8B) and 77/129 (2B) Spatial457 cases and on 11/64 and
25/256 ChartQA cases, and it removes every N fire on a Spatial457 PASS case
(9 and 14): those were the answers that are right on most media anyway.

Tests: common_answers' shares and threshold ({} with no answer key); a
content swap leaves N untested on a common answer and fires on a rare one.
Full suite 2840 passed / 16 skipped; ruff clean.
Brings in PR #148 (fix stage split into stages/fix/, legacy loop and
dashboard removed, report UI split by stage, linear_mix sized from the
value heads) and PR #149 (evalrx.wsp weight edits, analyzers/weights,
evalrx.probing probe toolbox). CHANGELOG: both sides' Unreleased entries
kept, probing's first.
Conflicts:
- benchmark/runner.py: main split run() into steps; the triage entry
  (_run_triage, _validation_source, _triage_explainer) sits beside them, and
  the validation source is labelled by the shared Stage 0 step.
- prompt_contrast, modality_ablation: main's batch calls, with gen_kwargs and
  full outputs kept; a counterfactual swap asks the unablated questions in a
  first batch, as the donor depends on their answers.
- self_consistency: one generate call per sample is kept, so a seeded case
  draws the same samples whatever the backend's batch size.
- tuned_lens, attribution_patching, hf/model.py, CHANGELOG.md: both sides.

Adapted to main:
- probing/partition.py uses loop.partition.split_cases; probing/executor.py
  imports runlog.instrumentation.
- MeteredModel counts generate_batch / try_generate_batch / logprobs_batch per
  input; a batched step would otherwise read as one that called no model.
- The probing package and the analyzers it extended pass mypy (type-only).
- Tests: the judge effort default is now medium; a metering test.
The local backends merge a call's kwargs over RuntimeConfig.sampling key by
key. A greedy benchmark cell deploys do_sample=False, so a re-sampling probe
that asked for temperature=1.0 kept it and drew the greedy answer every time:
self_consistency returned five identical samples on every case, and the
triage's re-sampling check could not fire.

A call that names a temperature and no do_sample is now read by its
temperature alone (backends.base.call_sampling; hf_local, jax_local,
vllm_offline). A call that names neither keeps the deployed decoding.
evalrx/eval_agent/probing held the triage controller, next to main's
evalrx/probing (probe catalog and router), which is a different thing. The
package is now evalrx/eval_agent/triage, and its triage.py, which assigns
the routes, is routes.py.

The tests follow: test_probing_{mvp0,mvp2,mvp3,mvp3b} become
test_triage_{routes,expansion,scoring,explanations}, and
test_probing_{chunks,alternatives,validation} become test_triage_*.

Only paths, import lines and import order change. A run still writes to
<run>/probing/ under the same file names; the code label in a report names
the package directory, so its key reads eval_agent/triage.
…scheduler

The switches that existed to compare schedulers against each other are gone:
--triage-scheduler random|cheapest, --triage-explore-from and
--triage-weights (run_triage keeps its weights argument), and with them the
report comparison module (eval_agent.triage.compare). The rules scheduler
and the judge's competing explanations stay.

Defaults are the configuration the comparisons settled on:
--triage-scheduler scored (was rules), --triage-max-fail 128 (was 32),
--triage-max-actions 30 (was 12).

The interval and rank statistics the triage carried move to
evalrx/stats/intervals.py: z_quantile, t_quantile, wilson_interval,
newcombe_interval (was difference_interval), average_ranks and
within_group_spearman (was within_group_rho).

Version strings lose their milestone prefixes (rules-5, score-5, explain-6,
validate-5, policy-2), and a report no longer has an explore_from key.
docs/agentic_benchmark.md describes the package under its new path, the
scored default and the remaining switches. The Unreleased section of the
changelog had one entry per development step of the triage (33); they are
now 11 entries that describe what the branch adds.
Under transformers 5 the vision tower returns a BaseModelOutputWithPooling,
not a tensor, so the test's forward hook read requires_grad off the wrapper
and saw False on a plain forward. The probe now looks at the tensors inside
a tensor, ModelOutput or tuple. media_encoders_without_grad is unchanged.
@jiaq-liu
jiaq-liu merged commit b38bbaf into main Nov 22, 2026
5 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.

2 participants