Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
36fa900
feat(tier3): add opt-in tolerance for baseline-only agent timeouts
rng1995 Nov 7, 2026
d5dccde
docs(tier3): document baseline timeout tolerance
rng1995 Nov 7, 2026
3ac0332
fix(tier3): rank tolerated agents below complete peers and tighten th…
rng1995 Nov 8, 2026
9abe680
docs(tier3): describe baseline timeout ranking, notes and recorded keys
rng1995 Nov 8, 2026
1df7636
fix(reporting): keep the tolerated-baseline notes clear of other repo…
rng1995 Nov 8, 2026
a764807
docs(tier3): rewrap the baseline timeouts section
rng1995 Nov 8, 2026
0a90da8
fix(tier3): refuse baseline timeouts in native multi-step tasks by name
rng1995 Nov 8, 2026
5989500
fix(tier3): keep tier3 view findings on the canonical best agent
rng1995 Nov 8, 2026
9b0ad90
fix(reporting): show each tolerated-baseline note on its own line in …
rng1995 Nov 8, 2026
24bd23b
docs(tier3): say which skipped agents keep tier3 view off a tolerated…
rng1995 Nov 8, 2026
a2a34bb
fix(tier3): keep the terminal findings panel off a lone tolerated agent
rng1995 Nov 9, 2026
aa6d99d
docs(tier3): name the tier3 evaluate findings panel for tolerated agents
rng1995 Nov 9, 2026
a0b38f6
refactor(reporting): keep tolerated-baseline hunks apart from open re…
rng1995 Nov 9, 2026
83e968e
fix(tier3): take the run verdict from the agents that set the best agent
rng1995 Nov 9, 2026
37af6a4
Merge main into naren/port-tier3-baseline-timeout-tolerance
rng1995 Nov 9, 2026
bf93068
Merge main into naren/port-tier3-baseline-timeout-tolerance
rng1995 Nov 10, 2026
33a2392
fix(tier3): judge baseline timeouts only on baselines that ran, again…
rng1995 Nov 10, 2026
29e79be
test(tier3): give the tolerated agent a met goal in the verdict test
rng1995 Nov 10, 2026
8c89fc2
fix(tier3): take the verdict's counts from the agents the verdict reads
rng1995 Nov 10, 2026
eff996b
docs(tier3): say how baseline-timeout tolerance meets reuse and cost …
rng1995 Nov 10, 2026
1d6949b
docs(changelog): note reused baselines and cost limits for baseline-t…
rng1995 Nov 10, 2026
dfdb8eb
test(tier3): check cost-limit tolerance on the runner's per-attempt jobs
rng1995 Nov 10, 2026
54ba9f5
fix(tier3): keep baseline-timeout tolerance out of the comparison ide…
rng1995 Nov 11, 2026
8772d89
docs(tier3): note cost-limit attempt matching and comparison pairing …
rng1995 Nov 11, 2026
f75e034
Merge commit 'ce52a09887c36edc0223441700298a9f4e30ed09' into HEAD
rng1995 Nov 12, 2026
b086374
fix(tier3): reject oversized timeout token evidence safely
rng1995 Nov 12, 2026
4c6f02a
Merge commit 'b38b71be01f7fdf332e37efbfec49714f3939161' into HEAD
rng1995 Nov 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ All notable changes to SkillEvaluator are documented in this file.

- Tier 3 evaluations support token, judge-call, attempt, and priced-cost budgets.

- `--tolerate-baseline-timeouts` (and `harbor.tolerate_baseline_timeouts` in
`evals/config.yml`) keeps a Tier 3 agent scored on its clean with-skill arm
when its only baseline failures are attempts that hit the agent execution
timeout while the agent was still producing output. By default one such
attempt still fails the agent and the whole run. The option needs both arms
run in the same run (not a `--reuse-baseline` baseline), standard dimension
grading, every other agent completed (at least one with both arms) and no
other launch errors; attempts a cost limit left `not_run` are not counted as
missing. It refuses a timeout whose logs show a known provider overload,
rate limit, quota or authentication error, and it does not cover native
multi-step tasks. The baseline condition stays
`failed`, baseline scores and Skill Lift are not reported for that agent, the
run's best agent, overall score and verdict come from the agents with a
complete baseline, reports name the tolerated agent in a "Baseline
incomplete" note, the run lists a warning, and the run is still not complete
publication evidence.

