$ the-wire · showcase
Inspect stops leaking eval logs, adds log-dir exclusions
By RepoJournal · Filed · About Safety Evals · Composed from the cited sources · methodology
Inspect's default control-server path no longer pins finished eval logs in memory, and operators get a new env var to keep unrelated files out of log listing, alongside a breaking change to how appended scorers interact with epoch reducers.
fix: eval() logs stay in memory after the caller drops them (#6804) UKGovernmentBEIS/inspect_ai
With the control server on (the default), the logs returned by eval(), eval_async() and eval_set() used to stay in memory after the caller dropped them, samples included; the process-wide app kept the last ControlServer alive and held each task's final log on the run queue. The fix releases them, which matters most for long-lived processes running many evals back to back.
fix!: reject conflicting epoch reducers when appending scores (#6840) UKGovernmentBEIS/inspect_ai
Appending a scorer could change the shared epoch reducer in the log header while the old scorer's results stayed in place, so a later recompute_metrics() produced different numbers: the notes cite a case where the new scorer scored 1.0 on append and 0.0 on recomputation. Inspect now rejects conflicting epoch reducers instead, so appends that would have silently drifted will fail outright.
feat: exclude named subdirectories from log listing with `INSPECT_LOG_EXCLUDE_DIRS` (#6803) UKGovernmentBEIS/inspect_ai
Log listing is recursive and treats any .eval file at any depth as one of the directory's logs, which picks up logs sitting beside unrelated files. The new INSPECT_LOG_EXCLUDE_DIRS env var excludes named subdirectories, aimed at layouts like an artifacts/ folder next to an eval set's logs.
docs: design for limit precedence and ownership (#6538) UKGovernmentBEIS/inspect_ai
The design doc proposes a single model for token, cost, turn and message limits: every check covers all three trees and raises every limit reached, and when several are hit together Inspect raises one LimitExceededError whose new limits attribute lists them in entry order. It is a design, not shipped behavior, but it tells you the shape of the error handling you will be writing against.
fix(eval): honour an empty approval list in get_control_task (#978) UKGovernmentBEIS/control-arena
Also in Control Arena, get_control_task now uses the setting's approval policies only when approval is None, so an explicit approval=[] finally means what the docstring and docs/evaluation.qmd always said it did rather than being silently swapped for the setting's policies.
Action items
- → Upgrade inspect_ai if you run long-lived processes that call eval() with the control server on, so finished logs are ... UKGovernmentBEIS/inspect_ai [plan]
- → Set INSPECT_LOG_EXCLUDE_DIRS to your artifact subdirectories if you store files beside eval logs UKGovernmentBEIS/inspect_ai [plan]
- → Check scorer-append workflows that rely on mixed epoch reducers, since inspect_ai now rejects them UKGovernmentBEIS/inspect_ai [plan]