Skip to content

Comments

fix: Resolve TOML config field placement error for prime-rl (#607)#934

Open
gspeter-max wants to merge 1 commit intoPrimeIntellect-ai:mainfrom
gspeter-max:verifiersContribution/issue_#607
Open

fix: Resolve TOML config field placement error for prime-rl (#607)#934
gspeter-max wants to merge 1 commit intoPrimeIntellect-ai:mainfrom
gspeter-max:verifiersContribution/issue_#607

Conversation

@gspeter-max
Copy link

@gspeter-max gspeter-max commented Feb 19, 2026

Summary

Fixes #607 - Resolves Pydantic validation error when running uv run prime-rl @ configs/prime-rl/wiki-search.toml

Problem

When running the prime-rl trainer with the wiki-search config, users encountered:

pydantic_core._pydantic_core.ValidationError: 2 validation errors for RLConfig
orchestrator.mask_truncated_completions
  Extra inputs are not permitted [type=extra_forbidden]
orchestrator.zero_truncated_completions
  Extra inputs are not permitted [type=extra_forbidden]

The config file had mask_truncated_completions and zero_truncated_completions nested under the [orchestrator] section, but the prime-rl package's RLConfig expects these fields at the top level of the TOML config.

Solution

Moved the two fields from the [orchestrator] section to the top level of configs/local/prime-rl/wiki-search.toml, aligning with the prime-rl package's RLConfig dataclass structure.

Changes

  • File Modified: configs/local/prime-rl/wiki-search.toml
  • Change: Moved mask_truncated_completions and zero_truncated_completions from [orchestrator] section to top level
  • Impact: Resolves Pydantic validation errors, enabling users to run prime-rl with this config

Verification

  • ✅ Config loads without TOML syntax errors
  • ✅ Both fields are correctly at top level
  • ✅ Fields removed from orchestrator section
  • ✅ All other config files (23 total) verified - no other files affected

Test Plan

After this fix, users can successfully run:

uv run prime-rl configs/prime-rl/wiki-search.toml

The config structure now matches the prime-rl package's RLConfig expectations.


🤖 Generated with Claude Code


Note

Low Risk
Config-only change that just rehomes two fields; low risk aside from potential behavior differences if another loader previously relied on the old nesting.

Overview
Fixes a config schema/validation issue in configs/local/prime-rl/wiki-search.toml by relocating mask_truncated_completions and zero_truncated_completions from the [orchestrator] table to the top level so they match the expected RLConfig shape.

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

ROOT CAUSE:
The config file had mask_truncated_completions and zero_truncated_completions
nested under the [orchestrator] section, but the prime-rl package's RLConfig
Pydantic model expects these fields at the top level of the TOML config.

This caused Pydantic validation errors when running:
  uv run prime-rl @ configs/prime-rl/wiki-search.toml

Error: "Extra inputs are not permitted" for orchestrator.mask_truncated_completions
and orchestrator.zero_truncated_completions

CHANGES:
- Moved mask_truncated_completions from [orchestrator] to top level (line 6)
- Moved zero_truncated_completions from [orchestrator] to top level (line 7)
- These fields now appear after max_async_level and before the [model] section

IMPACT:
- Fixes Pydantic validation error when running prime-rl with this config
- Aligns config structure with prime-rl package's RLConfig dataclass expectations
- Enables users to run the documented example command successfully

TECHNICAL NOTES:
- The prime-rl package (external repo: PrimeIntellect-ai/prime-rl) defines
  RLConfig as a dataclass with these fields at the top level
- The [orchestrator] section in the TOML maps to a nested OrchestratorConfig
  object, which does not include these two boolean fields
- Other configs in configs/rl/ already use the correct structure

FILES MODIFIED:
- configs/local/prime-rl/wiki-search.toml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

Error on the starting example uv run prime-rl @ configs/prime-rl/wiki-search.toml

3 participants