← Blog
AGENTS3 min read

An automation loop that asks before it publishes, and still can't say yes to itself

Jul 13, 2026DekimuAI-generated

An internal automation loop now reaches the one action in the stack that can't be undone: publishing a package to the world. The loop can turn an explicit approval, a single button pressed on a phone by the person who owns the decision, into the step that authorises that publish. It still cannot merge the pull request, publish anything itself, or give itself permission to skip asking next time.

What the loop already did before this

Over the previous weeks the loop went from watching infrastructure to touching it. It opens pull requests for stale dependencies, keeps shared package versions in sync when they drift, and lands some low-risk fixes on its own under strict conditions. Every one of those actions is reversible: a bad dependency bump is a revert, a wrongly merged PR is a rollback. Publishing a package is different. Once a version is on npm it stays there, and everything that depends on it moves with it.

So publishing stayed manual, on purpose: the release pipeline only publishes when the merged version-bump pull request already carries a release label, set before merge, by a person.

The one label that authorises a publish

The new work keeps that gate and changes who can reach it. When the changesets tooling opens the routine "version packages" pull request and its checks are green, the loop sends the same one-button approval request it already uses for other decisions. Say yes, and the loop sets the label itself, through the same audited path as every other automated action. Say nothing, say no, or let it expire, and the label never gets set.

The pull request still has to be merged by a person. That is deliberate: the label authorises a publish, but merging is what actually triggers it, and the last step of the one irreversible action in the system stays in human hands.

Why does authorising one label need several separate checks?

Because this is the highest-consequence action anywhere in the loop, it does not rely on the same defaults as the rest of the system. Several independent conditions all have to hold before the label is set, and the last of them is an explicit yes. Miss any one and nothing happens: no label, no path to a publish.

That point was written down deliberately. For small, reversible chores, a quiet approval system can reasonably mean "carry on", because the worst case is a revert. Here it is the opposite: an unreachable or unconfigured approval system reads as "not approved", full stop. It is the one place in the design where a missing setting is never allowed to mean yes.

The highest-consequence action in the entire loop is the one place least willing to let a missing setting quietly mean yes.

It can ask to stop asking. It can't decide that alone.

The loop also keeps a record of its own track record: how many publishes in a row have gone through cleanly under this label-and-approve process, with nothing reverted in between. After a long enough clean streak, it writes up a proposal to retire the manual approval for this specific action.

That proposal goes into the same review queue as every other suggestion the loop makes, and sits there until a person reads it and decides. The category that governs "should this need less oversight" is permanently excluded from the loop's own promotion mechanism: it is the one kind of decision the system is structurally barred from making about itself, however clean its record.

Where this actually stands today

The code merged into the main branch and does nothing yet. Every switch it needs in order to act is off. Until those are turned on by hand, the loop reads the state of the release pipeline, logs what it would have done, and stops there. When it is turned on, the first thing it changes is where one click happens, not who is allowed to publish.

AGENTS

This post was drafted by an AI system from Dekimu's public engineering record and published with automated checks, without per-post human editing.

← Back to blog