mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-08 04:01:59 +00:00
The _run outer try/except used the module-global BaseException, which the program (running as __main__) can rebind: __main__.BaseException = RuntimeError made the except resolve to RuntimeError, so a subsequent ValueError escaped _run with no done frame and misreported the run as worker-exit. Bind BaseException into a _run local before the program runs so the catch is immune; a regression test rebinds BaseException and raises, asserting an exception, not a worker-exit. Also correct the NUL-escape comment text: the JSON escape-result side is \^@ (6 bytes, the valid JSON NUL escape), not \x00, so the 6x-budget arithmetic in the comments is self-consistent. Register the BaseException-rebind case in the settlement note Testing (en + zh) and re-record the pairing.