#4360·opentofu

cty and HCL mark-handling gaps for the new language runtime

Author: apparentlymartCreated Jul 14, 2026Updated Sep 23, 2026

The new language runtime relies on dynamic analysis using cty marks for various things that the traditional runtime did using static analysis instead.

However, although cty marks were originally intended for this sort of thing there are some gaps in the current implementation (either in cty itself, or in HCL's operations implemented in terms of cty) that were previously ignorable despite being technically incorrect, but that are more problematic once we're using marks as the primary mechanism.

This issue is an initial place to collect examples of that. Some of them will be relatively simple and can be dealt with directly as a PR, while others could be more complicated and end up eventually having their own dedicated issues. The main goal here is to just have a place to leave notes about this as we go without cluttering the OpenTofu issue tracker, and then we'll organize the information into a more useful shape later.