Skip to content

harbor: bring back the hermes seam with an install that works - #1785

Merged
burtenshaw merged 6 commits into
openenv:mainfrom
younesbelkada:harbor/hermes-seam
Dec 1, 2026
Merged

burtenshaw merged 6 commits into
openenv:mainfrom
younesbelkada:harbor/hermes-seam

Conversation

@younesbelkada

@younesbelkada younesbelkada commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Brings back the hermes seam, removed after hermes-agent failed 5 of 5 installs under Harbor 0.22. Harbor 0.24 fixed that install, and it routes openai/<model> to Hermes's openai-api provider, which honours OPENAI_BASE_URL. Against hermes-agent's releases, Harbor 0.25's install still fails in three ways. A new InterceptHermes class in install_fixes.py fixes them, the same way InterceptPi fixes pi's install.

Type of Change

  • New feature

What still fails with Harbor 0.25's Hermes.install

Problem Symptom
Checks the install with hermes version, a subcommand hermes-agent replaced with --version 'version' is not a hermes command (exit 2)
Installs into ~/.hermes, but run sets HERMES_HOME=/tmp/hermes no dependency environment is committed for this install
Installs from main, whose v0.23 line does not exit after a one-shot chat -q each rollout runs until the agent timeout
The installer follows the task image's pip/uv config (SWE-bench Pro images point pip at a local wheel server that isn't running) the build of hermes fails

Changes

  • InterceptHermes, a subclass of Harbor's Hermes:
    • installs a pinned release, HERMES_VERSION = "v0.22.6", or the version pinned in OPENENV_HARBOR_AGENT_VERSIONS;
    • installs into /tmp/hermes (--hermes-home) and checks it with hermes --version;
    • sets PIP_CONFIG_FILE=/dev/null UV_NO_CONFIG=1 for the installer only;
    • skips the install when the image already has hermes.
  • seams.py: a hermes seam with import_path pointing at InterceptHermes, and the key and base URL passed through agent_env, so the grader's OPENAI_API_KEY is never replaced. Status untested, with notes that it needs Harbor ≥ 0.24 and sends reasoning on every call. The latter is handled by the Responses-thinking PR.
  • Tests:
    • test_harbor_qualification.py compares against len(SEAMS) instead of a hard-coded 29, so adding a seam no longer needs that edit;
    • the docstring of test_harbor_install_fixes.py no longer says hermes is gone.

Test Plan

tests/envs/test_harbor_hermes.py:

  • the seam's routing (model id, agent_env, no process env);
  • a preinstalled hermes isn't reinstalled;
  • the install command uses the pinned or configured release, --hermes-home /tmp/hermes, PIP_CONFIG_FILE=/dev/null and --version.
PYTHONPATH=src:envs uv run pytest tests/envs/test_harbor_*.py tests/envs/test_capture_*.py

770 passed, 7 skipped. ruff format --check, ruff check and usort check are clean.

These install fixes ran in production as a patch on Harbor's hermes.py (Harbor 0.25), for Hermes GRPO training and SWE-bench Pro evals. This class itself hasn't run end to end yet, which is why the seam is untested. For a validated Hermes run, also merge the Responses turn-merge PR (otherwise many runs end on a turn with no tool call) and the Responses-thinking PR.

For reviewers: the supported-harness table in docs/source/environments/harbor.md still lists hermes as validated chat-completions, from before its removal. I left it unchanged; tell me if it should go until the seam is validated.

RFC Status

  • Not required (bug fix, docs, minor refactoring)

🤖 Generated with Claude Code


Note

Medium Risk
Touches Harbor agent install/seam wiring and proxy env for a harness that is still untested end-to-end; low blast radius elsewhere but sandbox install scripts run in production rollouts.

Overview
Re-adds the hermes Harbor harness seam (previously dropped after install failures) and wires it to a new InterceptHermes subclass that patches Harbor 0.25’s install against hermes-agent: hermes --version checks, install into /tmp/hermes to match HERMES_HOME, pinned release 0.22.6 (or OPENENV_HARBOR_AGENT_VERSIONS), and installer flags to ignore broken pip/uv config on task images.

The seam is registered as untested with openai_responses dialect and proxy routing via agent_env (OPENAI_BASE_URL / session key). Docs now count 15 validated harnesses and drop hermes from the validated table; dialect docs move hermes from openai_chat to openai_responses.

Adds tests/envs/test_harbor_hermes.py for seam routing and install behavior; test_harbor_qualification uses len(SEAMS) instead of a fixed count.

Reviewed by Cursor Bugbot for commit 05262ff. Bugbot is set up for automated code reviews on this repo. Configure here.

hermes was removed after its install failed 5/5 under Harbor 0.22. Harbor 0.24
fixed that install and routes openai/<model> to Hermes's openai-api provider,
which honours OPENAI_BASE_URL. Against hermes-agent's releases Harbor 0.25's
install still fails: it checks `hermes version` (now `--version`), installs
into ~/.hermes while running with HERMES_HOME=/tmp/hermes, and installs from
main, whose v0.23 line does not exit after a one-shot `chat -q`.

InterceptHermes installs a pinned release (v0.22.6, or the version from
OPENENV_HARBOR_AGENT_VERSIONS) into /tmp/hermes, checks it with --version,
ignores the task image's pip/uv configuration while installing, and skips the
install when the image already has hermes. The seam is marked untested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

The docs for this pull request are available at https://openenv.github.io/OpenEnv/pr-preview/pr-1785/ (commit 05262ff). The preview may take a minute to update and is removed when the pull request closes.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread src/openenv/harbor/install_fixes.py Resolved
Comment thread src/openenv/harbor/install_fixes.py Resolved
burtenshaw and others added 4 commits December 1, 2026 12:25
The preinstall probe ran `hermes --version` with HERMES_HOME unset, so hermes
answered for ~/.hermes. A default install there skipped the fix although it
has no environment under /tmp/hermes, where `run` starts it ("no dependency
environment is committed for this install"), and an install in /tmp/hermes
failed the probe and was installed again. The probe and the post-install
check now run hermes with HERMES_HOME=/tmp/hermes, as `run` does.

Co-authored-by: Cursor <cursoragent@cursor.com>
OPENENV_HARBOR_AGENT_VERSIONS only accepts numeric pins such as 0.22.6, but
InterceptHermes used the pin as the git ref, and hermes-agent tags its
releases v0.22.6. A pin either failed validation (v0.22.6) or fetched
install.sh from a ref that 404s (0.22.6). HERMES_VERSION is now numeric like
every other pin, and the install uses the tag v<version>.

Co-authored-by: Cursor <cursoragent@cursor.com>
The supported-harness table still listed hermes as validated over
chat-completions, from before the seam was removed. The seam is back as
untested, and through `--provider openai-api` Hermes talks to the proxy over
the Responses API (`transport="codex_responses"` in hermes-agent v0.22.6).
Untested seams are counted under the table rather than listed in it, so hermes
moves there (15 validated, 15 untested), and the dialect table lists it under
`openai_responses`.

Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 222fe2f. Configure here.

Comment thread src/openenv/harbor/install_fixes.py Resolved
Harbor's setup runs get_version_command after install with no extra env, so for an install in /tmp/hermes it recorded the version as unknown. With HERMES_HOME in the command itself, the skip check and Harbor's probe both run hermes the way `run` does.

Co-authored-by: Cursor <cursoragent@cursor.com>
@burtenshaw
burtenshaw merged commit a510e9e into openenv:main Dec 1, 2026
18 checks passed
@younesbelkada
younesbelkada deleted the harbor/hermes-seam branch December 1, 2026 12:41
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