test(rescue): pin the window drill's clock so the deadline check cannot race a second tick

The drill reads date +%s for its own now, then rescue_window reads it again; when a second boundary falls between the two calls, rescue_until lands one second past now + secs - 1 and test_the_step_deadline_ends_a_second_before_its_timeout fails (PR 3079 run 46057454187: 1795808933 != 1795808932). The drill now defines date() with a fixed epoch, so both reads agree; without the minus one in window.sh the test still fails every time.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 94
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-11-27 20:30:49 +00:00
1 parent 72aeb09c9a
commit 76c9eecb9a
1 file changed
+1
@@ -24,6 +24,7 @@ SKIPPED = b"[skipped: past RESCUE_DEADLINE]\n"
WINDOW = """\
set -euo pipefail
date() { printf '%s\\n' 1800000000; }
. "$1"
now="$(date +%s)"
if [ -n "$2" ]; then