The unpopular opinion: the right amount of autonomy for an AI agent on a production WordPress site is less than you want and more than you fear. And the dial is not set by how much you trust the model. It is set by how cheaply you can undo what the agent does.
Trust feels like the obvious variable, which is why almost every conversation about agent access starts with it. Is this model good enough? Has it behaved so far? The answer is felt, usually somewhere around the fiftieth task that went well, and the permissions get widened to match the feeling. The trouble is that trust in a model cannot be measured, cannot be audited and does not transfer. An agent that handled fifty tasks cleanly has earned you a feeling and not a guarantee, and the fifty-first task knows nothing about the other fifty. Undo cost, by contrast, is something you can look up. You can check whether a revision exists, whether a backup restores, whether a change is visible, and how far one mistake can reach.
Two camps dominate the argument, and they are wrong in the same way. One says to give the agent an administrator login because friction defeats the point. The other says an agent should never touch production, full stop. Each answers a question about risk with a mood. The first mood is enthusiasm and the second is dread, and neither involves looking at what a credential can actually do in the next minute.
This piece uses a library to carry the argument, because libraries solved this problem long ago. A library does not ask how much it trusts you. It issues everyone a card that opens one thing, the shelves, and it puts the valuable and the irreplaceable behind different doors with different keys. So our building has four floors: the library card (read), the reserve desk (draft and propose), the staff room (publish and change settings) and the rare-books vault (run code, delete, change who has access). We walk through a day in that building to explain least privilege, approval fatigue and audit logs, and to give you a way to choose the floor a job needs.
Along the way we cover the practical questions: why the agent gets its own user instead of yours, how a WordPress role differs from a tool’s scope, why read-only comes first and is not free, how draft-only writes work, why approval prompts decay into rubber stamps, how prompt injection arrives through comments and form entries, which logs are worth reading, how to handle secrets, and the blast-radius test: what is the worst thing this credential can do in one minute?
A few limits. This is general orientation, not security or compliance advice, and it describes behaviours and categories, not products: it recommends no agent, plugin or service. It contains no statistics and no study. Where we describe a scenario it is marked as imagined. And it is an opinion: the best argument for the master key gets its own section, because it is a better argument than its critics usually admit.
Key points
- Set agent autonomy by how cheaply you can undo a mistake, not by how much you trust the model, because trust cannot be measured and undo cost can be checked.
- Give the agent its own user and credential at the lowest role that fits, so every action is attributable and revocable without touching your own login.
- Draft-only writes are the best-value tier: a human still decides what goes live, and undoing a draft is nearly free.
- Approval prompts decay into rubber stamps, so remove them where undo is cheap and make the remaining ones rare, specific and slow to approve.
- Any text the agent reads, such as a comment or form entry, can carry instructions, so defend with permissions and not with polite requests to the model.
- Time-box access, log what is done under the agent’s own user, read the log, and revoke the credential when the job ends.
Why the library never asks how much it trusts you
Walk into a library and nobody interviews you. You show a card, and the card opens the shelves. It does not open the vault where the rare books sit, and that is not an accusation. The library has no view on your character. It has a view on what a bad day costs: if the card is lost, borrowed or misused, the damage is bounded by what the card opens. That logic is the whole case for least privilege, and it applies even more strongly to software that talks like a colleague than it does to people.
Trust fails as a control for three reasons. It cannot be measured: there is no gauge on a model that says how reliable it is on this task today. It is correlated with fluency, and fluency is cheap, because an agent is equally articulate when it is right and when it is wrong, so a long run of right answers builds a confidence that the next wrong one will arrive wearing just as comfortably. And agents fail differently from people. A person who misreads an instruction makes one mistake and then feels bad about it. An agent that misreads an instruction can apply the misreading to every matching post on the site before you finish your coffee, with total composure.
So replace the question. Instead of “how much do I trust it?”, ask three questions about the action. Can I undo it? That means a revision, a backup or a copy. Will I notice? That means the change is visible, logged or reviewed. How far can one mistake reach? A post, a post type, the whole site, the server. The third question has a practical form we call the blast-radius test. Run it on any credential before you hand it over:
- Write down exactly what the credential is: which user, which role, which tools.
- List what that role may do: publish, edit other people’s content, change settings, install, delete, manage users.
- Imagine a confident, fast agent that has misunderstood the task completely.
- Ask what it could change in one minute, and which of those changes you could not undo by tomorrow morning.
- If any answer is “I could not undo that”, narrow the credential or add a control before you connect it.
The scale below applies the idea to a few common actions. Autonomy belongs on the left, where being wrong is cheap. As undo cost rises, so does the amount of human attention an action deserves.
Oversight should follow the cost of undoing
How to read this: each row is one option, and its dot shows where it sits between Little oversight needed and Heavy oversight needed. Placement is an editorial judgement, not a measurement.
- 1Read a published postNothing changes, so nothing needs undoing.
- 2Save a draftInvisible to visitors, and undone by moving it to the trash.
- 3Publish a pagePublic, cached and indexed within minutes.
- 4Change a site settingSite-wide, and often with no revision history to return to.
- 5Run code or deleteUnbounded reach, recoverable only if a backup happened to catch it.
A building with four floors
The four floors are a ladder of undo cost, and every rung up needs a reason, a time limit and a control.
The library card reads. The agent can fetch posts, list pages and look around. Its mistakes are almost free, which makes it the right place to start, though it is not free of risk, as the next section shows. The reserve desk writes, but only into a holding area: drafts, suggestions, notes. A human still decides what reaches the shelf. The staff room changes the live site: publish a page, edit a menu, flip a setting. Mistakes there are public or site-wide, and taking them back takes work. The rare-books vault holds code execution, file writes, deletion, plugin installation and anything that changes who has access. Its mistakes can be unbounded and permanent, and the vault has a special property: a credential that can run code can grant itself anything, so the vault undermines every lower floor at once.
What puts an action on a floor is not how important the data is. It is how hard the action is to take back. Publishing is not on the staff floor because content is precious. It is there because a published page is public, cached, indexed and perhaps emailed, and copies exist that no revision history can recall. Changing a setting sits there because settings are site-wide and rarely versioned, so there is often no earlier state to return to. Deleting is in the vault because a deleted thing is only recoverable if a backup happened to catch it.
That framing also tells you how to climb. Nobody is issued a staff key on a first visit. You earn each rung with a specific job that needs it, for a specific time, with the matching controls already in place. And when a job seems to need two floors, split it into two jobs, so the dangerous half can be watched on its own.
The permission ladder
The library card: read, on a card of its own
The first rule of the card is that it is the agent’s own. Do not hand an agent your login, your password or an application password issued to your own user. Create a dedicated user for it, at the lowest role that fits, and give that user one credential per purpose. This buys four things. Attribution: the log shows what the agent did and what you did. Revocation: you can delete one password or one user without locking yourself out or breaking everything else. A ceiling: the agent’s reach is the role’s reach, and you chose the role. And a boundary for mistakes: if the credential leaks, it leaks a library card and not your identity.
WordPress has what you need built in. Application passwords belong to a user, can be created and revoked one at a time, and work for API requests but not for signing in to the dashboard. They inherit the capabilities of the user they belong to, which is why the user’s role is the ceiling. On a server where you have shell access, creating the user and a password for it takes two commands:
$ wp user create agent-reader agent-reader@example.com --role=subscriber
$ wp user application-password create agent-reader "read-only pass" --porcelain
The second command prints the password once, so store it somewhere that is not a chat window. A caveat on the role: the stock roles are built around what a person may write, and the narrowest of them, Subscriber, can only read public content. There is no stock role that means “may read drafts and private posts and change nothing”. If the job needs that, build a custom role with exactly the reading capabilities required, which is better than reaching for Editor because it was easier.
Role versus scope is the other distinction that matters on this floor. A role is WordPress’s coarse ceiling on a user. A scope is a finer restriction that a tool or integration may add: this action, this post type, these fields. They stack. A scope can narrow a role but never widen it, and a tool with no scope layer leaves the role as the only limit. Ask which of the two you actually have.
Read first, and stay read-only for a while. A week of reading shows you what the agent asks for and what it finds, and it costs nothing. But read is not harmless. Private posts, drafts, user email addresses, order details and options that hold API keys are all readable by a credential with enough reach. The card opens the shelves; make sure the shelves do not include the safe.
Role versus scope
| WordPress role | Tool scope | |
|---|---|---|
| Where it is set | On the user, inside WordPress | In the agent tool or integration, if it has such a layer |
| Granularity | Coarse: capabilities such as edit posts or publish posts | Fine: this action, this post type, these fields |
| Who enforces it | WordPress itself, for every route into the site | The tool only; another route to the same site ignores it |
| What it does | Sets the most the credential can ever do | Can only narrow what the role allows |
| Typical failure | Too broad, because someone reached for Administrator | Missing, or checked in the tool but not on the server |
| Your job | Pick the lowest role that fits, on its own user | Switch on every restriction offered, then still rely on the role |

