feat(v1): add trainable Prime Agent harness - #2355
Draft
hallerite wants to merge 1 commit into
Draft
Conversation
|
|
||
|
|
||
| class PrimeAgentHarnessConfig(HarnessConfig): | ||
| version: str = Field(default="0.7.3", pattern=r"^[A-Za-z0-9._+-]+$") |
There was a problem hiding this comment.
🟡 Medium prime_agent/harness.py:40
version=".." resolves the install prefix to /var/tmp, so _bin() later executes /var/tmp/bin/prime-agent outside the version-specific cache and can collide with other runtime tooling. The pattern allows dot-only values; require a version-like alphanumeric prefix before interpolating version into these paths.
Suggested change
| version: str = Field(default="0.7.3", pattern=r"^[A-Za-z0-9._+-]+$") | |
| version: str = Field(default="0.7.3", pattern=r"^[A-Za-z0-9][A-Za-z0-9._+-]*$") |
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @verifiers/v1/harnesses/prime_agent/harness.py around line 40:
`version=".."` resolves the install prefix to `/var/tmp`, so `_bin()` later executes `/var/tmp/bin/prime-agent` outside the version-specific cache and can collide with other runtime tooling. The pattern allows dot-only values; require a version-like alphanumeric prefix before interpolating `version` into these paths.
hallerite
force-pushed
the
codex/prime-agent-harness
branch
from
August 15, 2026 01:47
6f9ecc5 to
f053b5b
Compare
hallerite
changed the base branch from
main
to
codex/training-streaming-harnesses
August 15, 2026 01:47
| [ -x "$prefix/bin/prime-agent" ] && exit 0 | ||
| export NPM_CONFIG_PREFIX="$prefix" | ||
| export PRIME_AGENT_BOOTSTRAP_KERNEL_ON_INSTALL=0 | ||
| curl -fsSL "$VF_PRIME_AGENT_INSTALL_URL" | sh |
There was a problem hiding this comment.
🟠 High prime_agent/harness.py:35
A failed download is treated as a successful install: curl exits nonzero, but the downstream sh exits successfully on empty input, so setup continues and only fails later when the wrapper executes the missing binary. Download the installer first so set -e propagates curl failures.
Suggested change
| curl -fsSL "$VF_PRIME_AGENT_INSTALL_URL" | sh | |
| curl -fsSL "$VF_PRIME_AGENT_INSTALL_URL" -o "$VF_PRIME_AGENT_DIR/.install.sh" | |
| sh "$VF_PRIME_AGENT_DIR/.install.sh" | |
| rm -f "$VF_PRIME_AGENT_DIR/.install.sh" |
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @verifiers/v1/harnesses/prime_agent/harness.py around line 35:
A failed download is treated as a successful install: `curl` exits nonzero, but the downstream `sh` exits successfully on empty input, so `setup` continues and only fails later when the wrapper executes the missing binary. Download the installer first so `set -e` propagates `curl` failures.
hallerite
force-pushed
the
codex/training-streaming-harnesses
branch
from
August 15, 2026 10:39
2f63e73 to
e46f3e2
Compare
hallerite
force-pushed
the
codex/prime-agent-harness
branch
from
August 15, 2026 10:39
f053b5b to
2eed65b
Compare
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
Why
Prime Agent's native model API uses streaming Chat Completions. The harness itself can stay small because the generic renderer-backed streaming bridge now lives in the parent PR, #2369. This PR contains only the Prime Agent integration.
With Prime Agent #1378, ACP-provided MCP tools are translated into session-scoped Python programs by Prime Agent itself. Verifiers supplies the environment's MCP URLs while Prime Agent owns its native tool representation.
Stack and dependency
0.7.3; align the pin with the release containing chore(deps): bump gitpython from 3.1.47 to 3.1.50 in /packages/verifiers-rl #1378 before mergeValidation
uv run pytest tests/v1 -m 'not e2e'— 70 passedThe restacked commit is signed with the contributor's verified SSH signing key. Local push hooks were skipped during the ancestry-only rewrite to avoid heavy local computation; GitHub CI is authoritative for the new commit.