Enforce the gate in code

The human's yes where it matters, enforced by the runtime - a hook, a schedule, a queue - rather than asked for in a prompt.

By Mackenzie Bowes · mackenzie@mackenziebowes.com · @_mackenziebowes on X

A human gate asked for in a prompt is a request: the agent can forget it, game the check or drift from it over a long run. The same gate in code is a refusal the agent has to satisfy before anything moves. In our unattended runs, the boundaries that matter live in the harness, not the prompt.

A gate in code is only a gate when it fails closed. In Claude Code, Codex and Cursor a hook that errors lets the action proceed unless it is set to fail closed (how the top harnesses handle hooks); a hook that fails open is the request again, under a better name.

What a human gate means for money-touching steps is the question a team with a budget asks first. On r/CFO on 2026-11-21, a finance lead at a company past 100M revenue (the post names no currency) asked which accounting process anyone had handed to an agent, and how they handle controls, audit trail and auditor sign-off (the thread, read 2026-11-25). In our runs that answer is a gate, not a promise: paid API keys sit behind a balance command (purse), a paid run prints its price and gets the human's yes first, and anything that messages outside the team needs the same yes.

Untested beyond our own runs; it is our own prediction that this guards against gaming the check and memory ratcheting: a gate the agent cannot edit is a gate its own corrections cannot loosen, and a refusal in code cannot be passed without doing the work. It pairs with human-held prompts: that guard keeps the setup human-edited; this one keeps the checks outside the agent's reach.

Is a

  • Guard: Something that stops a kind of failure before it reaches the end of an unattended run.

Guards

  • Gaming the check: The agent passes the test without doing the task.
  • Memory ratcheting: Each correction an agent writes for itself stays, so its behaviour only ever tightens.