Skip to content

feat(tier3): add --skip-with-skill for baseline-only runs - #284

Merged
rng1995 merged 7 commits into
mainfrom
naren/port-skip-with-skill
Nov 2, 2026
Merged

rng1995 merged 7 commits into
mainfrom
naren/port-skip-with-skill

Conversation

@rng1995

@rng1995 rng1995 commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds --skip-with-skill to tier3 evaluate and the direct tier3 workflow. It is the counterpart of --skip-baseline: only the without-skill (baseline) arm is staged and run, and the report presents the result as a baseline calibration instead of a skill evaluation.

  • CLI and options. New flag on the shared evaluate command, so tier3 evaluate, tier3 PATH and the hidden top-level evaluate all get it. EvaluationOptions.skip_with_skill carries it to commands.evaluate and run_harbor_eval. --skip-baseline --skip-with-skill is rejected at every entry point (CLI usage error before --autopilot can generate a case, the tier3 workflow preflight before dataset generation, commands.evaluate, run_harbor_eval, collect_harbor_results). validate does not get the flag, so a baseline-only run can never satisfy a Tier 3 gate.
  • Runner.
    • Stages only the baseline tasks. The baseline arm defines the task identities and gets the staged-environment check that the with-skill arm normally gets.
    • Single-arm runs use unsuffixed task names, the same rule as --skip-baseline.
    • _run_agent_pair accepts with_skill=None and launches only the -without job, including the --stop-on-pass path.
    • Timeout planning and the agent runtime preflight use the baseline tasks.
    • Matrix trial counts, the run plan and progress labels reflect one arm. The plan gains a with_skill field, and the Rich title reads "Baseline-only evaluation".
    • The harbor.pre_agent_setup isolation guard stays active, because the baseline arm still runs.
  • Collector.
    • Never looks up a -with job, so a stale one in a reused jobs directory is ignored.
    • Still writes with-skill/summary.json, with execution_status: "skipped" and skill activation not_applicable.
    • Takes the run's metric set, score definition and score policy from the baseline arm.
    • The without-skill arm suffix matches what the runner staged.
    • No lift, pass@k lift or security attribution is produced.
  • Report.
    • The payload gains mode (both, with_skill_only, baseline_only), read from the collector's explicit skipped marker, never inferred from empty scores.
    • In baseline-only mode, the best agent, overall score and metric contract come from the baseline arm.
    • With-skill values and lift stay None in evaluators, evaluator cards and dimensions instead of becoming 0.0. Evaluator rows mark the arm with_skill_status: "skipped", and the not-applicable notes come from the baseline arm.
    • The verdict stays NEUTRAL.
    • Conclusions state the calibration result, and the LLM insights judge and skill findings are skipped.
    • The validation message reads "Tier 3 baseline calibration complete ... no skill lift measured".
    • The HTML overview, dashboard cards and hero explain the baseline-only run (the hero score is labelled "baseline score").
    • The tier3 CLI summary, the CLI and Markdown reporters and the HTML raw evaluator table print skipped for with-skill and lift cells instead of NO SCORE. The case-first verdict line reads "baseline only" instead of an effect verdict.
  • Docs: cli-reference.mdx (tier3 evaluate flags), tier3-live-evaluation.mdx (flag table plus a "Baseline-only runs" section) and reports.mdx (artifacts and the terminal summary). CHANGELOG entry under Unreleased / Added.

Why

Users who want a no-skill baseline, for example to calibrate a new task set before the skill exists or to re-measure the baseline after a model or harness change, had to run both arms and throw away the with-skill half. That doubles the agent and judge cost for nothing. Running both arms and ignoring one also leaves a report that reads as a skill evaluation. This change runs the baseline arm alone and labels the result as a calibration, so its scores are never read as a skill-lift measurement.

