pub fn resolve(
global: Option<&ConfigScope>,
group_scopes: &BTreeMap<String, ConfigScope>,
pc_scope: Option<&ConfigScope>,
my_groups: &[String],
) -> (EffectiveConfig, Vec<ResolutionWarning>)Expand description
Flatten the scope stack into an EffectiveConfig.
global— theglobalkey in theagent_configbucket (Noneif no row yet).group_scopes— everygroups.<name>row currently in the bucket (the caller can pass all of them; only the ones whose name is inmy_groupsare applied).pc_scope— thepcs.<pc_id>row for this agent (Noneif no row yet).my_groups— this agent’s current memberships (from theagent_groupsbucket).
Order of application: built-in default → global → per-group
(alphabetical, last wins) → per-pc. Multi-group conflicts (≥ 2
of my_groups setting the same field) are returned as warnings
alongside the resolved config.