mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
The review's critical: Decimal(repr(value)).normalize() read the process-global decimal context, so a legitimate program setting getcontext().prec = 2 silently rounded the completion value's digits and traps[Inexact] = True made the encode raise, misclassifying a successful run as an exception. A fixed module-level Context(prec=28) makes the spelling decision context-independent; a regression case mutates both context knobs and asserts the float round-trips exactly. The binding-reply README entry now states the fact (no seam-level cap; maxValueBytes meters only the done frame; a wide reply is rebuilt and encoded whole, bounded by process memory), matching the earlier reviewer wording.