78 / 108 · 03 Agentic Testing Architectures · The Dead Man's Switch Pattern← prev⊞ allnext →☰ Read as one page
10.6Anti-Pattern: No Kill Switch
# DANGEROUS: no timeouts at any level
- name: Run agentic tests
run: python -m pytest tests/agentic/
This job can run forever. If the agent enters an infinite loop and the harness fails to detect it, the CI runner is blocked until manually killed. In a shared CI environment, this blocks other teams.
Always set at least two timeout layers: one in the test framework and one in the CI runner.