# Why it works this way

An agent writes analysis code fast and fluently. It also fails quietly, in ways a busy researcher misses:

- It reads "yes" in chat as permission to run something new.
- It fills a gap with a plausible default and does not say so.
- It edits code after you reviewed it. (The gate does not block such an edit; it re-pins the script and tells you.)
- It reports a number that differs from the output file.

None of this needs bad intent. It is what fluent text does when nobody stops it. Mycelium Extra puts a checkpoint at each of these places, where you can see it.

## One idea: decisions stay with you

The agent may propose, write and run. Three things stay yours:

1. **What the analysis is.** Every consequential choice in the plan says who made it: you, the repository, or a default the agent picked. A choice that could change a headline result (a filter, a threshold, a model, a seed) is always asked, never defaulted.
2. **Permission to run.** Approval is a message you type. The agent cannot infer it from a "sounds good".
3. **What counts as checked.** After a run, anything nobody could check is shown as a gap. Unknown is never reported as fine.

## The same habits without the plugin

The plugin is one way to keep these habits. You can keep them with plain files:

| Habit | With Mycelium Extra | By hand |
|---|---|---|
| Write the question before any code | `grill` asks first | Two lines at the top of `PLAN.md` |
| Show each choice and its source | the plan table | A table: step, choice, who decided, why |
| Approve explicitly | `approve`; the gate denies other runs | Commit the plan with a sign-off line |
| Keep quick tries apart from results | `allow explore`; explore runs are flagged | A `scratch/` folder you never cite |
| Check what ran against the plan | receipts, then `verify` | Log command, inputs and exit status; compare by hand |
| Hand off in writing | `handoff` | A short file: goal, next step, decisions, dead ends |

## What it does not do

It is not a security boundary: an agent set on getting around the gate can. It sees only the agent's own tool calls, so a script you run in your own terminal is neither denied nor recorded. It does not catch a wrong model, a batch effect or a filter you approved yourself. It adds no upload of its own: your files reach the model provider as with any agent use, and the two features that send data elsewhere (independent plan review, publishing a report page) ask you first. A run can match its plan and still be wrong science: the check covers what ran, not whether the method is right. The full list is in [what is not guaranteed](https://github.com/mdmanurung/mycelium-extra/blob/main/docs/concepts/not-guaranteed.md).

Next: [Plan](plan.md).
