Getting the hook out of your way
Sooner or later you will want an agent to edit a closed file. Does that mean turning the whole thing off? No. You open one file.
admin unlock opens one file, and it will not do it without a reason.
admin relock shuts it again. While a file is open, admin status
says which one, since when, and why.
There is a global off switch. admin off will not fire without a reason,
and once it has, admin status opens with THE HOOK IS OFF and the reason you
gave, every time you run it, until you turn it back on. Opening one file is almost
always what you actually wanted.
“Improve this page” is not permission to rewrite a locked line inside it. The agent improves what it may, then tells you what it left alone. If every line on the page is yours, it says so and stops.
stet admin unlock README.md \
--for "the price changed"
# edit, then:
stet admin relock README.md
Both land in
.stet/admin.json, which the hook reads before it reads state.