Ashish · field notes
All notes
← back to the system map
BuildingInfrastructure3 min read

Finance human-in-the-loop gate

Scheduled finance jobs run themselves right up to the irreversible step, then stop cold behind a signed token and my approval.

I want scheduled finance jobs to run autonomously, but a few steps have to stay human-only: logins and 2FA, moving money, irreversible ledger merges, and genuine judgment calls. The hard boundary is simple. The agent never authenticates into a financial system, and it never moves money.

How it works

It's a pause, approve, resume layer. A local executor runs until it hits a human-only step, writes a checkpoint to an append-only journal, fires a Telegram Approve/Deny plus a phone-push doorbell, and exits. There's no true session suspend, so the durable state is just a file on disk. A watcher turns an approval into a single-use, HMAC-signed token, and a PreToolUse hook makes any money, merge, or login-write tool un-runnable without a fresh matching token.

The agent does the 95 percent. The 5 percent that can't be undone still stops for me.

It's building. The Phase 0 foundation is built and tested, 45 checks green covering forge, expire, replay, cross-run, and deny. What's left is Telegram pairing and registering the hook in the first live finance executor. This is the rail that lets autonomy and irreversibility coexist, so the exception rate can fall without ever handing an agent the checkbook.

Got an idea? Tell me →More field notes