How changes work¶
sfe reads by default. It never changes one of our systems on its own, and neither does a coding agent that uses it. When a change is needed, it goes one of two ways. It is written down as a plan, for a person to apply later. Or a window opens on the person's screen, shows the exact change, and asks. Anything else is refused by a guard. This page shows where we can see all of that. Everything on this page only reads: we do not make a plan, apply one or change a setting here.
Video, about two and a half minutes, with narration and captions.
Words we use on this page¶
- Write: any command that changes something, such as editing a record, posting a comment or deploying. A command that only looks is a read.
- Write access: permission for agents to try a write on one system and one environment. It is closed unless a person opens it.
- Plan: one exact change, written down with the reason, saved as a file on this Mac. A plan changes nothing by itself.
- sfe-apply: the command a person runs, in their own terminal, to apply a plan.
- The window on the screen: a prompt that shows one exact change and waits for Allow or Deny.
- Guard: the check that runs before each command an agent wants to run, and refuses a change nobody allowed.
- Production: the real system that students and staff use. In sfe it is shown in red.
- Seal: an optional extra. It signs the decisions a person made, so a program that edits a file cannot change them.
Before you start¶
- sfe is installed and our pack is on. If it is not, we do that first: The path at a glance.
- Nothing else. The commands on this page need no sign-in, because they look at settings on this Mac.
Note
The pictures show this Mac on the day we made the page. Two places were open for writing then, because a person had opened them. On a fresh install, everything is closed.
Steps¶
1. See what is open for writing¶
We type sfe write status and press Enter.

Each row is a system. off means nothing can be written there. ON means a person opened it, for the environment named next to it. Here two are open: the Salesforce DevFull sandbox, and the Jira project ENG27.
The lines below the table say who may use that access. An agent may run a write on something that is ON, but only after we say yes to that command in a prompt on the screen. They also say how to close it again: sfe write deny <system>, or sfe write deny all.
Look at the line about the seal. While the seal is off, nothing that is production can be opened for an agent.
2. Read the write commands¶

| Command | What it does |
|---|---|
sfe write status |
Shows what is open. It only reads |
sfe write allow <system> <environment> |
Opens write access. A person runs this, in their own terminal |
sfe write ask <mode> |
Chooses what happens to a write on something closed: refuse it, or put it to us in a prompt |
sfe write deny <system> [environment] |
Closes write access again |
sfe write plan <command> |
Writes a change down for a person to apply later. The agent never runs it |
sfe write list |
Shows the saved plans and their status |
We do not run allow, ask, deny or plan on this page, because they change a setting or save a plan.
3. Follow the path of a change¶

A change is asked for, by us or by an agent. Then one of two things happens:
- Write access is closed. The change is written down as a plan. Nothing runs. A person looks at the plan and runs it later, by hand.
- Write access is open. A window opens on the person's screen. It shows the exact command and asks. Allow runs it. Deny stops it. If nobody answers in two minutes, that counts as no.
The window is the important part. A change that an agent asks for is shown to a person as the exact command, so nobody has to guess what "yes" means.
4. Read how a plan is written¶
When write access is closed, an agent does not look for another way. It writes the change down:

A plan holds the system, the environment, what the change does (--what), why it is needed (--why), and the exact command after two dashes. Saving a plan writes a file on this Mac only. It never changes a WGU system.
5. Apply a plan ourselves¶

We read the plan first. Then we run sfe-apply <plan-id>, in our own terminal, never inside an agent. sfe-apply asks us to type the name of the environment before anything runs. If we change our mind, we stop there and nothing happens.
6. Production is read-only by default¶
Production is closed unless a person decides otherwise:
- Without the seal, nothing that is production can be opened for an agent at all. A write that an agent tries on production is refused, and the answer is a plan.
- With the seal set up, a person can open production by typing its name out in full, and the access closes again within 12 hours at most.
- Opening, closing and typing are always done by a person.
sfe write allowis refused inside an agent.
The same is true for the databases. The ORC database is read-only in every environment: see The ORC database.
7. Check the guard¶
sfe doctor security lists the checks on the guard and the settings around it.

Three lines matter here:
- write access for agents lists what is open, and says that each write is confirmed by us. It is marked with a circle, not a tick, because it is open here. On a fresh install it says everything is closed.
- the answer to a write says that no answer is kept in a file. So each write an agent runs is asked about on the screen, every time.
- sfe safety mode is read-only is the default, and the tick means it is on.
If we ever want to know where sfe stands on the seal, sfe seal status says whether it is on or off. It only reads.
What is a person's alone¶
Some commands are refused inside an agent, and need a person at a terminal: sfe write allow, sfe pack use, sfe pack trust, sfe configure accept, sfe agent uninstall, sfe shield off and sfe-apply, among others. Most of them also show a window that says what is about to change, and go on only on Allow.
Jira is the one system where sfe makes the change itself, with commands such as sfe jira comment and sfe jira transition. They go through the same guard and show the same window. Write access is opened for one Jira project at a time.
What we should see¶
offfor every system we have not opened, andONwith an environment for each one we have.- A circle, not an error, next to
write access for agentsinsfe doctor securitywhen something is open. - A tick next to
sfe safety mode is read-only.
Troubleshooting¶
| What we see | Likely cause | What to do |
|---|---|---|
refused by the read-only policy, and the exit code is 3 |
The command would change something, and nobody opened write access for it | Nothing is broken. We ask for a plan with sfe write plan, or a person opens write access with sfe write allow |
| An agent says a write on production was refused | Production cannot be opened for an agent while the seal is off | Ask the agent to write a plan. We apply it ourselves with sfe-apply |
| A window appears and we did not expect it | An agent is about to run a change | Read the command in the window. Click Deny if it is not what we asked for |
| A window appeared and nothing happened after | Nobody answered within two minutes, which counts as no | Ask again, and answer the window |
| Write access was open, and now a write is refused | The environment now points somewhere else, so the old permission no longer covers it | Check with sfe write status, and open it again with sfe write allow |
| We want to close everything | Run sfe write deny all |
Next¶
- When something is wrong, for the messages we may see.
- Look into a ticket or incident, where we only read.
Last reviewed: 2026-12-01