- Tier 3 reports list up to three run-level **Next steps** under the per-case
fixes in the terminal, `report.html` and the Markdown report: re-run an
incomplete run, add attempts for inconsistent cases, add cases or negative
Expand Down
2 changes: 2 additions & 0 deletions docs/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ The following flags are forwarded to the live-eval engine when Tier 3 is enabled
| `--timeout-multiplier FLOAT` | unset | Scale Harbor's agent, verifier, and environment-build timeouts (built-in default `1.0`). Must be a finite number greater than 0. |
| `--harbor-keep-jobs` | off | Retain Harbor job dirs and artifacts after the run for inspection. |
| `--agent-runtime-preflight / --no-agent-runtime-preflight` | disabled | Opt into an extra agent-only execution of the first staged task before the measured A/B matrix. The CLI value overrides `harbor.agent_runtime_preflight`; without either, no extra agent runs. |
| `--tolerate-baseline-timeouts / --no-tolerate-baseline-timeouts` | disabled | Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported, and the run is not complete publication evidence. The CLI value overrides `harbor.tolerate_baseline_timeouts`. See [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts). |

Flags marked "unset" fall back to their matching keys in `evals/config.yml` where one exists, then to the built-in defaults ([Eval Datasets](eval-datasets.mdx) documents the config keys and precedence). The exception is `--results-dir`, which resolves independently of `evals/config.yml` (see [Reports & Results](reports.mdx)).

