Repository navigation
Remove GET /get_problem; pass problem_id via SREGYM_PROBLEM_ID (Fixes #788) - #844
Merged
Merged
Conversation
Saadmrp1038
self-requested a review
June 1, 2026 15:43
Saadmrp1038
approved these changes
Jun 5, 2026
Collaborator
|
Works Great! |
Contributor
Author
|
Thanks! |
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.
Remove
/get_problemconductor endpointFixes #788
See also #788 — Conductor API exposes
/get_problem.Why this change
The conductor exposed
GET /get_problem, which returns the canonicalproblem_id(for examplenode_conntrack_exhaustion_hotel_reservation). That route appeared in/openapi.json, so eval agents could discover it and call it directly. The id string often reveals the fault, which undermines the benchmark.This PR removes the endpoint. Client drivers still need
problem_idfor log and artifact naming only. The orchestrator already knows the id when it starts a run, so we pass it to drivers viaSREGYM_PROBLEM_IDinstead of the public HTTP API.What changed
GET /get_problemfrom[sregym/conductor/conductor_api.py](sregym/conductor/conductor_api.py).[clients/harness/problem_id.py](clients/harness/problem_id.py)withresolve_problem_id():--problem-idif provided (standalone driver runs)SREGYM_PROBLEM_IDenv var (set bymain.py, forwarded into containers byAgentLauncher)"unknown"with a warning[main.py](main.py): before launching an agent, setSREGYM_PROBLEM_ID; clear env after agent cleanup.[sregym/agent_launcher.py](sregym/agent_launcher.py): passSREGYM_PROBLEM_IDinto container env when starting isolated agents (stratus, codex, claudecode, etc.).--problem-idadded), tierzero, stratus, demo.benchmark_current_problemfrom[clients/stratus/configs/langgraph_tool_configs.py](clients/stratus/configs/langgraph_tool_configs.py).Unchanged: grading flow, agent prompts (
/get_apponly),/status,/submit, and submit MCP.How it works now
Standalone driver runs can still pass
--problem-id <id>when not launched viamain.py.Testing performed
Environment: cluster verification healthy (kind cluster, 106 problems in registry, LLM judge configured).
Static and unit-level
grep '/get_problem'in*.pyresolve_problem_idviaSREGYM_PROBLEM_IDAGENT_LOGS_DIR=/logswithout env returnsunknown(notlogs)--problem-idoverrides envclaudecode.driver --helpshows--problem-idAPI routing (FastAPI TestClient)
/openapi.jsonomits/get_problemGET /get_problemGET /get_app,/statuswithout conductorget_app/status200,get_appbody has noproblem_idLive benchmark:
debugagentKUBECONFIG="$SREGYM_KUBECONFIG" uv run python main.py --agent debug --problem service_port_conflict_hotel_reservation --n-attempts 1 --agent-timeout 90results/0601_1119/debug/...)curl http://127.0.0.1:8000/get_problemduring run/get_app,/status,/submitonly; no/get_problemget_appduring runLive benchmark:
stratusagent (container)KUBECONFIG="$SREGYM_KUBECONFIG" uv run python main.py --agent stratus --problem service_port_conflict_hotel_reservation --model gpt-5 --n-attempts 1Run directory:
results/0601_1242/stratus/service_port_conflict_hotel_reservation/run_1/SREGYM_PROBLEM_IDpassed into containerSREGYM_PROBLEM_ID=service_port_conflict_hotel_reservationondocker run)driver.log)get_problemHTTP calls in run artifacts/get_problemat driver startup (old image)Not Found(endpoint removed as intended)Note: The agent Docker image bundles driver code at build time. If the image was built before this branch, the container may still log a one-time failure from the removed
get_curr_problempath even though the benchmark proceeds. Rebuild to pick up the updated stratus driver:KUBECONFIG="$SREGYM_KUBECONFIG" uv run python main.py --agent stratus --problem service_port_conflict_hotel_reservation --model gpt-5 --n-attempts 1 --force-buildAfter rebuild, expect
Problem ID (harness): service_port_conflict_hotel_reservationindriver.logand CSV/trajectory filenames using that id (noterrororlogs).Live benchmark:
codexagent (container, rebuilt image)sregym-agent-base:latest)SREGYM_PROBLEM_IDin containerservice_port_conflict_hotel_reservation)Problem ID (harness): service_port_conflict_hotel_reservationindriver.logget_problemindriver.logproblem_idpath (noterror/logs)driver.rc)