← Blog
AI Safety

Designing Fail-Closed Approval Queues for Autonomous Agents

When an AI coding workflow loses Wi-Fi, hits a 30-second pairing timeout, or encounters an unreadable diff, the safest state transition is stopping cleanly—never guessing forward.

Date
November 24, 2026
Reading time
2 min read
Author
Lewis Dong
Topics
AI Safety · Fail-Closed UX

Autonomous coding workflows rarely fail cleanly when optimism is built into their queues. A tool call times out, a bridge drops half a packet, or a cloud relay returns an ambiguous error, and a fail-open interface quietly retries or falls back to a default permission.

Four fail-closed rules across hardware and web#

Across Walkie, Resume Autofill and this site's AI Lab, the approval paths follow four fail-closed rules. Walkie and Resume Autofill are personal projects whose code was mostly written by AI coding tools (Claude Code); I set the rules, reviewed the output and verified it.

  1. No answer, no trust: Walkie writes a new pairing key as a candidate, pair.key.new, before the watch answers. Only after a front-key press within 30 seconds is it renamed over pair.key; a refusal or a timeout leaves the working key untouched, and the unanswered candidate is offered again next time.
  2. Classify the disconnect before retrying: Walkie's offline screen says which link is down (no Wi-Fi, no relay, or PC offline) instead of showing a vague spinner.
  3. The final submit stays human: Autofill can press "Next" on multi-page forms but never presses the final Submit.
  4. No evidence, no answer: in the AI Lab, if retrieval finds no matching record in the site's evidence corpus, the workbench declines rather than writing prose to fill the gap.

Stepping through failure transitions#

The Protocol Replay Studio steps through simulated fault frames, such as a USB cable change mid-turn. The frames are hand-authored to explain the rules, not captured from the device. Each case's Red-Team defense lists the challenges these rules have to answer.

Share:

Related Articles

Designing Fail-Closed Approval Queues for Autonomous Agents | Lewis Dong