mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
Race each waitForCapabilityLiveProcess attempt against the deadline's remaining time, so a callback that never settles fails at the stated 10,000ms envelope instead of running past it. Keep the same deadline diagnostic (label, elapsed time, last observed error). Make the bare-real-process-wait guard inspect only a wait call's own options argument for an explicit timeout, not the whole argument list, so a same-shaped timeout option nested in the callback body no longer exempts a bare wait. Mask comments and string or template literals before the guard scans for vi.waitFor( or expect.poll(, so source text that only mentions those patterns can no longer trigger a false violation. Add regression tests for both gaps. Co-authored-by: Paperclip <noreply@paperclip.ing>