“I run the tests.” 4 of 4 tests pass.
Chapter 6 of 7
What it may run
The fix is green and honest. Mira’s ticket asks the agent to push it for review, and it reaches for git.
This chapter: Which commands should an agent run alone, ask about, or never run?
About this chapter
You will learn
- An allow-list of safe commands
- Ask a person before the rest
- A never list the host refuses
Words you’ll meet
- Allow-list
- The commands the host runs without asking anyone.
- Ask first
- The host pauses and shows a person the command, who approves it or says no.
- Force push
- A git push that replaces the shared branch with yours, losing others’ work on it.
Step 1 of 5
Green. Now the agent asks the host to run a to main: git push --force origin main.
Predict what happens with no rules.