because two separate things, yaml file and rules in engine, data can only flow from yaml file to engine not in opposite way.
OXCE only support "coping" in yaml file as some nodes are duplicated in multiple places.
This duplication do not alow in any way to duplicate any thing that is in engine as this is different layer.
Well, let's for the sake of discussion assume that a solution at the YAML level is not being considered. In YAML, it's possible to parse multiple data buffers and to merge them. The tooling for that is not a part of a YAML specifications.
If we treat the config as just data, then we in the end have a set of definitions that are processed in the second step. The merging occurs in that step, whence definitions from sub-mods are applied. At this step, all config data is already parsed, and we have available to us a set of unmerged configuration definitions. The definitions then need to be applied in descending order to the main configuration. The definitions thus may refer to whatever was previously defined. The way this reference is achieved is not through the YAML constructs, but through the reference (e.g. a field, without any special meaning in YAML, called "inheritFrom", which contains an id of the parent definition).
---
Please allow me to note that the specific problem that I'm trying to solve is a very practical one, and it is about extending master mods, and actually any other mods, in a way that eliminates the bulk of the maintenance burden. I'm working out a solution within the current implementation constraints.
Anywhere a copy-pasting at the level of writing mod files is involved, we get a source of bugs and maintenance burdens.