aetherlight: touched_holders no longer reads retirement flips
A retirement only removes lent authority, so it cannot add an overlap; the clause changed no answer over 20000 forged lists. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
022db116e5
commit
7ef60a7d21
1 changed files with 2 additions and 7 deletions
|
|
@ -1790,8 +1790,8 @@ fn apply_operations(
|
|||
/// Every subject whose effective authority the open transaction may have
|
||||
/// changed: whose own grants were written, whose offices were written (old
|
||||
/// incumbent and new), and the incumbents of an institution whose grants were
|
||||
/// written or whose retirement flipped, because an office lends what its
|
||||
/// institution holds.
|
||||
/// written, because an office lends what its institution holds. A retirement
|
||||
/// only removes lent authority, so it cannot add an overlap and is not read.
|
||||
fn touched_holders(state: &WorldState) -> BTreeSet<SubjectId> {
|
||||
let mut touched = BTreeSet::new();
|
||||
let mut institutions = BTreeSet::new();
|
||||
|
|
@ -1805,11 +1805,6 @@ fn touched_holders(state: &WorldState) -> BTreeSet<SubjectId> {
|
|||
}
|
||||
institutions.insert(*institution);
|
||||
}
|
||||
for (subject, old, new) in state.subjects.changes() {
|
||||
if old.map(|record| record.retired) != new.map(|record| record.retired) {
|
||||
institutions.insert(*subject);
|
||||
}
|
||||
}
|
||||
for institution in institutions {
|
||||
if let Some(offices) = state.selection.get(&institution) {
|
||||
touched.extend(offices.values().filter_map(|office| office.incumbent));
|
||||
|
|
|
|||
Loading…
Reference in a new issue