Repository navigation
feat(tier3): add opt-in tolerance for baseline-only agent timeouts - #430
Conversation
With --tolerate-baseline-timeouts (or harbor.tolerate_baseline_timeouts), an agent whose with-skill arm completed cleanly stays scored when its baseline fell short only through attempts that hit AgentTimeoutError while the agent was still producing output. The timeouts must account for every missing attempt, by case and by attempt label, every baseline error and launch error must be one they produce, no timed-out log may show provider overload, rate limit or authentication errors, and another agent must have completed both arms. Tolerance is all or nothing per run. The baseline condition stays failed, baseline scores and lift stay empty, and the run is still not complete publication evidence. The decision is recorded in result.json, in <agent>/baseline_timeout_tolerance.json (which report loading honors only while it matches the arms on disk) and as a run warning. The default is off. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add a "Baseline timeouts" section and flag row to the Tier 3 guide, the flag to the validate and tier3 evaluate references, the config key to the eval config table, and an Unreleased > Added CHANGELOG entry. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e baseline timeout rules - Reports rank an agent kept with a failed baseline below every agent with a complete baseline, in the canonical report and in the tier3 view findings choice, so the best agent, overall score and lift come from complete evidence. Before, a tolerated agent that outscored its complete peer became the best agent and BENCHMARK.md said there was no complete agent result. - completed_agent_result keeps needs_attention set while any agent is tolerated, and BENCHMARK.md and report.html name each tolerated agent with its scored baseline attempts. - The option judges only a baseline with an unrecovered AgentTimeoutError; any other failed baseline fails as before, with no rejection or warning. - A stop-on-pass job failure may count recovered timeouts, which Harbor includes in its errored total. - The provider check knows more 429 and quota identifiers: Error code: 429, a status or statusCode field of 429 or 529, 429 Too Many Requests, insufficient_quota and RESOURCE_EXHAUSTED. - The run-level record publishes at most 32 explained launch errors with an exact total; the runner drops a tolerated agent's launch errors only while their count matches it. - Tests pin a runner-killed baseline (cancelled trial, trial without a result) as never tolerated. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Say which attempts fail an agent by default, that the provider check is best effort on known identifiers, how reports rank and name a tolerated agent, and list the new file and result.json keys on the reports page. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rt edits Name tolerated agents in the HTML Tier 3 overview, after the "needs attention" sentence, instead of the hero detail list, and list the new agent file after the arm directories in the reports page. Open report changes rewrite the hero and add a bullet after lift.json, so these spots keep the hunks disjoint. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Harbor 0.24 records a native multi-step task's agent timeout only on the step and still counts the trial as completed. The trial then has no root exception, no trial-failure row and no errored count to bind, so the option refused it with an unrelated reason (for example untyped_trial_failure or no_progress_evidence). Refuse it with step_timeout_not_supported and its own message instead, and say in the docs and CHANGELOG that native multi-step tasks are not covered. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The canonical report ranks every complete agent above any agent kept by --tolerate-baseline-timeouts and only then prefers agents that activated the skill. The tier3 view findings choice dropped never-activated agents first, so with a complete peer that never activated the skill it named the tolerated agent while BENCHMARK and HTML named the peer. The view now falls back to a tolerated agent only when no complete agent would rank canonically; otherwise it shows no findings, as main does for a never-activated best agent. The HTML Tier 3 overview also printed the tolerated-agent notes only in the completed-agent branch, so an inconclusive run (best agent never activated) lost them. They now follow every overview branch whenever a completed-agent result exists, as in BENCHMARK.md. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…HTML
With two or more agents kept by --tolerate-baseline-timeouts, the HTML
Tier 3 overview emitted the notes as adjacent inline spans, so they ran
together ("...are not reported.Baseline incomplete for ..."). Make each
note a block, as BENCHMARK.md puts each on its own line, and extend the
report test to two tolerated agents.
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… agent The list holds every skipped agent that was not kept with a failed baseline; the final check keeps only those the canonical report can rank. Comment only. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The terminal summary drops agents that never activated the skill before it picks the agent for the findings panel. When a complete peer never activated the skill and one tolerated agent was left, the panel showed the tolerated agent's findings while the canonical report named the peer as best agent. Rank such a lone tolerated agent against every agent, as the canonical report does, and show no findings when it is not the best one. Runs without a tolerated agent keep main's single-agent behavior. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The findings panel that ranks tolerated agents below complete peers is printed by tier3 evaluate with --verbose, not by tier3 view, which only opens report.html. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…port edits Two open pull requests now edit the lines next to this branch's reporting hunks: one adds a dataset provenance rule after the Tier 3 overview lead style, and one adds a verdict reason to the completed-agent result. Put the tolerated-baseline style rule just above the overview lead style, and add the tolerated-agent fields after the completed-agent result is built, so neither change touches their lines. Behavior is unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
With --tolerate-baseline-timeouts, the best agent came from the agents with a complete baseline, but the verdict still read every succeeded agent. A tolerated agent that passed every dimension made the run PASS while the best agent, the completed-agent headline and the Tier 3 row said FAIL or INCONCLUSIVE. The verdict now reads the same agents as the best agent. Insights say that the skill never activated for an agent with a complete baseline when a tolerated agent was set aside. Runs without a tolerated agent keep main's verdict. The CHANGELOG entry now states that every other agent must complete, at least one with both arms, and that the verdict comes from the agents with a complete baseline. The docs say the same. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts and how they were resolved: - CHANGELOG.md: main added the repository CI onboarding entry at the end of Unreleased > Added, where this branch had added its --tolerate-baseline-timeouts entry. Both entries are kept; this branch's entry stays last in the list, after main's. - src/skillevaluator/evaluation/options.py: main appended the reuse_baseline, compare_to, budget and price_file fields to EvaluationOptions, and this branch appended tolerate_baseline_timeouts. Main's fields come first and this branch's field is appended after them, so positional construction keeps main's order. - src/skillevaluator/tier3/harbor/collector.py (3 hunks): main added expected_attempts_by_case to _condition_execution_summary and budget_not_run to collect_harbor_results, and this branch added attempt_slots and tolerate_baseline_timeouts beside them. Both parameters are kept in each signature and both keyword arguments in the without-skill summary call. Main's reused-baseline path does not set without_arm_suffix or without_task_entry_ids, so this branch's without_identity assignment moves into the fresh-baseline path, where those names are set; a reused baseline keeps an empty identity instead of raising NameError. - src/skillevaluator/tier3/harbor/report_data.py: main imports resolve_should_trigger and this branch imports baseline_timeouts; both imports are kept. - src/skillevaluator/tier3/harbor/runner.py: main passes budget_not_run and this branch passes tolerate_baseline_timeouts to collect_harbor_results; both are kept. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st budget limits Main now reuses a retained baseline (--reuse-baseline) and lets a run budget leave attempts unrun. Adapt the baseline-timeout tolerance to both: - A reused baseline did not run in this collection, so it has no timeouts to judge. The option is inert with it, as with --skip-baseline: no run record, no rejection code and no warning. - The residual coverage check and the case identities for timed-out trials now use the baseline arm's budget-adjusted expectations (cases, attempts per case), as the arm's own summary does. Attempts the budget never admitted are not missing attempts, so a budgeted run whose only missing baseline attempts are agent timeouts is tolerated instead of refused as unbound_error. Tests: a reused-baseline run with the option on records no tolerance state, and a budgeted run that never admitted case-003 for an agent tolerates that agent's case-002 timeout (2 of 2 expected baseline attempts, 1 scored). Both fail on the merge commit's src. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main (#395) now fails an agent's quality verdict when a with-skill case scores goal accuracy below 1.0, before the dimension thresholds. The verdict test's tolerated agent is meant to pass everything, but it used the shared fixture scores (goal accuracy 0.8), so its own verdict became FAIL. Its with-skill arm now scores goal accuracy 1.0. The test still checks that the run verdict, best agent and every headline come from the complete peer that fails or never activates the skill. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main (#395) records a verdict reason and the correct-answer, required-check and security-clean counts from the agent that holds the run verdict: the best agent when its own result matches, otherwise the first agent that does. With a tolerated agent, the run verdict reads only the agents with a complete baseline, but that fallback still searched every agent, so a tolerated agent listed first could supply the counts of a PASS it did not decide. The fallback now searches the same agents the verdict reads. Runs without a tolerated agent keep main's choice. Test: three agents, where the tolerated claude-code passes, opencode has the top score but misses a goal (FAIL), and codex passes with a lower score. The summary's counts are codex's. On the merge commit's src they were claude-code's, with no baseline counts. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…limits The Baseline timeouts section now says that attempts a cost limit left not_run are not missing baseline attempts, and that the option does not apply to a baseline reused with --reuse-baseline, which did not run in the current run. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…imeout tolerance The Unreleased entry now says the option needs both arms run in the same run, not a --reuse-baseline baseline, and that attempts a cost limit left not_run are not counted as missing. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
A cost limit makes the runner run every attempt as its own Harbor job and merge them, with one launch error per failed attempt. The cost-limit test now builds those attempt jobs with Harbor's own models, merges them with the runner's _merge_attempt_jobs and passes the per-attempt launch error, instead of an arm-level job. opencode's case-b was never admitted on either arm, and its baseline's second case-a attempt timed out: the agent is tolerated with 1 of 2 baseline attempts scored, and the launch error is explained. On the merge commit's src it is refused as unbound_error. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntity The option only decides how a finished run's baseline gaps are reported; it changes no execution. Recording harbor.tolerate_baseline_timeouts in the comparison identity made --reuse-baseline, --compare-to and history treat runs with and without it as different environments, so a run with the option refused an otherwise compatible source without it. Treat the key like the other operational settings. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…for baseline timeouts A cost-limited run also runs each attempt as its own job, so its baseline timeouts are matched attempt by attempt, as with --stop-on-pass. Say that the option is not part of what --reuse-baseline, --compare-to and tier3 history compare. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Found a malformed-telemetry path that can abort result collection when baseline timeout tolerance is enabled.
rng1995
left a comment
There was a problem hiding this comment.
The new baseline-timeout cross-page links also need published site routes.
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the full production diff, callers and tolerance/coverage contracts. Fixed oversized integer token evidence crashing the collector and repaired four published-documentation links in b086374; both inline threads are resolved. Both collector-source regressions failed before the fix. Validation: 98 affected tests passed with locked dependencies, both regressions passed again after formatting, make lint and pinned Fern check passed, and the wheel built successfully. Current main merged without conflicts. This PR remains open; no merge was performed.
Signed-off-by: Narendran Raghavan <[email protected]> # Conflicts: # CHANGELOG.md
rng1995
left a comment
There was a problem hiding this comment.
Concurrent-merge integration review at 4c6f02a167defc347decf898c1cd07cddaf3ca63: The actual CHANGELOG overlap preserves every independent entry and places this PR’s complete entry after its assigned existing bullet in the same Unreleased subsection. No production conflict required manual edits. Focused contracts: 110 passed in 817.87s (0:13:37). Lint passes; pinned Fern validation reports 0 errors and only the existing authenticated-redirect warning.
The signed-off fix was pushed normally after live open/head/base guards and clean merge checks against captured main a72a611963ac5328c63931c92fbcfbc88cf730aa and actual base main at a72a611963ac5328c63931c92fbcfbc88cf730aa. Fresh exact-head hosted CI is pending. No PR was merged by this review.
Brings in #410, #412, #413, #419, #421, #425, #430 and #444. Conflicts: CHANGELOG.md (kept both Unreleased Fixed entries) and evaluation/options.py (kept main's tolerate_baseline_timeouts field and this PR's backend field). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
main's #430 added --tolerate-baseline-timeouts and harbor.tolerate_baseline_timeouts, but only the Harbor runner reads them. After the main sync, a NeMo Gym run accepted either and silently ran without the tolerance, the same gap the budget and baseline-reuse options had. Gym now rejects the option when it is on, from the flag or the config key, before dataset generation, a run folder or a Gym launch, with the same "is not supported with --backend nemo-gym yet" message. Off is Gym's own behavior, so --no-tolerate-baseline-timeouts stays allowed and, as on Harbor, overrides a config key that turns it on. The docs list the new rejected flag and key. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
* chore: start Nemogym integration Signed-off-by: Christopher Kevin <[email protected]> * feat(tier3): add selectable NeMo Gym execution backend Add `tier3 evaluate --backend harbor|nemo-gym` (default harbor). With nemo-gym, the evals.json cases are generated as the same task folders and run by NeMo Gym's own orchestrator, agent harness and Docker sandbox in a separate pinned process. Rollouts are normalized back into trial results, so the shared collector, scores, lift and reports are reused, and result.json records the backend and Gym version. Unsupported options are rejected before execution with no fallback to Harbor. Also credit SKILL.md reads wrapped in `bash -lc '...'`, which NeMo Gym's Codex agent records, as skill activation. Signed-off-by: Christopher Kevin <[email protected]> * test(tier3): score shell-wrapped SKILL.md reads in the plugin-signal test The scored activation check now credits `bash -lc 'cat .../SKILL.md'`, so move that case from the lenient-only group to its own test. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): honor run options and result contract on the NeMo Gym backend - Resolve unset options from evals/config.yml as Harbor does and reject config-set features Gym cannot honor (stop_on_pass, timeout_multiplier, agent_runtime_preflight, base_image_mode, custom Dockerfile modes). - Apply --skip-with-skill and --max-cases, and pass one --agent-model string per agent. - Reject --agent-runtime-preflight, and reject unsupported Gym flags before --autopilot writes a dataset. - Write run_config.json and the run_config/attempt_policy/report_status/duration result fields so result discovery finds Gym runs. - Launch Gym with only the host variables a Harbor backend may receive, plus the policy and judge credentials. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): honor config agent models and resources on the NeMo Gym backend Use harbor.agents.<agent>.model and harbor.resources (cpus, memory_mb) when no flag overrides them, reject the Harbor-only config keys Gym cannot honor (task_source native_harbor, agent_workdir, pre_agent_setup, setup_commands, passthrough_env, resources.storage_mb), and list the supported keys in the docs. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): address NeMo Gym backend review findings Merge Gym launch errors into results, tolerate truncated rollout JSONL, stage harbor.runtime_env into agent tasks, forward only Harbor's Docker-backend environment allowlist, publish the latest link, record dataset snapshot and publication target, run Gym in its own process group with graceful shutdown, resolve the Gym binary and version robustly, require a policy key for a custom model URL, validate SKILL_EVAL_NEMO_GYM_TIMEOUT_S, reject skill_workspace.decoy_manifest and harbor.timeout_multiplier, skip Harbor runtime preflight for tier3 PATH --backend nemo-gym, and drop duplicated CHANGELOG entries. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): let CLI overrides win in NeMo Gym config checks Skip a config key in nemo_gym_config_errors when its flag is given, read the workflow's environment_kwarg param, and stop rejecting the passthrough_env/setup_commands aliases that load_evals_config already normalizes (passthrough_env now reaches the agent via runtime_env staging). Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(tier3): address round-3 NeMo Gym review findings Isolate the Gym version probe, stage judge overrides into the verifier, keep partial rollouts as scored arms, let Codex inherit runtime_env, refresh Vertex ADC per launch, harden process cleanup and log redaction, reject MCP servers, native Harbor tasks, URL credentials and Windows before any work, stage every arm once before the first launch, remove staged tasks/jobs as Harbor does, and carry failed status into reports. Signed-off-by: Christopher Kevin <[email protected]> * feat(tier3): support --timeout-multiplier on the NeMo Gym backend Scale each staged task's agent, verifier and environment-build timeouts by Harbor's multiplier before Gym runs, since Gym enforces the task's own timeouts. Validate the multiplier as Harbor does and record it in run_config.json. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(tier3): live case progress and doctor for the NeMo Gym backend Fill the live per-case progress rows from Gym's rollouts.jsonl as attempts finish, and add tier3 doctor --backend nemo-gym to check the Gym CLI, version, docker CLI, settings and agent/env-mode support. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(golden): add tier3 doctor --backend to the CLI surface snapshot Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(tier3): support agent_workdir, pre_agent_setup and --copy-repo on NeMo Gym Gym reads [environment].workdir and [environment.healthcheck] from task.toml, and builds the repo-context COPY lines, so the staged Harbor tasks carry these settings unchanged. The baseline-isolation rule for pre_agent_setup matches Harbor's. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(tier3): support skill_workspace.decoy_manifest on NeMo Gym Resolve the frozen decoy selection with Harbor's helpers, stage the same verified snapshot into every arm, and record the manifest in run_config.json. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(tier3): accept custom_dockerfile_mode preserve on NeMo Gym Without a shared base image, preserve and rebase build the same image, as on Harbor; record the mode in run_config.json. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(tier3): run native evals/harbor tasks on NeMo Gym Resolve task_source like Harbor and stage native tasks with Harbor's own native staging; record the resolved source in run_config.json. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(tier3): support harbor.base_image_mode on NeMo Gym Build Harbor's shared eval base image for reuse/rebuild and stage the task Dockerfiles on top of it, honouring --custom-dockerfile-mode. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(tier3): keep engine failures in re-rendered reports Fall back to the run's result.json when no engine result is passed, and mark the payload summary and affected agents failed, not only the root. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(tier3): address NeMo Gym review round 4 - Codex inherits the task environment on every docker launch; reject an unsupported SKILL_EVAL_NEMO_GYM_SANDBOX. - Score a numeric reward.txt when reward.json is missing, as Harbor does. - Redact rollout row failure text before it reaches trial results. - Run the full Gym preflight before --autopilot writes a dataset, and reject a missing dataset before a run dir is reserved. - Reject [[environment.mcp_servers]] in native task.toml files. - Keep Gym's process group killed on a second interrupt and tolerate the macOS EPERM race; record other stop errors against the arm. - Apply --override-cpus/--override-memory-mb to native tasks and scale the default 600 s verifier timeout with --timeout-multiplier. - Exclude the results root from the repo context, report a failed base image build as degraded, and start the reporter with the run plan. - Refresh the Vertex policy token whenever the policy uses the provider key; score live Gym marks from verifier logs and skip normalized jobs. - tier3 doctor --backend nemo-gym probes the Docker daemon and resolves each agent's policy endpoint; document doctor --backend. Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * chore(gitleaks): allowlist the synthetic NeMo Gym policy key test value Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs(tier3): state that NeMo Gym supports only --env-mode docker Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(tier3): report excess NeMo Gym rollouts instead of dropping them silently Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(tier3): reject incompatible Gym CLIs and excess rollouts Signed-off-by: Narendran Raghavan <[email protected]> * fix(tier3): bound Gym help output and contain probe processes Signed-off-by: Narendran Raghavan <[email protected]> * fix(tier3): keep unattributed engine errors off agents, keep Ctrl-C on stop failure, replace legacy memory key Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(tier3): reject a NeMo Gym CLI without the Harbor task-folder interface before staging Signed-off-by: Christopher Kevin <[email protected]> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: recognize public Gym TARGET positional help Signed-off-by: Narendran Raghavan <[email protected]> * fix(tier3): validate Gym runtime_env and max_agents before reserving a run folder Resolve the judge and harbor.runtime_env environment before _reserve_run_dir, so an unset ${VAR} or an operator-owned name leaves no results/ folder behind, as on Harbor. Reject --max-agents and harbor.max_agents below 1 on the Gym path with Harbor's message. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): reject --tolerate-baseline-timeouts for --backend nemo-gym main's #430 added --tolerate-baseline-timeouts and harbor.tolerate_baseline_timeouts, but only the Harbor runner reads them. After the main sync, a NeMo Gym run accepted either and silently ran without the tolerance, the same gap the budget and baseline-reuse options had. Gym now rejects the option when it is on, from the flag or the config key, before dataset generation, a run folder or a Gym launch, with the same "is not supported with --backend nemo-gym yet" message. Off is Gym's own behavior, so --no-tolerate-baseline-timeouts stays allowed and, as on Harbor, overrides a config key that turns it on. The docs list the new rejected flag and key. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * docs: use site paths for the Execution backends links The --backend row in the CLI reference and the SKILL_EVAL_NEMO_GYM_BIN row in the environment variables page linked to tier3-live-evaluation.mdx by file path. Published pages need the /skills/skillevaluator/<slug> form, as docs/AGENTS.md requires. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): end a NeMo Gym run when its process group will not stop When a timed-out gym eval run could not be stopped (killpg refused or the leader was not reaped), the failure was recorded against the arm and the next arm launched beside Gym servers and sandboxes that might still be running. _run_gym now makes one last bounded SIGKILL and reap after a failed stop and checks the group is empty. If it still cannot confirm that, it raises GymCleanupError; the runner reports the agent as failed and aborts instead of starting another arm. Signed-off-by: Christopher Kevin <[email protected]> * fix(tier3): keep finished Gym arms when a group cannot be confirmed stopped Re-raising GymCleanupError ended the evaluation before collection, so the arms and agents that had already finished lost their scores: no result.json, report or latest. Now nothing else is launched beside the group, each skipped arm is recorded as not started, and the run is still collected and saved as failed with the cleanup error. On Ctrl-C, SIGTERM or SIGHUP the interrupt still ends the run, but a failed cleanup progress event now says Gym may still be running, instead of only "Aborted!". _group_is_gone reaps our own zombies in the group before each probe, so SkillEvaluator as PID 1 (or a subreaper) without an init no longer reports an already-dead group as running. New tests cover a member that outlives the leader, a retried EPERM probe, the Linux subreaper case, the interrupt event, and a finished arm kept beside a hung one. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * fix(tier3): show the Gym cleanup warning in the summary When an earlier arm finished, the summary without --verbose folded the cleanup error into "N failure detail(s)", so with --progress off nothing said that Gym's servers or sandboxes may still be running. Record it as a warning too, which the summary always prints, and record that the arm timed out before its stop failed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * fix(tier3): give Gym the same missing-dataset advice as Harbor #456 made create-eval-dataset default to --grounding auto, which needs evals/EVAL.md, --prompt or a matching trace, and rewrote Harbor's missing-dataset error to say so. The Gym backend kept its own copy of the old message, which told users to run create-eval-dataset, and that now fails without guidance. Both backends now use one shared message. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> --------- Signed-off-by: Christopher Kevin <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Narendran Raghavan <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
--tolerate-baseline-timeouts/--no-tolerate-baseline-timeoutsontier3 evaluateandvalidate, and the matchingharbor.tolerate_baseline_timeoutskey inevals/config.yml. The CLI value overrides the key. The default is off, and runs without it behave exactly as onmain.AgentTimeoutErrorwhile the agent was still working. The option judges only a baseline with at least one such timeout (a--stop-on-passattempt that a later attempt recovered does not count). Any other failed baseline fails exactly as onmain, with no rejection code or warning. Every rule must hold:custom_only;--reuse-baselineis left alone, as with--skip-baseline, and attempts that a cost limit leftnot_runare not expected, so they do not count as missing;AgentTimeoutError, matched case by case and, when each attempt runs as its own labelled job (--stop-on-passor a cost limit), attempt by attempt. Native multi-step tasks are not covered: Harbor 0.24 records their agent timeouts only on the step and counts the trial as completed, so such a baseline is refused with its own code,step_timeout_not_supported;N erroredjob failure (Harbor's count includes recovered timeouts), the per-trial runtime and reward lines, and the missing-cases and coverage lines;agent_result.n_output_tokensor a trajectory'stotal_completion_tokensabove zero);rate_limit_error,insufficient_quota,RESOURCE_EXHAUSTED, ...),Error code: 429, a JSON or Pythonstatus/statusCodeof 429 or 529,429 Too Many Requests, and the Claude Code and Codex forms;succeeded. Itsconditions.without_skillstaysfailedwith its errors, its attempt totals still count the missing attempts, and its baseline scores, Skill Lift, pass@k lift and security attribution stay empty (main already computes none of them for a failed arm).tier3 evaluateprints with--verbose. A tolerated run always has such a peer, so the best agent, overall score and lift come from complete evidence, also when the tolerated agent scored higher. Both apply this before preferring agents that activated the skill. The panel falls back to a tolerated agent only when no complete agent would rank in the canonical report. When the canonical best agent is a complete agent the panel skips (for example, one that never activated the skill), the panel shows no findings, asmaindoes for such an agent. This also holds when the terminal summary has dropped that agent and only one tolerated agent is left: the panel ranks it against every agent before it shows its findings. Runs without a tolerated agent keepmain's choice.mainrecords with it. A tolerated agent that passes every dimension does not make the run PASS beside a complete peer that fails, and when every complete agent never activated the skill the verdict is INCONCLUSIVE (the Insights message then says the skill never activated for an agent with a complete baseline). When one complete agent decides the verdict, the result payload, theagent_evalmessage, theBENCHMARK.mdheadline and Tier 3 row and thereport.htmllead therefore agree. With several complete agents, the payload verdict (PASS when any of them passes) can still differ from the best agent's own result in those reports, as it already does onmain. Runs without a tolerated agent keepmain's verdict.BENCHMARK.mdandreport.html(Tier 3 overview) keep the "Needs attention" note while any agent is tolerated, and add one line per tolerated agent, for exampleBaseline incomplete for opencode (1 of 2 attempts scored): kept by --tolerate-baseline-timeouts, so its baseline and uplift are not reported.Inreport.htmleach line is its own block, shown under whichever overview lead applies, including the inconclusive one for a best agent that never activated the skill. The Tier 3 row keepsother execution failures need attention.result.json, in<agent>/baseline_timeout_tolerance.jsonand inrun_config.json(harbor.tolerate_baseline_timeouts, only when on):agents.<agent>.baseline_timeout_tolerance: the timed-out attempts (at most 32 listed;failed_attemptsis the exact count);agents.<agent>.baseline_timeout_tolerance_rejection: the code of the rule that did not hold;baseline_timeout_tolerance: the tolerated agents and the launch errors they explain (at most 32 listed, withexplained_launch_errors_totalandexplained_launch_errors_truncated).The run lists a warning per tolerated or refused agent, so the terminal shows it as degraded.
report_data.load_agent_datahonors the agent file only while it still matches the on-disk arms (with-skill succeeded with full coverage, baseline failed with exactly the recorded counts). The file is a generated agent artifact, so a rerun without the option removes it.tier3/harbor/baseline_timeouts.py(rules, records, run-level decision, the report helpers); the collector gathers the evidence (attempt_slotsfrom_condition_execution_summary, trial results, logs) and settles the decision before the run-level policy and comparison are built; the runner passes the flag through and drops only the launch errors of tolerated agents, and only while their count matches the record;baseline_storeleaves the key out of the comparison identity.docs/tier3-live-evaluation.mdx, rows indocs/cli-reference.mdx(both commands) anddocs/eval-datasets.mdx, and the new file and keys in the run-directory list ofdocs/reports.mdx. CHANGELOG entry under Unreleased > Added.tests/golden/cli_surface.jsonregenerated (4 additive entries).Why
The Tier 3 verdict reads only with-skill dimensions, but one baseline attempt that hits the agent execution timeout fails that agent, and any failed agent fails the whole run. The run then has no overall score or verdict, although the skill's own arm completed. Slow agents on long tasks hit this often. The option lets a user keep those runs readable without hiding the gap: the baseline stays failed and visible, uplift is not reported, the headline and verdict come from agents with complete evidence, and publication still requires complete coverage.
Kept from public
_exception_details,_agent_runtime_failure_reason(a log runtime error on a timed-out trial refuses tolerance), the published trial labels,_entry_id_from_harbor_resultand_structural_attempt_ordinalfor case and attempt identity, andSecureRootfor bounded, no-follow reads of agent-written logs and trajectories.completed_agent_resultkeeps its rules: it still describes only the canonical best agent, never fills gaps from another agent, and returns nothing for an incomplete one. The ranking change makes that best agent a complete one.main. Onmainthe per-dimension score cells readbaseline not run; uplift unavailablefor a tolerated agent. Open PR fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407 words a failed baseline as incomplete in those cells and adds per-arm coverage notes. This PR does not touch_score_transition_valuesor those sections.baseline incomplete (1 of 2 attempts scored); uplift unavailable, and fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407's coverage notes (### Agent coverageinBENCHMARK.md, Agent coverage notes inreport.html) and its Tier 3 row suffix also name the tolerated agent. This PR's line then adds only that the agent was kept by--tolerate-baseline-timeouts. Once fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407 lands, a follow-up can fold that line into fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407's coverage notice so the gap is named once.CHANGELOG.md). The closest is fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407: it shares 5 files (CHANGELOG.md,docs/reports.mdx,evaluation/tier3_report.py,reporting/benchmark.pyandreport.html.j2). Its branch, after its own merge ofmaind717f22, merges with this branch without conflicts. The code hunks sit apart from theirs: new lines next to the--agent-runtime-preflightplumbing, a new block after each agent's payload in the collector, the newattempt_slotsargument, a new_headline_agentshelper above the canonical_pick_best_agent(which both_pick_best_agentand the verdict read), three small edits inbuild_agent_eval_payload(the agents the verdict reads, the agents its reason and counts come from, and the inconclusive Insights message), the selection loop of the findings panel's_pick_best_agentand the single-agent branch ofdisplay_findings_report, one loop after the "Needs attention" text inBENCHMARK.md, new lines after the completed-agent result is built intier3_scope.py, and one CSS rule above the overview lead style plus a block at the end of the HTML Tier 3 overview lead.main(d717f22) was merged in. It conflicted inCHANGELOG.md(main's CI onboarding entry; both entries are kept, and this one stays last in Unreleased > Added), inEvaluationOptions(the fields main added for feat(tier3): reuse a compatible retained no-skill baseline #384, feat(tier3): compare a run against a prior skill version #387 and feat(tier3): add run budget limits with admission control and partial results #404 come first, this PR's field after them), in thereport_data.pyimports, and in the signatures and calls of_condition_execution_summaryandcollect_harbor_results(main'sexpected_attempts_by_caseandbudget_not_runsit beside this PR'sattempt_slotsandtolerate_baseline_timeouts). Follow-up commits adapt the option to whatmainadded: it leaves a baseline reused with--reuse-baseline(feat(tier3): reuse a compatible retained no-skill baseline #384) alone, it judges a baseline against the attempts a cost limit (feat(tier3): add run budget limits with admission control and partial results #404) admitted, and the verdict reason and counts that feat(tier3): fail cases on unmet goals and security issues, independent of lift #395 added come from the agents the verdict reads. feat(tier3): fail cases on unmet goals and security issues, independent of lift #395 also fails an agent whose case misses its goal, so the verdict tests now give the tolerated agent goal accuracy 1.0. A 3-way merge (git merge-tree) with each open PR that has a branch in the local clone (feat(tier3): add selectable NeMo Gym execution backend #225, fix(tier3): decode inline and Promise.allSettled Codex wrappers (#235) #325, feat(tier3): add fixed-source skill interaction evaluation #392, feat(datasets): record how a dataset was generated and show it on reports #405, fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407, fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410 to feat(tier3): save RAGAS goal-accuracy requests and replies in judge_attempts.json #429, fix(tier3): match home-anchored sensitive paths in the security check #444 and fix(tier3): keep credentials out of security finding evidence #445) gives no conflict thatmaindoes not also have. The CHANGELOG entry sits at the end of Unreleased > Added; at the top of that list it would add a conflict thatmaindoes not have with many open PRs. The style rule is placed so it stays clear of feat(datasets): record how a dataset was generated and show it on reports #405 (dataset provenance style). fix(reporting): let default Tier 3 runs with a baseline pass publication #332 and feat(quality): configure Reliability error handling in the quality config #336 have no local branch, so they were not merge-checked. Runs with the option off keeprun_config.jsonunchanged. With the option on,run_config.jsonrecordsharbor.tolerate_baseline_timeouts, but the key joins main's operational settings inbaseline_store._NON_COMPARISON_FIELDS: the option changes no execution, so--reuse-baseline,--compare-toandtier3 historypair runs with and without it. A tolerated agent's failed baseline is never a reuse source.Tests
tests/tier3/test_baseline_timeouts.py(74 tests):Nonecomparison baseline, the record, the bounded run record, the run warning and the explained launch error; trajectory completion tokens count as progressError code: 429with a'status': 429body, OpenCode'sstatusCode429, a bare429 Too Many Requests,insufficient_quota,RESOURCE_EXHAUSTED), a log runtime error (2), a stray trial, an errored count with no matching trial, another failure beside a timeout, a timeout recorded only on a native multi-step task's step (the trial built with Harbor's ownTrialResultmodel; refused asstep_timeout_not_supported), a failed peer, a single agent, an extra launch error (2);custom_onlygrading,--skip-baselineand a baseline reused with--reuse-baselineleave the option inert (3)_merge_attempt_jobswith its per-attempt launch error: that case is not a missing baseline attempt, so only the timed-out attempt is missing (1 of 2 scored), the agent is tolerated and the launch error is explainedmain: no rejection code and no warning (2)main), a timeout beside a cancelled trial, and a timeout beside a trial without a result (3)tier3-benchmark.mdandreport.htmlshow the completed-agent result, the "Needs attention" line, the Tier 3 row suffix and one tolerated-agent line per agent (in HTML, separate blocks)tier3-benchmark.mdstill name the tolerated agentagent_evalmessage, thetier3-benchmark.mdheadline and Tier 3 row and thereport.htmllead all give the peer's result, and in the inconclusive case the Insights message says the skill never activated for an agent with a complete baselinerender_result, with that never-activated peer (3 cases): with one or two tolerated agents it prints no findings and writes nofindings.json; with no tolerated agent the one activated agent keeps its panel, as onmain_merge_attempt_jobs: timeouts matched by attempt; a launch error for an attempt that did not time out is refused; and a recovered timeout on one case beside two unrecovered timeouts on another is tolerated (the job reports3 errored)load_agent_dataandbuild_agent_eval_payloadreload the tolerated agent as succeeded, publication evidence and gate coverage stay incomplete, a record that no longer matches the baseline is ignored, and a rerun without the option removes itcheck_failures(12 cases),select_tolerated(all or nothing, agent-name prefixes, no clean peer, 5 unbindable launch errors including the ADC-lifetime message),settle,build_recordbounding, andrun_recordbounding withunexplained_launch_errors(drops a tolerated agent's errors past the published sample, keeps every error when the count does not match)run_harbor_evalwith Harbor faked and the real collector: off by default the launch error fails the run;harbor.tolerate_baseline_timeouts: truedrops only the explained launch error and records the key; the engine argument overrides the key; a non-boolean key is rejected; the comparison identity leaves the key out, so the run's complete baseline is a--reuse-baselinesource and its with-skill arms a--compare-toprior for the same run without the option, while the tolerated baseline is not a sourcevalidateforwards both flag spellings, andEvaluationOptionsreachestier3.commands.evaluatemain, the file does not import (the new module is missing). Withmain'ssrc/plus only the new module, it has 53 failed and 21 passed; the 21 are the module's pure-rule tests.d5dccde1'ssrc/with only the new module copied in), it has 30 failed and 44 passed. The 30: the two report tests (ranking with two tolerated agents, and the never-activated peer), the 2 verdict tests, the 2 tolerated cases of the terminal findings panel test, the multi-step test, the mixed stop-on-pass test, the 2 no-timeout tests and the all-cancelled case (rejection recorded for a timeout that never happened), the 5 new provider forms (the run succeeded), the engine test (the old run record has no total, so the launch error stays), 9 tests that check the new run record shape, and the 4 tests added after the merge withmain(reused baseline, cost limit, verdict counts and comparison identity).a764807f), it has 11 failed and 63 passed: the 4 tests added after the merge withmain, the multi-step test (refused asno_progress_evidence, not by name), the never-activated peer test (verdict PASS; the panel's choice also namedopencode), the two-agent report test (no block style for the HTML notes, which ran together), the 2 tolerated cases of the terminal findings panel test, and the 2 verdict tests.24bd23b6), it has 8 failed and 66 passed: the 4 tests added after the merge withmain, the terminal findings panel test with one tolerated agent, which printedopencode's findings and wrote itsfindings.json, the never-activated peer test (verdict PASS) and the 2 verdict tests.a0b38f6c), it has 7 failed and 67 passed: the 4 tests added after the merge withmain, the 2 verdict tests (payload verdict PASS from the tolerated agent beside a FAIL or INCONCLUSIVE headline) and the never-activated peer test (verdict PASS).maind717f22 before the follow-up commits (bf930681), the branch's own file had 2 failed and 68 passed: the 2 verdict tests, whose tolerated agent scored goal accuracy 0.8 and so failed its own verdict under feat(tier3): fail cases on unmet goals and security issues, independent of lift #395's rule. The final file against that commit'ssrc/has 4 failed and 70 passed: the reused baseline (a run record was still written), the cost limit (refused asunbound_error), the verdict counts (the tolerated agent's, with no baseline counts) and the comparison identity (it still carried the key).dfdb8eb7), it has 1 failed and 73 passed: the comparison identity test (the persisted identity carriedharbor.tolerate_baseline_timeouts, so a run without the option would refuse the source).pytest -n 6 tests): 27439 passed, 35 skipped, 6 failed. The 6 are environment-only. Five also fail onmainon this machine:test_actual_workflow_bootstrap_ignores_consumer_pythonpathintests/ci/test_all_tier_preflight.py, the 2test_isolated_feedback_launcher_uses_trusted_siblings_from_any_consumer_directorycases intests/ci/test_feedback.py, and the 2test_sidecar_retains_*tests intests/test_harbor_secure_docker_environment.py. The sixth,test_bounded_harbor_process_timeout_preserves_redacted_diagnostic_tailintests/test_harbor_runner_status.py, is a Harbor bounded-process timeout test that failed under the parallel run's load and passes alone. A targeted run of the 171 test modules for the changed files and the CHANGELOG and docs readers (11502 passed) failed only on 3 of the same environment-only tests.main(d717f22) and the follow-up commits, the new test file and the Tier 3 display and report tests (tests/test_tier3_result_display.py,tests/reporting/test_tier3_scoped_reports.py,test_report_redesign.py,test_reporters.py,test_advisory_skip_verdict.py) give 804 passed.maind717f22 (369a5d6), which has no conflicts, the same 6 modules plus fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407'stests/reporting/test_tier3_incomplete_arms.pyandtests/test_public_benchmark_gate.pygive 1365 passed. The two-agent report fixture with the option on then renders the tolerated agent's gap inBENCHMARK.mdin this PR's line, fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407's### Agent coveragebullet and fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run #407's Tier 3 row suffix.ruff checkandruff format --checkare clean on the 16 changed Python files, andscripts/check_oss_boundary.pypasses.🤖 Generated with Claude Code