Repository navigation
harbor: bring back the hermes seam with an install that works - #1785
Merged
Merged
Conversation
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>
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. |
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>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Brings back the
hermesseam, removed after hermes-agent failed 5 of 5 installs under Harbor 0.22. Harbor 0.24 fixed that install, and it routesopenai/<model>to Hermes'sopenai-apiprovider, which honoursOPENAI_BASE_URL. Against hermes-agent's releases, Harbor 0.25's install still fails in three ways. A newInterceptHermesclass ininstall_fixes.pyfixes them, the same wayInterceptPifixes pi's install.Type of Change
What still fails with Harbor 0.25's
Hermes.installhermes version, a subcommand hermes-agent replaced with--version'version' is not a hermes command(exit 2)~/.hermes, butrunsetsHERMES_HOME=/tmp/hermesno dependency environment is committed for this installmain, whose v0.23 line does not exit after a one-shotchat -qChanges
InterceptHermes, a subclass of Harbor'sHermes:HERMES_VERSION = "v0.22.6", or the version pinned inOPENENV_HARBOR_AGENT_VERSIONS;/tmp/hermes(--hermes-home) and checks it withhermes --version;PIP_CONFIG_FILE=/dev/null UV_NO_CONFIG=1for the installer only;seams.py: ahermesseam withimport_pathpointing atInterceptHermes, and the key and base URL passed throughagent_env, so the grader'sOPENAI_API_KEYis never replaced. Statusuntested, with notes that it needs Harbor ≥ 0.24 and sendsreasoningon every call. The latter is handled by the Responses-thinking PR.test_harbor_qualification.pycompares againstlen(SEAMS)instead of a hard-coded 29, so adding a seam no longer needs that edit;test_harbor_install_fixes.pyno longer says hermes is gone.Test Plan
tests/envs/test_harbor_hermes.py:agent_env, no process env);--hermes-home /tmp/hermes,PIP_CONFIG_FILE=/dev/nulland--version.770 passed, 7 skipped.
ruff format --check,ruff checkandusort checkare 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 isuntested. 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.mdstill listshermesas validated chat-completions, from before its removal. I left it unchanged; tell me if it should go until the seam is validated.RFC Status
🤖 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
InterceptHermessubclass that patches Harbor 0.25’s install against hermes-agent:hermes --versionchecks, install into/tmp/hermesto matchHERMES_HOME, pinned release 0.22.6 (orOPENENV_HARBOR_AGENT_VERSIONS), and installer flags to ignore broken pip/uv config on task images.The seam is registered as
untestedwithopenai_responsesdialect and proxy routing viaagent_env(OPENAI_BASE_URL/ session key). Docs now count 15 validated harnesses and drophermesfrom the validated table; dialect docs move hermes fromopenai_chattoopenai_responses.Adds
tests/envs/test_harbor_hermes.pyfor seam routing and install behavior;test_harbor_qualificationuseslen(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.