mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-08 03:30:34 +00:00
* fix(memory): tolerate unbounded stored fact confidence A stored memory fact can carry a JSON integer such as 10**400. float() on it raises OverflowError in _coerce_source_confidence and in the dedup merge comparison, aborting the whole update cycle even though both sites already handle every other unusable confidence. Treat the overflow like a missing or non-finite value: 0.5 for ranking, 0.0 for the merge comparison. * fix(memory): harden the remaining fact-confidence coercions The import normalizer, prompt builder and relevance scorer each coerce a stored fact confidence with float() and caught only TypeError/ValueError, so an unbounded JSON integer such as 10**400 raised OverflowError: import failed before the updater fallbacks ran, and prompt/relevance ranking could abort. Catch OverflowError and take the existing defaults; document the full set of coercions.