Backtestspydanticrun-20260929-204949#13687
populate_by_name (and implicit validate_by_name when validate_by_alias=False) is ignored by @validate_call
Better
Our patch was judged better than the merged fix.
In this judgment, Patch A = our agent, Patch B = the merged fix.
Both patches address the root cause—that the arguments schema embeds a raw `validate_by_name` value that bypasses the backwards-compat mapping done in `core_config()`. Patch B fixes it narrowly by reading the value from `core_config()` at the two embedding sites (good DRY: single source of truth for the mapping). Patch A adds a `validate_by_name` property on ConfigWrapper that centralizes the three rules (explicit flag, populate_by_name alias, and the #11503 implicit validate_by_alias=False→True), so every reader of `.validate_by_name` gets the correct value. Both resolve the primary populate_by_name scenario. The deciding factors are tests and scope. The issue explicitly calls out a 'worse variant': `validate_by_alias=False` making the parameter impossible to provide. Patch A adds a dedicated `test_validate_by_alias_false` covering exactly that scenario (plus a thorough populate_by_name matrix), so both reported behaviors are pinned. Patch B only tests `populate_by_name`; it never adds a test for the validate_by_alias=False variant despite it being a distinct code path (the implicit-enable logic), leaving that scenario unverified. Patch B also introduces unrelated churn—rewriting `dict(...)` to `{...}` in test_validate_return and test_validate_all, which are untouched by the fix. Patch A's mild downside is duplicating the mapping logic that also lives in core_config(), a minor maintainability concern, but that is outweighed by its complete test coverage of both issue scenarios and its lack of extraneous edits.
The judge saw only the two patches, labelled A and B in random order, with issue links and version numbers removed. The reasoning above is shown verbatim.
Solve
12m 11s24 turns
Wall-clock time in the container
Full test suite
No new failures
12,394 passed · 500 skipped · 12,894 total
Contamination audit
Clean
No sign the agent saw the real fix
Patch size
37vs 39 merged
Changed lines, ours vs merged