Skip to content

build(tier3): upgrade Harbor to 0.25.0 and preserve runtime contracts - #464

Merged
rng1995 merged 5 commits into
mainfrom
naren/harbor-0.25.0
Nov 12, 2026
Merged

rng1995 merged 5 commits into
mainfrom
naren/harbor-0.25.0

Conversation

@rng1995

@rng1995 rng1995 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Upgrade the exact Tier 3 dependency to harbor[gke]==0.25.0 and refresh only Harbor in the lockfile. Adapt SkillEvaluator's execution, credential routing, prompt transport, and output collection to the new contracts while preserving provider configuration and evidence.

Before / After

Area Before: 0.24.0 assumptions After: 0.25.0 integration
Dependency and sandbox options 0.24.0 pin and constructor registry Exact 0.25.0 pin, installed-source constructor parity, updated installation hints/docs
Runtime policy Older constructor controls Reserve new automatic mounts and host Compose environment forwarding; retain the existing public backend surface
Local logs and verifier output Broad mounted capability was sufficient Report actual mounted paths so Harbor retains agent/user-agent logs, rewards, and verifier stdout
Local artifacts Output-path assumptions Private staging separate from published destinations; preserve source files and per-step snapshots during collection
Claude prompts Harbor-prefixed transport variable Validate the new UUID variable, preserve instruction bytes, and remove transport variables before the child starts
Codex gateways Older model/auth/config resolution Keep full model IDs, active Responses URL and credential variable, plus unrelated user provider/MCP settings
Claude Vertex Older model resolution Preserve native Vertex model routing through the new endpoint checks

Verification

Final revision 43c631a6: all 23 executed checks passed; four conditional jobs were skipped. The complete CI run succeeded.

Final-head CI verification Result
Python 3.12, full suite with coverage 27,918 passed, 81 skipped, 16 deselected; 89% coverage
Python 3.13, full suite 27,918 passed, 81 skipped
Python 3.14, full suite 27,918 passed, 81 skipped
macOS Tier 3 contract and progress 1,029 passed, 6 skipped, 2 deselected
Windows Tier 2 4,017 passed, 77 skipped
Other platform, package and security checks Passed, including macOS Tier 2, native Windows, RHEL 8, MCP SDK 1/2, HTML parser compatibility, DCO, Gitleaks, dependency review and CodeQL

The ready-for-review NVSkills requirement check passed; its dispatch job was not applicable and was skipped. Fern validation reported 0 errors, 1 existing warning.

Focused verification Actual result
Final agent, gateway, credential-alias and shell/model checks 390 passed; all 346 gateway tests passed again after the latest main merge
Local role-log, verifier and artifact lifecycle 14 passed; reproduced the artifact failures before fixing them
Claude instruction transport and boundaries 28 passed, including actual Harbor to a controlled local executable
Constructor, version, install hints and policy 120 passed, 1 skipped
Gateway/Hermes lifecycle test doubles 389 passed; retain UID/GID, root ownership, permission and missing-session assertions
Deterministic Docker/local integration 13 passed on both 0.24.0 and 0.25.0, with identical test IDs
Actual non-root Docker lifecycle Image UID/GID 1000:1001: agent home 0700; explicit configured user: config/auth owned by that user, 0600, readable, and removed by cleanup. Only model invocation stubbed; no inference calls
Project checks Ruff lint, formatting for all 13 changed Python files, diff, lock, wheel/sdist build and OSS boundary checks passed; Fern: 0 errors, 1 existing warning

The integration cases cover real Docker sidecars and secret redaction, interrupted execution, local verifier/shared/step inputs, and timeout recovery with a genuinely wrong scored baseline.

Actual Codex and Claude Code runs

Used Harbor 0.25.0, actual Codex 0.161.0 and Claude Code 2.1.292 CLIs, routed through NVIDIA Build bridges to nvidia/nemotron-3.5-lightning-30b-a3b. Host: macOS arm64; Docker Engine 29.8.1. Successful Docker smokes used a preinstalled Linux arm64 CLI image, sha256:94074ff058441f8839fad198d65fae9dd6f3633ed9972b6614cb3f60f73742cf.

Run Observed outcome
Native custom grader, bounded availability control, both agents and both arms 4/4 scored, no runtime exceptions, CLI exit 0; complete HTML and retained artifacts
Generated/default grading, positive lookup plus arithmetic negative control, both agents and both arms 8/8 trials produced scores without runtime exceptions; a workspace switch interrupted report generation, and the run correctly remains incomplete
Native custom grader with the original open-ended control 3/4 scored, CLI exit 1; both with-skill arms scored 1, Claude's baseline scored 0, and Codex's baseline timeout stayed unscored
Extra agent-only runtime preflight Both actual runtimes started successfully
Local runs Claude completed real scored tasks; Codex authentication failure reproduced with the same pinned CLI/model on clean Harbor 0.24.0