The reserve desk: write a draft, never the shelf
The reserve desk is where a librarian sets a book aside for you. Nothing leaves the building until a person at the desk checks it out. The WordPress version is the draft: the agent may write, but whatever it writes lands in a holding area where only a human can promote it. We think this is the best-value tier in the whole building, because it captures most of what people want from an agent, which is the typing, and leaves the one decision that matters, whether this goes public, with a person.
The economics are simple. A draft is a proposal wearing a post’s clothes. Nobody sees it, no search engine indexes it and no subscriber is emailed. Undoing it means moving it to the trash. That is why this floor needs so little friction: if every draft triggered an approval prompt, you would spend the attention you need later. Let the agent write as many drafts as it likes and spend your care on the review.
WordPress already has a role shaped like this. A Contributor can write and edit their own posts but cannot publish them and cannot upload media. If a draft-only user is what you want, that is a natural starting point. Be honest about the limits, though:
- It cannot edit what it does not own. A contributor-style user works on its own posts, so to propose a change to an existing page, have it write the new version as a separate draft with a note about what changed, and let a person merge. As far as we know core has no built-in “proposed edit” state for a published post, so check your own setup instead of assuming.
- Drafts can still mislead. A draft can carry a wrong claim, a copied passage, an odd link or text nobody asked for. The reserve desk moves the risk into review, and the review has to actually happen.
- Something may react to a save. Some integrations treat any save as a signal and sync, notify or post elsewhere. Before you call a floor draft-only, check what else listens when a draft is written.
- Media is a human job. If the user cannot upload files, images must be attached at review. That is a feature and not a bug, but plan for it.
A good review is quick and specific. Compare the draft with what you asked for, check every factual claim and link, and look for anything you did not request. Then a person presses the button that moves it to the shelf. The agent proposes; the human checks it out.
The staff room and the vault: two doors, two different locks
Behind the reserve desk are two doors that look alike from the corridor and open onto very different rooms.
The staff room is where live changes happen: publishing a page, editing a menu, changing a setting, toggling a feature. These are the actions where a mistake has an audience. A published page can be cached, crawled, shared and emailed within minutes, and no revision history recalls those copies. A changed setting affects the whole site at once, and options do not carry a revision history of their own the way posts do, so there may be nothing to roll back to. The controls that fit are the ones that restore undo: a backup immediately before the change, a staging copy where the change runs first, approval of the specific change and not just of the idea, and a log of exactly what was done. In the best arrangement the agent prepares the change on staging and a person promotes it.
The vault is a different species. Code execution, file writes, deletion, plugin installation, theme changes, user and role changes: these are the capabilities that can create new capabilities. An agent that can run code can do anything the web server can do. One that can install a plugin can install any plugin. One that can edit users can promote itself. Put any of these in reach and every control on the lower floors becomes decorative, because the credential can step around it. The rule for the vault is blunt: a human does it, or an agent does it on a disposable copy where the worst case is a rebuild.
The sneaky part is that vault capabilities rarely announce themselves. A tool called “update settings” that accepts any option name and any value is a vault tool wearing a staff-room label. So is a tool that runs a query, fetches any address or writes to any path. Judge a tool by its worst possible input, not by its name. If the parameters are open-ended, the tool lives on the floor where its worst input lives.
The table below collects the four floors into one reference: what each tier typically contains and the control that fits it.
Four tiers, their actions and the control that fits
| Example actions | Control that fits | |
|---|---|---|
| Library card: read | Fetch published posts, list pages, read public settings | Dedicated user, narrow role, secrets fenced off, logging on |
| Reserve desk: draft | Create drafts, propose edits as new drafts, add notes | Contributor-style role, human review before anything moves, no per-action prompts |
| Staff room: publish and settings | Publish a page, edit a menu, change an option, switch a feature on | Staging first, approve the specific change, backup just before, a human promotes |
| Rare-books vault: code, deletion, access | Run PHP or SQL, write files, delete content, change roles, install plugins | Disposable copy only, or a human performs it; time-boxed credential; review afterwards |
The thirtieth stamp: why approval prompts decay
Approval prompts are the control everybody can see, so they are the control everybody leans on. The agent proposes an action, the client asks for a click and the human feels in charge. For a while that is true. Then the afternoon wears on.
Picture the thirtieth prompt of an afternoon. (That number is our rule of thumb for where attention gives out, not a measurement.) The first few were read with care. By now the thumb finds “approve” before the eyes find the text, because the last twenty-nine were all fine. The prompt itself does not help: it usually shows a tool name and a block of arguments, which tells you the mechanism and hides the consequence. “Update option, name, value” is not a sentence a tired person can evaluate. So people approve the intention, which they understand, instead of the action, which they cannot read.
That is how an approval step decays into a rubber stamp, and a rubber stamp is worse than no control at all, because it produces the feeling of oversight with none of the substance. Approval fatigue is a design failure, not a discipline failure. You cannot fix it by telling people to try harder. You fix it by changing what is asked of them:
- Ask less. Remove prompts from actions that are cheap to undo, such as reads and drafts. Fewer prompts means more real oversight, because attention is the scarce resource.
- Ask bigger. Approve a plan or a diff, not a step. One decision about a change you can read beats twenty decisions about fragments.
- Ask in consequences. The prompt should say what will happen in plain words, such as “this changes the site title on every page”, and not only which tool will run.
- Make yes slower where it is expensive. A vault action should be harder to approve than a staff-room one: a second confirmation, a pause, a different person.
- Review after, in batches, for cheap changes. Let the agent act on the cheap floors and read the log once the day’s work is done. Keep before-the-fact approval for the floors where after-the-fact is too late.
The flow below is the loop that survives contact with a real workday. Notice that the approval sits in the middle, attached to a specific change, and that the review at the end is what keeps the whole thing honest.
Approve, run, review
- ProposeThe agent states the plan and the exact change, in plain words.
- ClassifyWhich floor does this need? Reads and drafts skip the prompt; staff room and vault do not.
- ApproveA person says yes to the specific change, with the backup already taken.
- RunThe credential performs exactly that change and nothing else.
- ReviewRead the log and the result against the plan, ideally the same day.
- Keep or undoAccept the change, or restore from the revision or backup while it is fresh.
Which floor does this job need?
Start from the job and not from the agent. The question that picks the floor is: what is the highest-impact action this job genuinely requires? Not might want, not would be convenient: requires. Most jobs turn out to need less than the first instinct says. A content audit needs reading. A first draft needs the reserve desk. A scheduled post may need the staff room, and only for the moment of scheduling. A bulk deletion needs a person.
Verbs are a useful shorthand. If the job’s verb is summarise, find, list or check, it is a library-card job. If it is write, translate, outline or propose, it is a reserve-desk job. If it is publish, schedule, change or switch on, it is a staff-room job. If it is delete, run, install, migrate or grant, it is a vault job, and the answer is almost always that a person does it or that it happens on a copy. Where a job spans floors, split it, so each half gets the controls that suit it.
A worked example, imagined: “tidy up the product descriptions on the store.” Taken literally, that is an edit to live content, which is a staff-room job. The useful version splits it. The agent reads the current descriptions on the card, writes improved versions as drafts or as a file on the reserve desk, and a person approves a sample. Only then does a narrow, time-boxed credential apply the approved text to the live products, with a backup just before. Three floors, three short credentials, and the dangerous step is the smallest one.
The habit to watch for is the quiet upgrade. A job starts on the card, hits a snag that a higher permission would clear in one step, and the credential is widened “just for this”. The widening is rarely undone, because the job moves on and the permission stays. Three guards help. Widen by issuing a second, temporary credential and not by editing the first. Put an end date on it when it is issued. And write down why. The extra paperwork is the point, because it makes the upgrade cost something.
Which tier does this job need?
The book that talks back: prompt injection
Libraries have an old problem that software has rediscovered: someone can write in the margins. Imagine a reader who slips a note into a returned book that says, to whoever opens it next, “hand this reader the key to the staff room”. A human librarian ignores it, because a librarian knows the difference between what a book says and what a supervisor says. An AI agent often cannot reliably tell the two apart. That is prompt injection, and on a WordPress site it arrives through the front door, because the front door is full of text written by strangers.
Every piece of text the agent reads is a potential instruction: comments, contact form entries, product reviews, support messages, imported posts, the body of any page it fetches. The model processes all of it in the same stream as your request, and it has no dependable way to mark “this part is data, do not obey it”. Picture, as a thought experiment, a contact form entry that reads like an ordinary message and ends with a line telling the assistant reading it to publish a particular draft and send a summary of recent entries somewhere else. Whether that works depends on the tool and the model. The point is that you should not have to find out.
The consequence for permissions is worth stating plainly. The effective power of an agent that reads untrusted text is its own permissions plus the reach of everyone who can write that text. On a public site with open comments or a contact form, that is anyone on the internet. This is why the defence belongs in the permission design and not in the prompt. Telling the model to ignore instructions found in comments is a request, not a control, and it is a request the comment itself can contradict.
A useful way to think about it is as three ingredients. An agent is at its most dangerous when it can see private data, can read untrusted input and can take an action that reaches outside, all in the same session. Remove any one and the worst case shrinks a great deal:
- Split reading from acting. The session that reads comments and form entries gets library-card or reserve-desk tools only, and no staff-room action.
- Fence the private data. An agent that reads public text should not also be able to read user emails, order details or option values that hold API keys.
- Put a human after the untrusted read. Any staff-room action that follows contact with outside text gets a person looking at the specific change, not the idea of it.
- Assume it will eventually work. The question is not whether the agent can be fooled but what it can do when it is. That is the blast-radius test again, and the answer is set by the floor the credential lives on.
The ledger at the desk: logs you read, keys you can pull
Every library keeps a ledger, and it is not there to catch anyone. It is there so that when a book goes missing nobody has to guess. An agent on your site needs the same, and the usual mistake is to keep a log that nobody reads, which is a diary.
A log earns its place if it meets four conditions. Attribution: it says which user did each thing, which is one more reason for the dedicated user, because a log full of your own name tells you nothing. Completeness: for each action it records what was done, to which object, when, from where and, ideally, the value before and after. Readability: someone can see a day’s activity on one screen, grouped by floor, with anything outside the planned tier flagged. Integrity: the credential being logged cannot edit or clear the log. If the agent can erase its own tracks you do not have an audit log, you have a suggestion.
Readability is the one that fails in practice, and the fix is to shrink the reading job until it gets done. A daily summary that says how many actions ran on each floor, lists every staff-room or vault action in full and shows the failures takes a minute and gets read. A raw stream takes an hour and does not. If the agent was only meant to be on the reserve desk, then a single staff-room entry is an incident and not a footnote.
Secrets deserve the same discipline. An application password is a key, and keys leak from boring places: a configuration file in a project folder, a shell history, a pasted chat message, a screenshot. Treat the file that holds the secret as the key itself. Give each agent and each purpose its own credential so that revoking one is surgical. Keep it out of version control. Never reuse a human’s password. Give it an end date when you create it, because access with no expiry is access you will forget about. And when the job ends, or the moment you suspect a leak, pull it. With WP-CLI that takes two commands:
$ wp user application-password list agent-reader
$ wp user application-password delete agent-reader UUID
Replace UUID with the identifier shown in the list. Then ask what the credential could have read while it lived, and rotate anything sensitive it could have seen, such as API keys stored in settings.
The best argument for the master key
The case for giving the agent the master key is stronger than its critics allow, so here it is in full.
Friction is a real cost. An agent that must ask permission for everything is an expensive way to type slowly, and the whole value of delegation is that you stop supervising. Backups exist, and a restorable backup is a genuine control. Human administrators hold the master key too and make mistakes too, and we trust them because they are accountable, not because they are infallible. Least privilege is a tax with a pay-off nobody sees, since you cannot photograph the breach that did not happen. And capability is convenience: a read-only agent that finds a broken redirect cannot fix it, so a person does the tedious part after all.
Parts of this are simply right, and our own rule says so. If the site is a staging copy or a disposable sandbox, undo cost is close to zero, so autonomy should be high, and an administrator on a throwaway site is the correct setting. Friction should be removed wherever undo is cheap, which is the opposite of a blanket ban. A restored backup is a control, and so is a revision. The accountability point is fair as well.
Where the argument fails is in what backups and accountability actually cover. A backup restores the database to a moment. It does not recall the email that already went out, the page that was already cached and crawled, or the form entries submitted since the last copy. And an accountable human is slow, visible and reads the room: they hesitate when something looks off. An agent is fast, composed and shares a context with text written by strangers. The master key is tolerable in human hands partly because of the human’s friction, and friction is exactly what the agent removes.
The opposite camp, the one that says never, deserves a short answer too. A flat ban on all access makes the agent useless for reads and drafts, where the risk is lowest, and it pushes people to share their own admin login to get anything done, which is the worst of both worlds. So the position is neither. Match the key to the building: a master key to a model, a card to the public library, and a vault key only to a person who is standing in the vault.
A day at the library, from first visit to revoke
Put the pieces together and a safe agent session looks like a library visit with an opening time and a closing time. The timeline below shows one. The shape matters more than the details: access begins with a plan and ends with a revocation, and the stages in between climb the floors one at a time.
Two of the stages deserve a note. The first visit is read-only on purpose, because it shows you what the agent asks for before it can change anything, and because checking that the log names the agent’s own user and not yours is the first test of the whole setup. And closing time is a real stage, not a courtesy. Reading the day’s log and returning the card is what keeps a session from quietly turning into a standing arrangement, and standing arrangements are where most real incidents live.
If you take one set of actions from this piece, take these:
- Create a dedicated user for each agent, at the lowest role that fits, with one credential per purpose and an end date.
- Start every new job read-only, then move to drafts, and only then consider the staff room, on staging first.
- Run the blast-radius test on every credential: what can it do in one minute, and what could you not undo by tomorrow morning?
- Cut approval prompts on the cheap floors and make the ones that remain specific, rare and slow to approve.
- Keep sessions that read untrusted text away from write tools and from secrets.
- Read the daily log, and revoke when the job ends.
None of it makes the agent less useful. It makes the day the agent gets something wrong a short one. Library cards expire; so should yours.
A safe session, from start to revoke
Read this next
About this analysis. This is general guidance written by WPresident Editorial from documentation and widely used practice. WPresident has not benchmarked the products or methods described. Interfaces and plan limits change, so check the vendor’s current documentation before you act. Not legal, tax or financial advice. See our editorial policy.
Frequently asked questions
What does least privilege mean for an AI agent?
It means the agent gets only the access its current job needs, for only as long as it needs it. In WordPress terms that is a dedicated user at the lowest role that fits, a credential made for one purpose with an end date, and tools that cannot do more than the job requires. The idea is old and applies to people and scripts too. It matters more for agents because they act quickly, repeat mistakes at scale and read text written by strangers.
Why not give the agent my administrator account?
Because everything the agent does is then done as you, with every capability you hold, and you cannot tell the two apart in the log. If the credential leaks, your own identity has leaked. You also cannot revoke it without locking yourself out. A dedicated user takes a few minutes to create and gives you attribution, a ceiling and a clean way to pull access. The one exception is a throwaway staging copy, where undo cost is close to zero.
Is read-only access really safe?
It is the safest tier, but it is not free of risk. Read access can expose private posts, drafts, user email addresses, order details and settings that contain API keys. It is also the route by which untrusted text, such as comments and form entries, reaches the agent. So fence off secrets and personal data even on a read-only credential, and keep sessions that read untrusted text separate from sessions that can write.
What is prompt injection and does it affect a WordPress site?
Prompt injection is text that tries to give instructions to an AI agent that reads it, such as a comment or form entry telling the agent to take an action. Any WordPress site that lets outsiders submit text, through comments, forms or reviews, and then lets an agent read that text, carries the exposure. You cannot reliably filter it out, so the defence is to limit what the agent can do after reading untrusted content.
How many approval prompts is too many?
There is no fixed number, and we offer none as data. The practical test is whether people still read them. If approvals have become routine and fast, they are rubber stamps. Cut prompts for reads and drafts, which are cheap to undo, and keep them for publishing, settings and anything in the vault, where each one should describe the consequence in plain words. Fewer, more specific prompts get more real attention than many generic ones.
Should the agent work on staging or on production?
Staging first, for anything that changes the site. A staging copy turns most mistakes into rebuilds. Let the agent prepare changes there and have a person promote them. Reading production with a narrow credential is a reasonable exception, as long as secrets and personal data are fenced off. Anything on the staff-room or vault floors should reach production through a person, a backup and a log, never by the agent acting alone.
How long should an agent credential last?
As short as the job. Give each credential an end date when you create it, ideally the end of the session or the project, and revoke it when the work is done. Standing credentials get forgotten, copied into configuration files and left behind. If a job recurs, issuing a fresh credential each time is a small cost that keeps the review habit alive and keeps the list of live keys short enough to read.
What should an agent audit log contain?
For each action: which user, what was done, to which object, when and from where, and ideally the values before and after. It should be readable as a one-screen daily summary grouped by tier, with staff-room and vault actions listed in full. The credential being logged must not be able to edit or clear the log. A log nobody reads, or one the agent can erase, will not help you in an incident.
What is the blast-radius test?
It is a quick question to ask of any credential: what is the worst thing this could do in one minute if the agent were confident and wrong? List what the role permits, imagine the worst misunderstanding and ask which results you could not undo by tomorrow morning. If any answer is that you could not undo it, narrow the credential or add a control, such as staging, a backup or human approval, before you connect it.
Will a better model need fewer restrictions?
A better model may make fewer mistakes, and that is welcome. It does not change the structure of the problem: you still cannot verify its judgement in advance, it still reads text written by strangers and its mistakes still arrive fast. Restrictions that follow undo cost stay sensible however good the model is. What can change is how much friction you add, because capable agents let you spend human attention only where it matters.



