Skip to content

Comments

util for enforcing env vars are set#789

Merged
willccbb merged 3 commits intomainfrom
will/enforce-keys
Jan 27, 2026
Merged

util for enforcing env vars are set#789
willccbb merged 3 commits intomainfrom
will/enforce-keys

Conversation

@willccbb
Copy link
Member

@willccbb willccbb commented Jan 26, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes


Note

Introduces a central vf.ensure_keys() and MissingKeyError for validating required environment variables and integrates them across several environments.

  • Adds verifiers.utils.config_utils with ensure_keys and MissingKeyError; re-exports in verifiers/__init__.py and documents in docs/reference.md
  • Enforces required API keys in continuation_quality, toxicity_explanation, mcp_search_env, and wiki_search via vf.ensure_keys() and switches to strict os.environ[...] access
  • Updates environment docs: adds "Required API Keys" guidance in docs/environments.md and environments/AGENTS.md; expands experimental env details; updates READMEs (wiki_search, self_reward) and minor tweaks in AGENTS.md

Written by Cursor Bugbot for commit 7f32cfa. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@willccbb willccbb merged commit 2095690 into main Jan 27, 2026
6 checks passed
mikasenghaas pushed a commit that referenced this pull request Jan 27, 2026
* util for enforcing env vars are set

* fix cmd placement

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant