Repository navigation
fix(webarena): keep site credentials_env in the Rainbond slice runtime config - #166
Merged
Merged
Conversation
…e config RainbondSlicePool.runtime_config rebuilt each stateful site as URLs only, so a public WebArena run on a slice stopped at the login preflight. Name each site's login variables from the topology registry, so generated, reset and released slice configs all carry them.
lanyue-llk
commented
Nov 3, 2026
lanyue-llk
left a comment
Contributor
Author
There was a problem hiding this comment.
Independent review, round 1
Reviewed head 675ef97b against base a239d1cc. No defects found. I checked the following by reading the code and running tests.
Fix
runtime_confignow namescredentials_envfor each stateful component.site_credential_namesreturns a copy, so a caller cannot change the registry.- Components are limited to
STATEFUL_SITES, and all four have registry names, so the new lookup cannot raise for a valid receipt. - All config writers (provision, scale, release,
persist_runtime_config) and the overlay inWebArenaEnvironment.__init__go through this one method. - Only names are persisted; no credential values are written. The new test asserts this for the reset path.
Registry names replacing other names
- The issue says "keep", while the PR replaces any
credentials_envfrom a hand-edited config orbase_configwith the registry names. The generated config never held these names, and such a value was already dropped before this change. - The PR body and the protocol doc both state this, so I do not count it as a defect.
Redaction and preflight
- A slice now names all four sites, including ones a run may not use.
redact_login_passwordshandles unset variables: I ranredact_site_passwordswith empty and whitespace values and it still redacted the real password. verify_runtimeonly requires credentials for the sites in the run's tasks, so a partly filled.envdoes not stop an unrelated run.
Other config readers
- The official evaluator:
WebArenaVerifiedConfig.model_validateaccepts a config withcredentials_env,image_lockandrainbond_slice, and ignores the extra fields. I ran this against the locked package. diagnostics.site_urlsreads only URLs. Its--verify-loginpath usesWebArenaEnvironment.- No check I found hashes the runtime config. Qualification freezes only the suite and scope, and the receipt binds
pool_config_sha256.
Curated track
RainbondSlicePoolis used only byrainbond.pyitself andpublic_webarena/webarena_environment.py. The manage script reaches it throughpool_main.- The curated track reads its own site maps through
load_remote_sites, so it is unaffected.
Tests
- The
_login_credentialsstub is gone. The fake pool subclasses the real one, soruntime_configandpersist_runtime_configare real. - Negative control: with the
credentials_envline removed, exactly the three tests the PR names fail. - Lint gate: passed.
tests/trajectory_replay/public_webarena,tests/test_manage_webarena_rainbond_pool.py,tests/environments/test_webarena_topology.pyandtests/test_golden_reports.py: 769 passed, 3 skipped. Golden route hashes are unchanged.
Scope and rules
Closes #164is accurate: the fix, the real-runtime_configtest and the stub removal are all present.- There are no aliases or parallel implementations,
topology.jsonis unchanged, and no hash-bound evidence or private data is touched.
CI on this head
All checks pass: Tests and static checks, Installation and packaging, Rendered reference and report checks, Python 3.11, OCR.
Not verified: no real Rainbond slice was run, as the PR also states.
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.
Issues
Closes #164
Summary
RainbondSlicePool.runtime_configrebuilt each stateful site as{"urls": [...]}, so a public WebArena run on a slice stopped at theverify_runtimelogin preflight.runtime_confignow names each stateful site's login variables through a newsite_credential_namesin the topology registry. It holds names only, never values.webarena.config.jsonnever had these names to keep, and pool reset or release rewrites that file. Using the registry covers provisioned, reset and released configs. Slices that already exist pick it up whenWebArenaEnvironmentoverlays the runtime config on load.redact_login_passwordsreads the same names, so on a slice it had no passwords to redact from saved error text.credentials_envhand-edited into a slice config, or passed asbase_config, is replaced by the registry names. That matches the earlier behaviour, where such a value was dropped, and an unset registry variable stops the preflight by name. The protocol doc states this.Curated track: no change. Only
public_webarena/webarena_environment.pyandpool_main(throughscripts/manage_webarena_rainbond_pool.py) useRainbondSlicePool. The curated track readslex_webarena_remote_sites/1site maps throughload_remote_sites, which do not come fromruntime_config.Official evaluator: it reads the same JSON. I checked that its
EnvironmentConfigaccepts and ignorescredentials_env, as it already does for the non-slice example config.Tests: the fake pool in
test_rainbond_slice_verification_and_reset_replace_the_complete_applicationnow subclasses the real pool, soruntime_configandpersist_runtime_configare real and only the API-facing methods are faked. The_login_credentialsstub is gone. The test also covers the login after reset, redaction, and that no value reaches the persisted file. A new test covers the preflight naming an unset variable.No real Rainbond slice was run.
Test plan
ruff checkwith both configurations): passed.pytest tests/trajectory_replay/public_webarena tests/test_manage_webarena_rainbond_pool.py tests/environments/test_webarena_topology.py tests/test_golden_reports.py: 769 passed, 3 skipped. Golden route hashes are unchanged.credentials_envline removed fromruntime_config, the three affected tests fail (test_rainbond_slice_verification_and_reset_replace_the_complete_application,test_rainbond_slice_preflight_names_an_unset_login,test_new_slice_runtime_config_contains_four_unique_sites_and_two_shared_sites).