mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
Loading a collaborative object kept every entry reachable from its refs, also entries that do not descend from the root. They were never applied, but they were tips, so the next honest update used them as parents. **Any user could thus make a delegate's change to one object also apply to another**, or publish an entry with parents as the root of a new object. To address this, evaluation now follows three rules: 1. The root has no COB parents, or the object does not load. 2. Only entries that descend from the root are kept; every other entry is removed together with the entries built on it. 3. An entry is applied only when every one of its COB parents was applied. After evaluation, only applied entries remain, so new entries build on the applied tips only. A COB parent is a git parent other than the identity revision named by `Rad-Resource` and the code commits named by `Rad-Related`. Honest clients write a root without COB parents and build every entry on the object's own tips, so honest histories evaluate as before. Co-authored-by: Adrian Duke <adrian.duke@gmail.com>