harbor run -t scale-ai/hil-bench-swe_93-ask_humanharbor download scale-ai/hil-bench-swe_93-ask_humanVarsWithSources and other mappingsWhen logic reaches the replace-mode branch of ansible.utils.vars.combine_vars, combining a regular mapping with VarsWithSources can fail with a TypeError instead of producing a usable merged result. The visible issue is not limited to one call site: the same family of interactions also affects how mixed mapping operands behave under related union-style operations and how the post-merge state is observed after values are preserved, overwritten, or introduced.
This issue covers the broader expectation that VarsWithSources should interoperate cleanly with ordinary mapping inputs during replace-style merging and related operator-based updates, without constraining the solution to one narrow operand shape or one narrowly described output form. The resulting behavior should be consistent for non-in-place and in-place flows and should leave value data and any associated source-tracking information in a coherent, inspectable state after the operation completes.
Path: /app/lib/ansible/vars/manager.py
Name: or
Type: function
Input: other
Output: combined operator result
Description: Adds a non-in-place union-style operator surface to VarsWithSources. It handles supported mapping-style operands and otherwise leaves normal operator dispatch in control.
Path: /app/lib/ansible/vars/manager.py
Name: ror
Type: function
Input: other
Output: combined operator result
Description: Adds the reflected union-style operator surface for cases where VarsWithSources is the right-hand operand. It handles supported mapping-style operands and otherwise leaves normal operator dispatch in control.
Path: /app/lib/ansible/vars/manager.py
Name: ior
Type: function
Input: other
Output: post-update operator result
Description: Adds the augmented union-style operator surface to VarsWithSources. It applies incoming mapping entries to the existing state and exposes the result of that update through the operator.