To improve debugging, it would be beneficial to track the provenance of values (where values come from), and show this information in error messages, or through specialized evaluation modes.
Some ideas:
- Capture both source sections and stack frames when values are initialized
 
- Map source sections in rendered output (e.g. YAML) back to provenance information