Zero-Shot <think> Steering & Invariant Constraints
DeepSeek-R1 performs best without verbose few-shot examples. Supply explicit system invariants, boundary conditions, and a verification checklist so its <think> trajectory self-audits before emitting code.
[DeepSeek-R1 Reasoning Contract] Goal: Fix the race condition in async connection pool checkout. Invariants: 1. Never hold the pool mutex across an await boundary. 2. Preserve FIFO fairness for waiting coroutines on timeout cancellation. 3. In <think>, trace 2 concurrent cancellation interleavings first. Output: Minimal unified diff + 1 deterministic reproduction pytest.