The bounded run scored Claude 1/0 and Codex 0/0 for with/without skill. Codex read the skill and ran its script successfully but announced an answer-file write without executing it; the file-based grader correctly returned zero. These are functional smokes with a provisional dataset, not a model-performance benchmark.

Successful native command:

skillevaluator tier3 evaluate /tmp/skillevaluator-harbor025-evidence/native/lookup-code \
  --agents codex,claude-code --model nvidia/nemotron-3.5-lightning-30b-a3b \
  --env-mode docker --custom-dockerfile-mode preserve --n-attempts 1 \
  --n-concurrent 1 --max-agents 2 --no-stop-on-pass --harbor-keep-jobs \
  --results-dir /tmp/skillevaluator-harbor025-evidence/native-docker-bounded \
  --progress plain --progress-interval 30

Run ID: 20261112_175704_82742_1c6521278416. The controlled task checks for the staged skill, writes UNAVAILABLE immediately when absent, and uses a real custom grader that checks /workspace/answer.txt for ZX-731.

Saved results and viewer

  • 12 offline history/compare/view/export checks passed across the completed successful and failed native runs; JSON/CSV/Markdown exports matched, with source artifact hashes unchanged.
  • Headless Harbor viewer: 27 HTTP 200 responses covering UI/assets, jobs/tasks/trials, trajectory, verifier output, files and artifacts. Its server was stopped intentionally after testing.
  • Interrupted runs remained incomplete; history retained unavailable lift and compare/view rejected missing aggregates.

Baseline and practical limits

  • The same local Codex Unauthorized/Incorrect API key behavior and health-only bridge logs occur on 0.24.0 and 0.25.0.
  • Actual execution on both 0.24.0 and 0.25.0 reproduced scoped environment handoff exit 126 for a non-root image USER with unset default_user. Explicit default_user="1000:1001" passed the secure lifecycle check. This existing limitation remains.
  • Initial cold Docker attempts retained TLS/NVM download/setup failures and default-model inference errors. The completed smokes use preinstalled pinned CLIs and a paid-probe-verified explicit model.
  • Managed backends have constructor, option and security contract coverage; live backend runs covered Docker and local.
Local full-suite attempts under host memory/I/O pressure

The 0.24 comparison was interrupted after 9,795 passed, 57 failed, 41 skipped; the 0.25 attempt after 6,215 passed, 13 failed, 39 skipped. Existing deadline-sensitive local/preflight failures were observed on the baseline, and the upgrade attempt included the subsequently fixed partial-agent shell helper case. The post-merge focused recheck completed with 772 passed, 6 failed, 2 skipped, 2 deselected; all six failures were deadline-sensitive local subprocess cases, four already present in the 0.24 baseline results. The remaining two timeout-output cases passed on both 0.24.0 and 0.25.0 in sequential isolated reruns (2 passed per version); their earlier failures did not reproduce, consistent with a timing/load issue but without proving its cause. These local attempts are not reported as green; complete final-revision CI results are listed above.

Independent review

Includes upstream main through 487910ef, merged without conflicts. Repeated all 12 saved-result CLI checks on that merged tree; source and retained artifact hashes stayed unchanged. Further independent reviews found no issues with the final credential fix or either merged reporting/metrics/MCP/CI contract update.

Three independent subagent reviews covered runtime compatibility, regression coverage, and the final implementation. Both actionable findings were reproduced, fixed with regression tests, replied to, and resolved:

Release impact

  • Read the contributing guidelines; all commits carry DCO sign-off.
  • Added focused behavior regressions and updated current user documentation.
  • Updated CHANGELOG.md.
  • No credentials, private datasets, generated reports or transcripts committed.

@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.

Independent subagent review found a local artifact boundary regression; the inline finding below is being addressed with real Harbor lifecycle regressions.

@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.

Final independent subagent review reproduced an additional 0.25 compatibility regression with an existing custom Codex provider. A focused regression and fix follow.

@rng1995
rng1995 marked this pull request as ready for review November 12, 2026 19:04
@rng1995
rng1995 merged commit a72a611 into main Nov 12, 2026
29 checks passed
@rng1995
rng1995 deleted the naren/harbor-0.25.0 branch November 12, 2026 20:23

@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.

Post-merge review: three findings are addressed by follow-up #472. Regressions were reproduced with controlled local commands, real Harbor models/staging and fake credential names; no external MCP requests or inference calls were made. Inline threads will be resolved with fix/test references after verification.

Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved
rng1995 added a commit that referenced this pull request Nov 12, 2026
Brings in #464 (Harbor 0.25.0) and #466. The only conflict was docs/cli-reference.mdx: keep main's Harbor 0.25.0 --env-mode and --environment-kwarg rows, and this PR's --backend row between them.

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