You set the task.
Follow each step.
Interactive demo · Illustrative output
fix the failing test
- Thinking
- Read src/lib.rs
- Read tests/add.rs
- Thinking
- Edit src/lib.rs (+1 −1)
Your decision.
Approve or refuse the demo command.
fix the failing test
- Thinking
- Read src/lib.rs
- Read tests/add.rs
- Thinking
- Edit src/lib.rs
Run a program?
cargo test
in: demo workspace
for: fix the failing test
Full command, exactly as it will run (nothing is cut; hidden characters are written out):
program: "cargo"
arguments: ["test"]
folder: "demo workspace"
Interactive demo · Illustrative output
No option is selected.
You refused.
The command stops here.
In this demo, cargo test was not executed.
- Thinking
- Read src/lib.rs
- Read tests/add.rs
- Thinking
- Edit src/lib.rs (+1 −1)
Run a program?
cargo test
in: demo workspace
Command refused.
Decision: Refuse
cargo test was not run.
Interactive demo · Illustrative output
The change
remains.
commit created
Illustrative demo artifact
The commit asked for your approval too.
- Thinking
- Read src/lib.rs
- Read tests/add.rs
- Thinking
- Edit src/lib.rs (+1 −1)
- Decision: Allow
- Run cargo test
- Verify
Fixed and verified
Interactive demo · Illustrative output
Three principles
- Nothing runs without your answer.
- Your code goes only to the provider you approve.
- Your tests decide. Not the model.