Skip to content

fix(tier3): propagate judge model overrides to Harbor verifiers - #54

Merged
rng1995 merged 5 commits into
mainfrom
feat/christopherk/judge-model-override
Aug 20, 2026
Merged

rng1995 merged 5 commits into
mainfrom
feat/christopherk/judge-model-override

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Forward a host-configured LLM_JUDGE_MODEL or SKILL_EVAL_JUDGE_MODEL for standard Tier 3 grading.
  • Normalize both spellings to the selected value in Harbor's parent process and pass both through the final verifier-job override layer. This covers shared, step, and separate verifiers, including opposite-alias placeholders resolved before verifier execution.
  • Keep both controls out of staged and initial agent environments; reject skill-authored runtime_env and native [environment.env] keys or aliases.
  • Preserve native verifier declarations and custom_only ownership. Without a dedicated host override, native verifier configuration retains its existing precedence.
  • Record configured judge provider, model, source, and override_applied separately from agent models in run_config.json.

Root cause

The Tier 3 judge already supported a distinct model selection, but the Harbor runner did not propagate either host override. Standard evaluations therefore fell back to the execution/eval model.

Harbor also resolves native separate-verifier environment placeholders before the verifier job executes. Normalizing only the selected spelling at the job layer left an opposite authored alias unresolved. This PR now makes both names resolve to the selected host value in the Harbor parent and overrides both names at verifier execution.

Behavior and compatibility

Selection order remains:

LLM_JUDGE_MODEL > SKILL_EVAL_JUDGE_MODEL > SKILL_EVAL_LLM_MODEL > provider default

  • default and default_plus_custom apply a dedicated host override across Harbor verifier topologies.
  • custom_only applies no standard judge override or alias normalization.
  • With no dedicated override, existing native task and step verifier declarations are preserved.
  • run_config.judge.override_applied=true means the dedicated model was enforced job-wide. The recorded judge model is the configured selection; an allowed provider fallback may use a different model for an individual call. When override_applied=false and task_source=native_harbor, an authored verifier declaration may supersede the recorded fallback.
  • No agent-harness default, global agent --model behavior, judge provider, or default judge model changes. The judge model must be supported by SKILL_EVAL_LLM_PROVIDER.
  • This remains independent of chore: centralize frontier OpenAI/Anthropic chat defaults #38. Its current head merges cleanly; the combined impacted suite passed.

Security boundary

The override is absent from the evaluated agent's initial environment. Compose interpolation and local inheritance attempts were also exercised and rejected/excluded.

A shared agent/verifier container remains a process boundary, not a confidentiality boundary. Use a separate verifier environment if the model name itself must be hidden from an untrusted agent process.

Broader provider, API-key, base-URL, and fallback-model routing for native verifiers retains the behavior already present on main; this PR does not make the entire provider stack operator-immutable.

Verification

  • Full repository suite: 3848 passed, 12 skipped, 4 deselected in 4m19s
    • One explicit deselection is the unrelated fixed-port test because another process owns 127.0.0.1:18080; the other three are the repository's normal live/integration marker deselections.
  • Focused Harbor routing, status, native-isolation, public-runtime, redaction, judge, and preflight suite: 574 passed, 2 skipped
  • Current direct runner/preflight regression suite: 146 passed
  • Exhaustive automated matrices:
    • 540 routing/CLI cases
    • 270 opposite-alias resolution cases
    • 540 orchestration and persisted-run_config cases
    • 540 preflight/execution environment pairs
    • 37 baseline/concurrency/stop/retry cases covering 83 launches
    • 12 Compose boundary attacks rejected and 4 local-inheritance cases excluded
  • Real Harbor 0.13.2 + Docker 29.2.1:
    • 17/17 scored trials completed with zero errors
    • 18/18 verifier executions produced reward 1
    • Shared, separate, multi-step, concurrent, stop-on-pass, preflight, no-override, default_plus_custom, and custom_only routes passed
    • Every Oracle agent observed both judge aliases unset
    • Actual model values were absent from Harbor/container argv, container Config.Env, lock/config/job logs, and cleaned transient handoff files
  • The bundled evaluator ran against a credential-free local OpenAI-compatible server; all three judge requests used the selected model and produced reward 1.0
  • PR chore: centralize frontier OpenAI/Anthropic chat defaults #38 combined impacted suite: 1012 passed, 2 skipped
  • make lint PYTHON=.venv/bin/python and make build PYTHON=.venv/bin/python: passed
  • Ruff check/format, uv lock --check, archive integrity, and git diff --check: passed
  • Fern docs validation: 0 errors; redirect validation was skipped because Fern authentication is unavailable
  • Independent Test GURU matrix, real-Harbor, and security/fault reviews found no remaining P0/P1 defect

Not exercised: paid/live OpenAI, Anthropic, NVIDIA Build, or AWS calls; real Codex/Claude Code/OpenCode harnesses; cloud Harbor backends; or a live Windows process.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The focused Harbor routing/environment suites passed, but the documented custom_only isolation contract still has one propagation path.

@rng1995
rng1995 enabled auto-merge August 20, 2026 21:11
@rng1995
rng1995 merged commit e8fa154 into main Aug 20, 2026
23 of 24 checks passed
@rng1995
rng1995 deleted the feat/christopherk/judge-model-override branch August 20, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants