Repository navigation
feat: add legacy environment servers - #3490
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
ec31446 to
ee067a8
Compare
ae7b48b to
3685aff
Compare
1042f7a to
4ce672a
Compare
1144d22 to
2d4fcbf
Compare
2d4fcbf to
cfca63f
Compare
cfca63f to
4620c91
Compare
4620c91 to
5cd48fd
Compare
|
Could we generate the Environment Server bindings at startup instead of updating every YAML? For explicitly supported agent/resources pairings, select the native lifecycle; otherwise use I made a small offline demo to illustrate this. It isn’t wired into runtime yet. Just an alternative to consider; I’ll leave the final approach to you. |
I considered this but concluded that I'd rather update all configs. I want this to be fully transparent to the user - if we generate this part of the config at runtime I think this might be confusing plus it will take them longer to migrate. I want them to have an easy way to update (thus the script) but I don't want this to happen auto-magically. This will get especially confusing once we start updating the agents and folks will actually start swapping them. |
What does this PR do?
Adds the generic raw Agent
/runcompatibility Environment Server, aggregation forwarding, generated configs, agent swapping, environment initialization, migration tooling, and compatibility tests. It also retains the single-agent-turn projection adapter used by the proof environment.Single-agent interaction flow
This diagram shows the built-in single-agent use case. Other Environment Server protocols may coordinate different participants and use different request, result, and lifecycle flows.
sequenceDiagram participant C as Rollout collector participant E as Environment Server participant R as Task / Resources Server participant A as Agent Server participant M as Model Server participant S as Task sandbox C->>E: POST /run E->>R: Seed task session R-->>E: Tool access and optional SandboxAccess E->>A: Seed agent session A->>S: Connect as borrower when supplied E->>A: Invoke /v1/responses A->>M: Model and capture requests A-->>E: Agent response E->>A: Close agent session E->>R: Verify response E->>R: Close task session E-->>C: Episode resultThe Environment Server coordinates ordering and the final result. Agent and Task/Resources Servers retain ownership of the state and resources they create.
This is part 11 of 13 in the Environment Server stack. Previous: #3489. Next: #3491.
Validation
uv run pytest tests/unit_tests/test_benchmarks.py tests/unit_tests/test_environment_validation.py tests/unit_tests/test_global_config.py tests/unit_tests/test_rollout_collection.py -qRollouts
See the final PR for end-to-end rollout evidence.
Compatibility and benchmark impact
Existing agents are fronted without changing their request or result body.