You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: restore patched data sources after each evaluate call
_apply_claims_to_data_sources mutated DataFrames in svc.source_
dataframes in place. That let cross-law lookups see the claim, but
never rolled back, so a subsequent evaluation for a different BSN or
a different approved mode observed stale claim values (e.g. eval 1
with approved=False patches geboortedatum; eval 2 with approved=True
still sees the patched value and misattributes the result).
Keep a per-evaluation _patched_source_backups dict of the original
DataFrames, and wrap the evaluate body in a _restore_on_exit context
manager that rolls them back and re-syncs the engine on exit.
0 commit comments