Kept from public

  • Report fixes from fix(reporting): preserve unavailable Tier 3 evaluator scores #251. The branch builds on current main, including fix(reporting): preserve unavailable Tier 3 evaluator scores #251, which keeps unavailable evaluator lift as null instead of a measured zero ([BUG]: --skip-baseline crashes CLI reporting and fabricates zero evaluator lift #240). The baseline-only paths follow the same rule and keep with-skill and lift as None.
  • Fail-closed evidence and publication assessment. assess_tier3_evidence and publication completeness are unchanged. A baseline-only payload has no with-skill evidence, so it stays non-publishable and the effective Tier 3 status is not PASS. The HTML report only explains that state ("No skill verdict: baseline-only run"). The HTML reporter admits the baseline score as display evidence for mode == "baseline_only", so the report renders instead of being scrubbed, and its evaluator sanitizer passes through only the skipped with-skill status.
  • Baseline isolation. _prevalidate_baseline_skill_candidates, the baseline emitter's alias validation and the pre_agent_setup rejection all run unchanged for the baseline arm.
  • Applicability semantics from Share trace evidence, applicable scores and security checks #258. Main's per-arm not-applicable metrics, evaluator with_skill_status and baseline_status, and N/A cells are kept. Baseline-only mode reads them from the baseline arm (metric set, policy metrics, N/A notes) and adds one status value, skipped, for the arm that never ran.
  • Report layout from fix(reporting): retain completed-agent results in Tier 3 reports #223, feat(tier3): case-first CLI summary and case-based report findings #255 and perf(ci): faster Tier 1 scans and a clearer HTML report #256. The hero, dashboard cards, completed-agent display, case-first grid and "How to improve" list are kept. Baseline-only mode only changes labels. completed_agent_result is unchanged and needs a with-skill score, so a baseline-only run never shows a completed-agent quality verdict. The Tier 3 benchmark Markdown is unchanged and fail-closed: it reports no complete agent result for a baseline-only run.
  • Timeout recovery from fix(tier3): retain scores after verified timeout recovery #222. The collector's recovered-attempt accounting applies to the baseline arm unchanged.
  • Public's runner and collector structure. Public's Harbor 0.24 runner (selector-validated staging, _run_agent_pair, retained-artifact lifecycle, runtime-plan credentials) is kept. The baseline-only path is added to it instead of porting a different runner. Public's score-policy reconciliation, run-wide policy conflict detection, judge-aware lift, custom-only agents and bounded report budget are kept. Baseline-only mode reads the baseline arm through them.
  • Validate stays gated. The flag is not added to validate or to catalog argv, so --block-on-agent-eval cannot pass on a run whose with-skill arm never ran.

Tests

New tests/tier3/test_skip_with_skill.py (19 tests). All 19 fail on unmodified main. Reverting only the collector's arm-suffix change, or only the skipped -with job lookup, makes the matching test fail.

  • CLI and engine entry points: the flag reaches EvaluationOptions and run_harbor_eval. Skipping both arms is rejected before --autopilot or tier3 PATH can generate a case, and also in commands.evaluate, run_harbor_eval and collect_harbor_results.
  • Runner:
    • Stages only the baseline arm with unsuffixed names and passes with_skill=None to _run_agent_pair.
    • Plans with_skill=False with single-arm matrix trials, and emits with-skill-tasks: skipped and the "baseline only" agent label.
    • Paired runs still suffix both arms.
    • pre_agent_setup is still rejected.
    • _run_agent_pair launches only demo-codex-without, with and without --stop-on-pass.
  • Collector:
    • The with-skill arm is recorded as skipped and a stale -with job is ignored.
    • No lift is produced, activation is not_applicable, and the metric set and policy come from the baseline.
    • A case ID ending in -without-skill is resolved intact from an unsuffixed task name.
  • Report:
    • mode is baseline_only, the overall score is the baseline, and the verdict is NEUTRAL.
    • With-skill and lift are None in evaluators, cards and dimensions.
    • Calibration conclusions and the validation message are checked. Paired runs report mode: both with unchanged scores.
    • The HTML overview, hero label and raw evaluator table are checked.
    • The tier3 CLI summary prints skipped cells and the "baseline only" verdict line, and the CLI and Markdown reporters print skipped with no NO SCORE.
  • Progress: the plain plan line shows with-skill=no, baseline=yes, and the Rich title reads "Baseline-only evaluation".
  • tests/golden/cli_surface.json was regenerated: the flag is added to evaluate, tier3 evaluate and tier3 PATH only.
  • Full suite with pytest -n 8 on the branch rebased onto current main: 18219 passed, 29 skipped and 17 failed. None of the failures is in code this change touches: 2 host-environment sidecar_retains_* tests; 13 generated custom-only verifier script tests that fail identically on unmodified main on this host (its system python3 is 3.9, which rejects the script's int | float check); and two timing-sensitive tests (a bounded-process timeout test and a Bedrock model-probe test) that pass serially on this branch. The timeout test also fails on unmodified main here. The affected modules were re-run after the final edits: 1885 passed (two FIFO workflow tests timed out under -n 8 and pass serially).
  • ruff check and ruff format --check pass on every changed Python file. scripts/check_oss_boundary.py passes.

🤖 Generated with Claude Code

Users who want a no-skill baseline, for example to calibrate a task set
before the skill exists or to re-measure a baseline after a model or
harness change, had to run both arms and discard the with-skill half,
paying twice for agent and judge work and getting a report that reads
as a skill evaluation.

--skip-with-skill on tier3 evaluate and the direct tier3 workflow stages
and runs only the without-skill arm. The runner derives task identities
from the baseline tasks, uses single-arm (unsuffixed) task names, launches
only the -without Harbor job, and keeps the baseline isolation guards.
The collector never adopts a -with job, records the with-skill arm as
skipped, and takes the metric contract and score policy from the
baseline. The report gains a mode field; in baseline_only mode the best
agent and overall score come from the baseline, with-skill values and
lift stay unavailable instead of 0.0 (evaluator rows mark the arm
"skipped" and report tables print it), the verdict stays NEUTRAL, and the
HTML report, the case-first CLI verdict line and the CLI summary describe
a baseline calibration. Not-applicable metrics and notes come from the
baseline arm.

Skipping both arms is rejected at the CLI, workflow preflight, service,
engine and collector. validate does not accept the flag, so a
baseline-only run cannot satisfy a Tier 3 gate.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The case-first summary printed 'inconclusive' in the effect column of every
row of a --skip-with-skill run, although no with-skill arm ran and there is no
effect to call. Print '-' instead.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full diff plus the surrounding collector, runner and reporting code. The baseline-only flow is consistent end to end: mutual exclusion is checked at the CLI, workflow, commands, runner and collector layers; unsuffixed task names are used when one arm runs; a stale with-skill job in a reused jobs dir is not adopted; skill activation is not_applicable; mode, verdict (NEUTRAL), tables, HTML and Markdown all say skipped instead of 0.0; validate does not accept the flag. tests/tier3/test_skip_with_skill.py, tests/test_cli.py and tests/golden pass locally (246 passed); ruff clean. CHANGELOG is under Unreleased > Added and docs are updated.

Findings: 1 P3 inline (fixed in a follow-up commit), 1 P3 below (open).

P3 (open, runner.py ~L4699, outside the diff so not inline): the guard if not skip_baseline and harbor_config.get("pre_agent_setup") also fires for a baseline-only run and tells the user to "use --skip-baseline for a with-skill-only run", but combining that with --skip-with-skill is rejected, so the advice is a dead end for this mode. Either allow setup commands when only one arm runs (policy call, since this PR says it keeps the baseline isolation rules) or mention in the message that a baseline-only run cannot use them. Left open as it is a policy decision.

Reviewed with Claude Code.

rng1995 and others added 5 commits November 2, 2026 10:49
Conflicted files: CHANGELOG.md (kept main's --max-cases entry and the --skip-with-skill entry under Unreleased / Added).

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p guard

A baseline-only run (--skip-with-skill) that sets harbor.pre_agent_setup
was told to use --skip-baseline, but combining the two flags is rejected,
so the advice was a dead end. The guard still refuses setup commands
whenever a baseline arm runs; in a baseline-only run the message now says
that setup commands cannot run there because the baseline arm must stay
isolated. The paired-run message is unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve CHANGELOG.md (Unreleased > Added): keep main's --max-cases and
SkillSpector LLM provenance entries, then this PR's --skip-with-skill entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Conflicted files: CHANGELOG.md (kept main's --max-cases and SkillSpector LLM provenance entries with main's spacing, then the --skip-with-skill entry).

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995
rng1995 enabled auto-merge (squash) November 2, 2026 19:55
@rng1995
rng1995 merged commit bfd477b into main Nov 2, 2026
21 checks passed
@rng1995
rng1995 deleted the naren/port-skip-with-skill branch November 2, 2026 20:32
@rng1995

rng1995 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up on the runner guard note: fixed in 9386eb6, which is in the squash-merged commit bfd477b on main. A baseline-only run (--skip-with-skill) that sets harbor.pre_agent_setup or setup_commands is still rejected, because the baseline arm must stay isolated. The error no longer points to --skip-baseline, which can't be combined with --skip-with-skill. It now reads "harbor.pre_agent_setup/setup_commands cannot run in a baseline-only run (--skip-with-skill); the baseline arm must stay isolated from skill-owned setup commands". The paired-run message, which does suggest --skip-baseline, is unchanged. The new test test_baseline_only_setup_rejection_does_not_suggest_skip_baseline in tests/tier3/test_skip_with_skill.py pins the exact message, checks that --skip-baseline is not mentioned and that the configuration failure event carries the same text, and checks that nothing is staged. The existing paired-run test in tests/test_harbor_runner_environment.py still pins the old wording. The Baseline-only runs section in docs/tier3-live-evaluation.mdx now states the rule.

rng1995 added a commit that referenced this pull request Nov 6, 2026
* docs(changelog): move entries released in 0.7.0-0.7.2 out of Unreleased

0.7.0 (#314) and 0.7.1 (#327) never cut their sections on main, and 0.7.2
(#335) added its section below the whole Unreleased block, so Unreleased
still listed work that had already shipped.

Place each Unreleased entry under the release that shipped the PR that
added it:

- 0.7.0: the published section from the 0.7.0 tag, verbatim. It already
  holds the six entries that main had filed under 0.6.0, so 0.6.0 again
  matches the v0.6.0 tag, including the original run_config.json entry.
- 0.7.1: #264 #271 #274 #281 #284 #289 #293 #299 #316 #317 #318 #323
  #324 #326 #327, plus the #320 wording of the Windows Git-root entry,
  since #320 changed that 0.7.0 fix in 0.7.1.
- 0.7.2: #263 #265 #269 #270 #276 #279 #287 #290 #296 #309 #328 #330
  merged with the existing #335 entries.

Only post-v0.7.2 entries stay under Unreleased, with one heading per
subsection. Entry text is unchanged, apart from the published tag wording
in 0.7.0 and 0.6.0.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(release): prepare v0.8.0

Set the package, fallback, lock, citation and developer-guide versions to
0.8.0 and move every entry merged since v0.7.2 under
'## 0.8.0 - 2026-11-05', leaving Unreleased empty.

The refusal-fallback documentation test now reads the release section
that names CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK, requires it to be 0.8.0,
and requires exactly one entry there to name the switch.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(release): pin the verified 0.8.0 Tier 1 image and add its CI bundle

Pin onboarding to the Tier 1 image published by the reviewed main revision
55d2d04 in "Build and publish Tier 1 image" run 42158955180:
ghcr.io/nvidia/skillevaluator-tier1@sha256:9d5483243918937be4f2178f74cf7c622a531dee41e3176906994d52fa14950a
(config sha256:d17d6f5105ec5f1bf0cbe4dff0d693aae4ecf01e9c1c6a6ddb7830518acace33).
The workflow and publisher refs both move to 55d2d04.

ci/bundles/0.8.0 mirrors the 0.7.2 bundle. The templates, README and
release.json are the run's github-actions-onboarding artifact and match
ci/render_templates.py output for these pins byte for byte. The scanner
inventory and verification receipt come from the build's runtime-stage
version step, the five-case smoke receipt, the onboarding job's anonymous
pull, and the public manifest, whose config digest equals the smoke-tested
image ID. The ZIP uses the 0.7.2 layout (sorted members, inner checksums,
1980 timestamps, 0644, deflate level 9) and rebuilds to identical bytes.

Point the current-bundle links at 0.8.0 and list 0.7.2 as historical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant