cd /news/ai-agents/only-the-irreversible-gets-a-gate · home › topics › ai-agents › article
[ARTICLE · art-182244] src=gfrm.in ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Only the Irreversible Gets a Gate

A coding-agent governance system called Jack, built by the author behind the renavondata/jack GitHub project, gates only irreversible actions and prices reversible ones, citing a charter maxim to "Decide by expected value; forbid only the irreversible." The charter records that its predecessor, called assize, left force-pushes and deletion of every branch but master and all tags ungated until 13 October, while STATUS bookkeeping blocked merges; over the four days from 10 to 13 October the charter counts 88 decisions and 121 repairs for 24 merges, 20 of which changed the court's own procedure rather than the work. The design draws on Kenneth Arrow and Anthony Fisher's quasi-option value result, which shows expected value computed today overstates the case for an irreversible act because it omits the value of tomorrow's information, and the author notes the hard gate is the court's policy choice, not a theorem.

recommendation

Gate only irreversible effects such as force-pushes, tag pushes and branch deletions, and let reversible actions run unpriced by prompts so approval attention stays sharp for the gates that matter.

more in playbook: Securing agents and AI tools
read14 min views1 publishedDec 4, 2026

Anyone who has run a coding agent for a day knows the prompt: the agent wants to run a test, list a directory, commit to a scratch branch, and the harness asks whether to allow it. Suppose it asks forty times in an hour. By the twentieth the hand is moving before the eyes have read, and somewhere in the next twenty is the command that drops a table, force-pushes over a colleague’s branch or sends an email that cannot be recalled. It gets the same click as the listing did. A person in the loop who approves by reflex is not in the loop at all, only in the way.

The usual remedy is an allowlist. But an allowlist is normally sorted by how alarming a command looks, which is a poor proxy for what matters. Deleting a tracked file inside a disposable worktree looks alarming and can be undone by a checkout. Pushing a tag looks routine and, if the tag triggers a release, cannot be undone at all. A permission list can suffer both failures at once, prompting constantly for the trivial while waving the irreversible through, and the system I ran before jack did exactly that.

Jack’s charter opens with the record of that predecessor, a court called assize, and lists its failures. The fifth reads: “Force-push and deletion of every branch but master, and all tags, were ungated until 13 October, while STATUS bookkeeping blocked merges”. Meanwhile the gates that did exist stood in front of paperwork. The fourth failure records three review rounds spent on how a status file cited a green test run, with the code green throughout. Over the four days from 10 to 13 October the charter counts my acts on that system at 88 decisions and 121 repairs, for 24 merges, and twenty of those 24 merges changed the court’s own procedure rather than the work it existed to do.

A repair, in the charter’s vocabulary, is any act the loop needed from me that was not a decision, such as re-running a job or re-approving after a push dismissed the first approval: the formal name for the forty clicks. So the first design question for the next court was the one every agent’s permission list poses: in front of which acts should a person stand, and why those?

Kenneth Arrow and Anthony Fisher answered a version of it half a century ago, in a paper on environmental preservation. Their setting was a choice between an act that cannot be undone (developing a site) and one that can (leaving it as it is, for now), made at a time when more will be known later about what each is worth. They showed that the ordinary expected value of acting, computed today, overstates the case for the irreversible act. It leaves out the value of being able to use tomorrow’s information, which the irreversible act destroys. They called the difference quasi-option value. Claude Henry proved the same effect independently in the same year.

The court leans on the converse, which is an inference from their result and not their own claim. An act that can be undone at no cost destroys no option. Waiting before such an act therefore buys nothing, and a gate before it buys delay and nothing else. Worse, it spends attention, which is the scarce thing. Every needless prompt wears down the reading that the real gates depend on.

Jack’s charter makes this its fourth maxim: “Decide by expected value; forbid only the irreversible”. It continues: “Reversible acts are priced and scored, never blocked. Hard gates stand only before effects that cannot be undone, where waiting has positive option value”. Arrow and Fisher priced irreversibility; they did not forbid it. The hard gate is the court’s policy, drawn where the price cannot be bounded, and it is a choice, not a theorem.

In an engineer’s terms the maxim is a procedure. Take every action the agent can perform and ask of it: if this is wrong, can it be undone tomorrow, and at what cost? The question is about the system, not the command. The same rm is reversible in a worktree under version control and irreversible on a volume with no snapshot; the same git push is reversible to a branch that can be reset and irreversible when it fires a deployment that writes to customers.

The answers fall into three groups. The first is acts that can be undone at negligible cost: edits in a sandbox, commits on a branch, a proposal that someone else must merge, a dry run of anything. These should never prompt. They should instead be cheap to refuse and cheap to retry. The second is acts that can be undone at a price: a deployment with a rollback, a migration with a tested restore, spending from a budget. These should be priced rather than gated, with a limit, a rate, a record and a score; and a rollback that has never been exercised belongs in the third group, because nobody knows its price. The third is acts that cannot be undone at all: deleting what has no copy, sending what cannot be recalled, publishing, paying, and above all changing the permission list itself. Only these get a person, and because there are few of them the person can afford to read each one.

The last item is the one most easily missed. Every later act is judged by the rule that says who may do what, and an agent that can edit its own allowlist has none. The same goes for whatever scores the agent’s work: the tests, the evaluation script, the threshold for passing.

In jack every act is meant to be an entry on a signed, append-only log, and each key carries a list of the kinds of entry it may sign. Five kinds are reserved to my key. They are the genesis of the log, the declaration or revocation of a key, an amendment to the charter, a push of trusted code (the code that decides what else is lawful), and a decision, which covers promotions, vetoes, budgets and grants. One of them is protected even from me: a key entry that would leave no key holding the power to declare keys is refused, because, in the charter’s words, “losing it is irreversible”.

Everything else goes without me. The log holds 1,076 proposals and 1,069 merges. A proposal that the judge refuses is escalated to nobody; refusing it, the charter says, “costs the proposer nothing but resubmission”. Of the merges, 1,060 are signed by the herald, a party whose key has since 31 October held no power except to merge. On the platform, branch protection on main forbids deletion and force-push.

Of 10,492 entries, my key signed 83. Seventy-one are of the five reserved kinds; the rest are nine early merges, made before the herald existed, and three forecasts. The charter’s own target for my acts is that “repairs tend to zero; decisions to a handful a week”. By its own classification 66 of my 83 entries are decisions, about nine a week from 14 October to 4 December, which is more than a handful, and 17 are repairs: the nine early merges, the three forecasts and five entries of kind fix. Since the herald took over merging on 26 October the only repairs are those five fixes. Two record a failed window; three record repairs made by hand on 18 November, such as disabling a workflow on counsel’s finding. They are counted, which is the point. Twenty of the decisions are grants, and fifteen of those name by hash the text I read before approving it, so that an approval cannot later be stretched over bytes it never saw. That habit is worth stealing.

The act most in need of a gate is a change to the rules themselves, and in jack it takes two entries and a wait. First a decision of kind transmute names the amendment. The word is Peter Suber’s, from his study of rules that amend themselves. Then an amend entry carries the new charter’s hash and a later height on the log from which it binds, never reaching back, and no push of trusted code is lawful in between: the law changes first, and the code waits.

The charter was amended five times in its first seventeen days, from 14 to 30 October, each forced, in the book’s words, “by something the record had shown”. The sixth amendment is the instructive one. It is where the principle and the owner’s convenience pulled apart, and the record shows both.

Jack builds in windows. A window has criteria written down before it opens, and it ends either at its stated end or at a promotion, my signed acceptance that every criterion held. On 5 November the window then running had a criterion it could no longer meet. It counted repairs made off the log, and the status tool read “off-log repairs: 9”. The window would nevertheless run to the 17th, because the charter named only those two ends. A session outside the court proposed the obvious repair, which was that a window ends at the first point where its tool prints that a pre-stated criterion can no longer hold. There was an obstacle of my own making. On 4 November I had decided against any amendment for now, and had set terms for the next one: its readers elected by the record rather than chosen by the drafter, the drafter’s open forecasts on the affected windows frozen or forfeited, and the growth of procedure scored against a budget set in advance.

Counsel, the court’s drafting party, advised adopting the clause as an explicit revision of that decision, and at 16:33 UTC I ruled: “I revise 4 November for this one amendment”, with “the reader drawn from a committed seed as my substitution for an election”. The first attempt, then, was itself discretion setting aside my own procedure. At 16:57 I supplied seven principles as its reasons, in a message forwarded from another session. Two matter here. The third says “a lawful with zero option value is a defect by maxim 4, and its days are counted”. The fifth says “The sovereign’s reserved acts are the irreversible and the change entry”, and that executing a mechanical fact, by veto or by instructing a resolution, “is not one of them”. A failed window should be ended by the record, not by me.

At 16:38 a builder’s unpushed change to the tool printed “criterion 7 cannot hold”. But three cold reads by fresh sessions failed two drafts of the clause and the draft ruling in turn, and two of their findings changed the arithmetic. The test for the new clause would not fit in the fifteen or so counted lines of code left under that window’s cap (the limit on how much code it could add), and a fix entered at the boundary would be classed as a permanent repair by the code of the window that followed. Counsel put the chance of the next window opening before 12 November at about 0.2 and recommended stopping. At 20:28 I wrote: “Stop. C2a ends on the 17th.” The attempt had cost four hours and twenty minutes and about 920,000 tokens of reading, which I asked to have recorded, and nothing reached the log.

The problem came back on 18 November. The next window could no longer be promoted either, and I vetoed it. This time the cause was a defect in the tool, not the work: a cold read found that its test “imposes a stricter all-ancestor condition than the stated” requirement of the brief, and a later fix entry says the test “walked every ancestor of main”. The veto settled that the window had failed and ended nothing, since the charter still named only two ends. So the window would hold every bar its brief set until 30 November, “no second push inside the window” among them. That would have been twelve days of exactly the the third principle calls a defect, and it was a I had chosen. On 17 November, shown what the first attempt at A6 had cost, I was asked whether to revise the terms of 4 November and answered: “I don’t want unlawful revisions any more.” The record of that exchange sets out what followed: the window would run to 30 November with no early end, and the early-end clause would wait for a later stage. On 20 November I answered seventeen questions put by an outside adviser session, each with options, and its record of the answers says: “Every chosen option is the one the adviser marked “(Recommended)”.” Answer 5 put the push that moves the promotion arithmetic under the judge’s protection before the 30th. The adviser’s question 17 then found that the window’s bar left that push, in the amendment’s later words, “no lawful place”. Answer 12 was that a one-clause amendment, under which a window ends at my veto, “proceeds now”.

The mechanical clause of 5 November was still unbuilt. So the sixth amendment, as entered, is another clause: “A vetoed window ends.” It needed no code, and its text says so: “Nothing must be built for it to bind”. It is also contrary to my fifth principle, and says so under a heading naming its departures: “Here his veto ends a window, and the end is his act, not the record’s.” Three more departures follow: from the rule that no clause enters the charter before it has decided an act in a brief; from the runbook’s order of code before amendment; and from the terms of 4 November, reaffirmed for this very clause on the 17th, whose undertaking of a procedure “before any A6” the text says “is not met”. It names those terms one by one: its readers are named by counsel, not elected, and counsel’s open forecasts on the windows it reaches are “neither frozen nor forfeited”.

Two models of other families read the fourth draft cold, and both passed it. My grant on the log, entered at 08:40 on 22 November, says I read the text at its hash and “approved it unchanged”, and that “I depart, for this one clause” from each of those four things. The transmutation went in at 11:40, the amendment at 11:42 and a second veto at 11:44; the push followed at 18:16. Counsel had staked 0.7 on that push landing before the 30th, a forecast its own drafting could lose, and on 1 December it resolved yes.

Both clauses were adopted by setting procedure aside, so the difference between them is not how they entered but what each does once in force. Under the first the record ends the window: nobody’s judgement is spent on a fact the tool can print. Under the second my veto ends it, which makes the owner’s discretion the mechanism, the thing the court was built to stop needing. By the principles the first is the better rule, with one qualification from the record: the second window failed on a tool’s false reading, and a clause that ends windows on the tool’s print would have trusted that print too. Nor was the second route cheap. It took a ruling, four drafts, at least three cold reads (one failed), a grant and a forecast before the four minutes on the log; what it did not take was code.

That is the hazard for anyone who has pruned an agent’s prompts down to the irreversible. The owner’s judgement is the one patch that needs nothing built. When a mechanical rule is late, a human veto will do the job today, and the approval behind it may itself be a click on the recommended option. Each such approval puts a gate back in front of something the record should have decided, and enough of them rebuild the forty prompts an hour. What the sixth amendment has in its favour is the manner of its entry: an exception that lists its departures in its own text, carries a forecast that could lose, and leaves the mechanical clause owed under another number. That clause has not yet entered.

So the rule for a permission list has a second half. Sort every action by whether it can be undone, not by how alarming it looks. Put a person only before the ones that cannot, and make everything else cheap to refuse and cheap to try again. Then count what the person actually does: if most of the count is repairs, the gates are in the wrong places. And when the person’s judgement is the quickest fix, record it as a fix, name the rule it stands in for, and keep the debt on the books until the rule is built.

This essay retells chapter 9 of A Court for Agents for engineers. The chapter is in the book, whose source is gfrmin/agent-court. The sixth amendment is later than the chapter. Its text, the papers of 5 November and the entries cited are from renavondata/jack at commit 64ef271.

── more in #ai-agents 4 stories · sorted by recency
── more on @jack 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/only-the-irreversibl…] indexed:0 read:14min 2026-12-04 · —