mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
The settlement-time CPU recheck compared spent CPU against the configured cpuSeconds, but _clamped may have lowered the effective soft limit to a stricter inherited value. A program that traps SIGXCPU, burns past the inherited soft, and returns inside the soft-to-hard gap was checked against the configured value and falsely reported successful, bypassing the inherited limit. The recheck now uses the clamped cpu_soft. Adds a regression test that inherits a 1s soft CPU limit and asserts a SIGXCPU-trapping over-burn is a timeout, not a success.