cadrumo.application.wizard._checkpoint_store module¶
Shared descendant-fact clearing for wizard persistence projections.
- descendant_clearing_facts(record, answers, *, operation)[source]¶
Return value-cleared facts for descendant rows the projection replaces.
When the descendant group was reached (its count page carries an answer), the projection OWNS the entire
renta_family.descendiente.*namespace plus the two aggregates: any on-record path the fresh projection does not set is stale (a shrunk count, a removed optional field) and is cleared with avalue=Nonefact – the canonical fact-removal mechanism. Without the answer (the group was never part of this run) nothing is touched, so a prior descendant fact set survives a partial re-persist. This closes the count-shrink desync wheredescendant_list_from_factswould otherwise scan orphaned indices the count no longer covers.- Parameters:
record (
UserProfileRecord|None) – TheUserProfileRecordto scan for stale descendant paths, orNone.answers (
Mapping[str,str]) – The page-keyed canonical answer map for the current run.operation (
PinnedAuthorityOperation) – Caller-owned pinned authority operation used to project the descendant facts.
- Return type: