Skip to content

Read public WebArena site logins only from the repository env file #159

Closed

Description

@lanyue-llk

Problem

AGENTS.md says evaluation credentials come only from the repository .env. Site logins in src/harness/environments/webarena/topology.py follow that after #141, through harness.env_file.repository_credential.

The public WebArena replay path does not. src/harness/trajectory_replay/public_webarena/webarena_environment.py reads the variables named by credentials_env from os.environ. load_runtime_env in public_webarena/config.py fills them with setdefault, so an exported value overrides the file. This predates #141.

Why it is separate from #141

It is not a one-line swap:

  • credentials_env accepts any variable name from the runtime configuration.
  • The CLI's --env-file can select a file other than the repository .env, and Web Fetch rejects credentials from such a file while this path allows them.
  • Existing tests set those variables through the environment.

Suggested change

Read these logins through repository_credential or an equivalent repository-only rule, decide what --env-file means for credentials on this path, and update the tests. Add a test that an exported value cannot change the login used.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions