Skip to content

Benchmark problem ID leaks into agent container through environment variables and /logs #905

Closed

Description

@munimthahmid

During a GPT-5.5 agent run on calico_route_reflector_label_drift_hotel_reservation, the agent submitted an incorrect diagnosis and received a score of 0.0. It then searched /logs and read:

Problem ID (harness): calico_route_reflector_label_drift_hotel_reservation

Immediately afterward, the agent said:

The harness identifies this as a Calico route-reflector label drift scenario, which matches the symptoms: pods are Running, Services resolve, but pod-to-pod streams and MongoDB handshakes fail. I’m inspecting Calico BGP peer selectors and node labels now so the fix targets the routing control plane instead of cycling application pods.

It then inspected the relevant Calico resources and successfully mitigated the problem.

Although PR #844 removed the /get_problem HTTP endpoint, the problem ID is still passed into the agent container through SREGYM_PROBLEM_ID and written to agent-readable logs.
The agent can therefore obtain it from either the environment or /logs.

A correct fix should keep the real problem ID entirely in the host harness. Agent containers should use opaque run IDs or generic artifact names, with the host associating artifacts with the real problem after the agent exits.

Activity

  1. added
    bug
    on Jun 22, 2026
  2. added theissue type on Jun 22, 2026
  3. tianyin commented on Jun 22, 2026

    @tianyin
    Contributor

    OMG; this really need to be fixed urgently.

  4. munimthahmid commented on Jun 22, 2026

    @munimthahmid
    CollaboratorAuthor

    I can take this

  5. self-assigned this
    on Jun 22, 2026
  6. tianyin commented on Jun 22, 2026

    @tianyin
    Contributor

    No we are not even aware of the problem.

    Thank you so much @munimthahmid

  7. Saadmrp1038 commented on Jun 23, 2026

    @Saadmrp1038
    Collaborator

    @munimthahmid Nice find! This is why I really prefer checking the agent traces :)
    I had plans to automate the log analyze part to detect these kind of issues plus to summarize the agent behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions