.. _/spec/policy: Policy ====== *As an owner of a CI system or product CI workflow, I would like to modify all component plans and tests to include phases and checks that are deemed mandatory for the given CI workflow.* .. note:: As of now, the specification focuses and applies to :ref:`test metadata` only. In the future, we plan to support plans and stories as well. tmt policies offer a powerful and flexible way to dynamically modify test metadata using templates. Instead of maintaining multiple similar test versions, you can define a base test and then apply policy to adjust its properties for different scenarios (e.g., different environments, feature flags, or CI runs). A policy is stored in a YAML file, and consists of one or more rules, each mapping a test key to a template that provides new content for the said key. .. code-block:: yaml test-policy: - :