Repository navigation
Conversation
…sions The add-benchmark skill taught the agent's /run path as the default: native benchmarks paired with simple_agent and no Environment Server, external libraries wrapped in run(), a custom run() loop for multi-turn feedback, smokes with --agent and flat rows, and the deprecated harbor_agent as a pattern. - SKILL.md: choose between Gym JSONL rows and Harbor task folders as equal formats; single_agent_turn with a typed taskset is preferred, single_agent_turn_legacy with flat rows is accepted, and a legacy_agent relay is not allowed in new work; replace the relay gym env init generates; smoke by collating the example taskset; external libraries run inside an agent session; math_with_code as the session-hooks reference. - references/patterns.md: YAML pattern with single_agent_turn, tasksets and environment_server_routes; multi-turn feedback as a tool or an Environment Server loop instead of a custom run(); the agent-session hooks for external libraries; think-tag parsing points to the core converter instead of harbor_agent. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
Contributor
Author
|
/ok to test 378e6e5 |
This branch had an error being deployed
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.
What changed and why
The
add-benchmarkagent skill taught the agent's/runpath as the default for new benchmarks:SKILL.mdpaired native benchmarks withsimple_agentand no Environment Server, told external benchmarks to wrap the library in the agent's/run, smoke-tested with--agent ..._simple_agenton flat rows, and listed "/runendpoint must be async" as a constraint. Only the coding-harness note pointed to session harnesses.references/patterns.mdshowed a YAML pattern with no Environment Server, a custom multi-turn agent whoserun()seeds, generates, verifies and retries, an external library wrapped inrun(), and the deprecatedharbor_agentas the think-tag pattern.On
main, rollout collection reaches an agent only through an Environment Server.single_agent_turnseeds the resources session with a typedResourcesSeedSessionRequest, opens the agent session, runs the agent turn, verifies and closes (single_agent_turn/app.py L420-L451, L639-L668). Rows reach it as typed tasks throughtasksetandenvironment_server_routes;single_agent_turn_legacyruns the same steps for flat rows.Changes:
SKILL.mdsingle_agent_turnwith a typedtasksetis preferred,single_agent_turn_legacywith flat rows is accepted, and alegacy_agentrelay is not for new work.gym env initstill generates that relay, so Step 4 says to replace it.add-harnessskill has the contract.nemo_user_sim);proof_refinement_agent, which loops in/run, is no longer the suggested pattern.--agent.resources_servers/math_with_code, whose tests callcheck_resources_session_contract, is the reference for the session hooks.references/patterns.mdsingle_agent_turn, atasksetper dataset (separate tasksets for the train and example splits), andenvironment_server_routes; key rules for collating examples,single_agent_turn_legacy, and replacing the scaffold's relay./seed_sessionor/verifyitself; multi-turn feedback as a tool or an Environment Server loop instead of a customrun()._seed_agent_session_state(), the session branch ofresponses(),_close_agent_session_state()), assimple_agentimplements them._parse_think_tagsinnemo_gym/models/chat_completions_converter.pyinstead ofharbor_agent.The companion PR for the environment tutorials is #6031. The two were split to keep each diff reviewable.
No issue: these are corrections of agent guidance that disagrees with the code on
main.Validation
example_single_tool_callstanding in formy_benchmark, againstmainatb02f8d0:gym env validatereports "Config is valid" (only the model URL unset);gym dataset collate --mode example_validationwrites the example rows as typed tasks under tasksetmy_benchmark_example.pre-commit run --files .agents/skills/add-benchmark/SKILL.md .agents/skills/add-benchmark/references/patterns.md: passed.mainthatproof_refinement_agentserves no agent sessions, thatsimple_agentimplements both agent-session hooks, and thatnemo_user_simis an Environment Server.Rollout evidence
N/A: docs-only. No environment, agent, or verifier behavior changes, so no model run is needed.
Overlapping open PRs
Left unchanged
gym env initstill generates thelegacy_agentrelay (nemo_gym/environment/scaffold.py); changing the scaffold is code and belongs in its own PR.-Ssigning disagrees withAGENTS.md(optional); it is outside this change.🤖 Generated with Claude Code