Skip to main content

plan_folds

Function plan_folds 

Source
pub fn plan_folds(candidates: &mut [FoldCandidate]) -> Vec<PlannedFold>
Expand description

Plan every fold in candidates.

Star clustering in authority order: closest source (owner-stated, then quoted, then inferred), then pinned, then most recalled, then oldest (its key is the one in use). Each fact folds into the first kept fact it matches; no chaining, so a cluster never drifts from its representative. Facts fold only within one fold_scope_key class: folding a group channel’s fact into a private one hides it, the reverse widens it, while a private fact and an app conversation’s fact have one audience. Vectors of different lengths (another embedding model) never compare.