mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
Addresses the bot's follow-up review findings on the settlement-path fixes: - The _LogStream seal joined the WHOLE accumulated buffer past the fragment cap, re-copying the growing block O(B^2/cap) times for a large drip. It now seals only the current fragments into a _pending_blocks entry (character count unchanged), so a 25 M single-character drip stays O(B); the newline/flush/ _push_bounded_prefix consumers join blocks + fragments once. - The _clamped soft==hard lowering is scoped to RLIMIT_CPU: for RLIMIT_AS a one-byte soft differential would only misalign the child's applied limit with the host-side budget gate, with no signal to preserve. The hard == 1 blind spot is documented. - send_done's fallback captures memoryview at import (_memoryview) alongside os.write, so a one-line rebind of the name cannot change the fallback write; the comment now states the module-level-captured mechanism.