#16534·phoenix

Evaluator runs fail on mappings for variables removed from the template

Author: rickarizeCreated Sep 25, 2026Updated Sep 28, 2026
Labelsbugc/evals

AUTOMATED REPORT:

Removing a variable from an evaluator's template removes its input from the form, but its mapping is still saved with the evaluator. When the evaluator runs, the server applies every saved path mapping, including ones for variables the template no longer uses. If that path matches nothing in an example, the run fails.

The error names an input the user can no longer see, and the form has no row to fix it from. The only way out is to retype the variable, clear its mapping, and erase it again.

Reproduction:

  1. Create a dataset where only some examples have a given field.
  2. Add an LLM evaluator whose template uses {{somevar}}, and map it to that field.
  3. Erase {{somevar}} from the template and save.
  4. Run the evaluator over the dataset.

Examples without the field fail with a path-did-not-match error, even though no input uses that mapping.

Keeping the mapping while the form is open is fine, since it lets a retyped variable get its value back. The leftover should be dropped when the evaluator is saved, or ignored at run time.

Found by reading the code; the reproduction above hasn't been run yet.