Expand Down Expand Up @@ -582,6 +583,7 @@ Use `skillevaluator tier3 PATH` for the complete workflow with automatic missing
| `--harbor-keep-jobs` | off | Retain Harbor job dirs and artifacts for inspection with [harbor-view](#harbor-view). |
| `--verbose` | off | Also print the per-evaluator and per-dimension tables and the metric findings after the case summary. |
| `--agent-runtime-preflight / --no-agent-runtime-preflight` | disabled | Opt into an extra agent-only execution of the first staged task before the full A/B evaluation matrix. |
| `--tolerate-baseline-timeouts / --no-tolerate-baseline-timeouts` | disabled | Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported. The CLI value overrides `harbor.tolerate_baseline_timeouts`. See [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts). |
| `--timeout-multiplier FLOAT` | unset | Scale Harbor's agent, verifier, and environment-build timeouts (built-in default `1.0`). Must be a finite number greater than 0. |
| `--override-cpus INTEGER` | unset | Override eval-environment CPU allocation (passed through to Harbor). |
| `--override-memory-mb INTEGER` | unset | Override eval-environment memory in MB (passed through to Harbor). |
Expand Down
1 change: 1 addition & 0 deletions docs/eval-datasets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ grading:
| `harbor.price_file` | path | JSON price book keyed by exact resolved model identifier. Relative paths resolve from the source skill directory. Each model requires `input_per_mtok` and `output_per_mtok`; optional `cached_input_per_mtok` defaults to the input rate. |
| `harbor.timeout_multiplier` | finite number > 0 | Scales task timeouts. Values that would overflow Harbor's mandatory lifecycle timeouts are rejected before execution. |
| `harbor.agent_runtime_preflight` | boolean | Opt-in extra agent-only execution of the first staged task before the measured evaluation. Default: `false`; the CLI flag overrides this value. |
| `harbor.tolerate_baseline_timeouts` | boolean | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported (see [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts)). Default: `false`; the CLI flag overrides this value. |
| `harbor.agent_workdir` | string | Working directory for the agent inside the container. |
| `harbor.resources` | `cpus`, `memory_mb`, `storage_mb` | Per-container resource requests. |
| `harbor.runtime_env` | list or mapping | Non-credential task values passed into the container. Prefer a list of plain names — each expands to `${NAME}` from your shell; a mapping sets explicit templates. Entries that name or reference operator-owned credentials (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `NVIDIA_API_KEY`, base-URL variables, AWS credential variables) fail with a hard error. Alias: `passthrough_env`. |
Expand Down
7 changes: 7 additions & 0 deletions docs/reports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,13 @@ completed run directly:
`behavior_check`, the final-response section limit
(`SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT`). For `behavior_check`, the
record's `reason` names each setting that applied.
- **`<agent>/baseline_timeout_tolerance.json`** — written only for an agent
kept scored by `--tolerate-baseline-timeouts`: the baseline attempts that hit
the agent execution timeout. `result.json` carries the same record as
`agents.<agent>.baseline_timeout_tolerance`, a refused agent's
`agents.<agent>.baseline_timeout_tolerance_rejection` code, and the run-level
`baseline_timeout_tolerance` (tolerated agents and the launch errors they
explain). See [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts).

<Note>
Read commands (`view`, `compare`, `create-eval-dataset --refine`) honor the
Expand Down
70 changes: 70 additions & 0 deletions docs/tier3-live-evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ The high-signal flags, with defaults:
| `--skip-with-skill` | off | Run only the without-skill arm, for example to calibrate a task set; the report shows baseline scores with no Skill Lift or skill verdict |
| `--stop-on-pass` | off | Stop a case's remaining attempts once one passes |
| `--agent-runtime-preflight` | off | Add one agent-only execution of the first staged task per agent before the full A/B matrix; `--no-agent-runtime-preflight` overrides a config value that enables it |
| `--tolerate-baseline-timeouts` | off | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; see [Baseline timeouts](#baseline-timeouts) |
| `--progress` | `auto` | Progress rendering: `auto`, `rich` (live TTY view with secret redaction), `plain`, or `off` |
| `--progress-interval` | mode default | Seconds between progress heartbeats: 1 for `rich`, 60 for `plain` lines in CI and redirected output |
| `--autopilot` | off | When no evaluation source exists, generate exactly one eval case — with the configured provider, falling back to a deterministic keyless template — never overwriting an existing source |
Expand Down Expand Up @@ -862,6 +863,75 @@ baseline arm must stay isolated from skill-owned setup commands. `validate`
does not accept `--skip-with-skill`, so a baseline-only run can never satisfy a
Tier 3 gate.

### Baseline timeouts

By default, any attempt that errors or goes unscored fails its agent, and any
failed agent fails the whole run: one baseline attempt that hits the agent
execution timeout leaves the run with no overall score or verdict, even though
the verdict reads only with-skill dimensions. `--tolerate-baseline-timeouts` (or
`harbor.tolerate_baseline_timeouts: true` in `evals/config.yml`) keeps such an
agent scored on its with-skill arm. `--no-tolerate-baseline-timeouts`
overrides a config value that enables it.

```bash title="Keep agents whose baseline timed out"
skillevaluator tier3 evaluate ./my-skill --agents claude-code,codex --tolerate-baseline-timeouts
```

The option applies only to an agent whose with-skill arm completed and whose
baseline has at least one attempt that ended in `AgentTimeoutError` (an attempt
a later `--stop-on-pass` attempt recovered does not count). The agent stays
scored only when every one of these holds; otherwise it fails as before, and
the run warning names the rule that did not hold:

- Its with-skill arm scored every attempt with no errors.
- Every missing baseline attempt is a trial that ended in Harbor's
`AgentTimeoutError`, matched case by case and, with `--stop-on-pass` or a
cost limit (each attempt then runs as its own job), attempt by attempt.
Attempts that a [cost limit](#cost-limits) left `not_run` are not expected,
so they are not missing. A setup timeout,
process exit, verifier failure or any other baseline error is not
tolerated. Native multi-step tasks are not covered: Harbor records their
agent timeouts on the step rather than on the trial, so such a baseline is
refused (`step_timeout_not_supported`).
- Every timed-out attempt shows agent output (output tokens above zero).
- Each timed-out attempt left an agent log, and no log shows a known provider
overload, rate limit, quota or authentication error identifier (such as
`rate_limit_error`, `insufficient_quota`, `Error code: 429` or a `429`
status field). This is a best-effort check: a provider error worded in a
way it does not know is not caught.
- Every other agent completed, at least one of them completed both arms, and
the run has no other launch errors. A single-agent run never qualifies.
- The run grades standard dimensions (not `custom_only`) and runs both arms.
A baseline reused with `--reuse-baseline` did not run in this run, so the
option does not apply to it.

For a tolerated agent, the baseline condition stays `failed` with its errors,
and its baseline scores, Skill Lift, pass@k lift and security attribution are
not reported. The reports, and the findings panel that `tier3 evaluate` prints
with `--verbose`, rank it below every agent with a complete baseline, so the
best agent, overall score and lift come from complete evidence. The run's
verdict reads the same agents: a tolerated agent that passes every dimension
does not make the run PASS, and when every agent with a complete baseline
never activated the skill the verdict is INCONCLUSIVE. When the best agent
never activated the skill, the findings panel is left out rather than showing
a tolerated agent's findings. `BENCHMARK.md` and `report.html` keep the "Needs
attention" note and name each tolerated agent on its own line, for example
`Baseline incomplete for opencode (1 of 2 attempts scored)`.

`result.json` records the timed-out attempts under the agent's
`baseline_timeout_tolerance` (also written to
`<agent>/baseline_timeout_tolerance.json`; at most 32 attempts are listed, and
`failed_attempts` is the exact count). An agent that was refused gets
`baseline_timeout_tolerance_rejection` with the rule's code. The run-level
`baseline_timeout_tolerance` lists the tolerated agents and the launch errors
their timeouts explain (at most 32, with `explained_launch_errors_total`). The
run lists a warning for each tolerated or refused agent, and `run_config.json`
records `harbor.tolerate_baseline_timeouts`. The option changes no execution,
so `--reuse-baseline`, `--compare-to` and `tier3 history` do not compare it:
runs with and without it still pair. The missing baseline attempts
still count, so the run is not complete publication evidence and does not
satisfy a blocking Tier 3 gate.

## How standard grading judges a trial

With `default` or `default_plus_custom` grading, SkillEvaluator's verifier
Expand Down
29 changes: 29 additions & 0 deletions src/skillevaluator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ def _run_agent_eval_or_skip(
timeout_multiplier: float | None = None,
harbor_keep_jobs: bool = False,
agent_runtime_preflight: bool | None = None,
tolerate_baseline_timeouts: bool | None = None,
block_on_agent_eval: bool = False,
validate_source: bool = True,
repo_context_exclude_paths: tuple[Path, ...] = (),
Expand Down Expand Up @@ -1033,6 +1034,7 @@ def _run_agent_eval_or_skip(
timeout_multiplier=timeout_multiplier,
harbor_keep_jobs=harbor_keep_jobs,
agent_runtime_preflight=agent_runtime_preflight,
tolerate_baseline_timeouts=tolerate_baseline_timeouts,
evaluated_source=evaluated_source,
repo_context_exclude_paths=repo_context_exclude_paths,
)
Expand Down Expand Up @@ -1456,6 +1458,11 @@ def _catalog_child_argv_from_ctx(
argv.append("--agent-runtime-preflight")
elif agent_runtime_preflight is False:
argv.append("--no-agent-runtime-preflight")
tolerate_baseline_timeouts = params.get("tolerate_baseline_timeouts")
if tolerate_baseline_timeouts is True:
argv.append("--tolerate-baseline-timeouts")
elif tolerate_baseline_timeouts is False:
argv.append("--no-tolerate-baseline-timeouts")
# Every child renders its own BENCHMARK.md, so the identity has to reach
# each one: dropping it here would publish a catalog of cards that all say
# the evaluated source was never recorded.
Expand Down Expand Up @@ -2241,6 +2248,16 @@ def _print_run_banner(target_path: Path, content_type: str, profile: str | None)
help_group=_TIER3_GROUP,
help="Run an extra agent-only execution of the first staged task before measured Tier 3 [default: disabled].",
)
@click.option(
"--tolerate-baseline-timeouts/--no-tolerate-baseline-timeouts",
default=None,
cls=GroupedOption,
help_group=_TIER3_GROUP,
help=(
"Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent "
"execution timeout; its baseline and uplift are not reported [default: disabled]."
),
)
@click.option(
"--evaluated-source-repository",
default=None,
Expand Down Expand Up @@ -2312,6 +2329,7 @@ def validate(
timeout_multiplier: float | None,
harbor_keep_jobs: bool,
agent_runtime_preflight: bool | None,
tolerate_baseline_timeouts: bool | None,
workers: int,
evaluated_source_repository: str | None,
evaluated_source_revision: str | None,
Expand Down Expand Up @@ -2662,6 +2680,7 @@ def _on_case_rows(rows: list[TierRow]) -> None:
timeout_multiplier=timeout_multiplier,
harbor_keep_jobs=harbor_keep_jobs,
agent_runtime_preflight=agent_runtime_preflight,
tolerate_baseline_timeouts=tolerate_baseline_timeouts,
block_on_agent_eval=block_on_agent_eval_effective,
validate_source=preflight_tier3_source,
evaluated_source=evaluated_source,
Expand Down Expand Up @@ -3373,6 +3392,14 @@ def _tier2_workflow(
default=None,
help="Run an extra agent-only execution of the first staged task before the full matrix [default: disabled].",
)
@click.option(
"--tolerate-baseline-timeouts/--no-tolerate-baseline-timeouts",
default=None,
help=(
"Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent "
"execution timeout; its baseline and uplift are not reported [default: disabled]."
),
)
@click.option("--timeout-multiplier", type=float, default=None)
@click.option("--override-cpus", type=int, default=None)
@click.option("--override-memory-mb", type=int, default=None)
Expand Down Expand Up @@ -3445,6 +3472,7 @@ def evaluate(
results_dir: Path | None,
harbor_keep_jobs: bool,
agent_runtime_preflight: bool | None,
tolerate_baseline_timeouts: bool | None,
timeout_multiplier: float | None,
override_cpus: int | None,
override_memory_mb: int | None,
Expand Down Expand Up @@ -3533,6 +3561,7 @@ def prepare_local_runtime() -> None:
results_dir=results_dir,
harbor_keep_jobs=harbor_keep_jobs,
agent_runtime_preflight=agent_runtime_preflight,
tolerate_baseline_timeouts=tolerate_baseline_timeouts,
timeout_multiplier=timeout_multiplier,
override_cpus=override_cpus,
override_memory_mb=override_memory_mb,
Expand Down
1 change: 1 addition & 0 deletions src/skillevaluator/evaluation/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class EvaluationOptions:
max_attempts_total: int | None = None
max_cost_usd: float | None = None
price_file: Path | None = None
tolerate_baseline_timeouts: bool | None = None

def engine_kwargs(self) -> dict[str, Any]:
"""Return keyword arguments (excluding ``skill_path``) for the engine."""
Expand Down
Loading
Loading