Docs / Reference
mirror scenario
Scenarios, built-in and the project's own.
Mostly read byQA and test engineers
Its commands: list, show, new, ops, check, try, remove.
mirror scenario <command>
mirror scenario list
Every scenario: id, kind, how the work arrives, and where it comes from.
mirror scenario list
mirror scenario show
One scenario as the runner reads it.
mirror scenario show <scenario_id>
| Argument | Needed | What it is |
|---|---|---|
scenario_id |
Yes | A scenario id. |
mirror scenario new
Start a scenario of your own: a copy, a variant, or from nothing. With no options it asks its questions. With options it asks nothing, so a script or a coding agent can use it.
mirror scenario new [scenario_id] [options]
| Argument | Needed | What it is |
|---|---|---|
scenario_id |
No | The new scenario's id, such as rotate-payments-key. |
| Option | Takes | What it does |
|---|---|---|
--from |
text | Copy this scenario, written in this world's names. |
--variant-of |
text | The same scenario and checks, another way in. |
--tools |
text | With --variant-of: the MCP tools the agent works through. |
--title |
text | The work, in a few words. |
--kind |
text; default functional |
functional, injection or permission. |
--acts-as |
text; default engineer |
A role, or a person as @username. |
--delivery |
text; default mattermost.direct_message |
How the work arrives, from: mirror scenario ops |
--in |
text; default `` | The repository, channel or collection the work arrives in. |
--asked-by |
text; default manager |
The role that asks. |
--text |
text | What the work says. |
--text-file |
path | A file holding what the work says. |
--max-minutes |
number; default 20 |
|
--replace |
nothing (a switch) | Replace a scenario that has this id. |
--print |
nothing (a switch) | Print the file instead of writing it. |
mirror scenario ops
What a scenario can do here: overlay steps, ways to deliver work, and checks.
mirror scenario ops [system] [options]
| Argument | Needed | What it is |
|---|---|---|
system |
No | Only these: gitea, mattermost, described, device. |
| Option | Takes | What it does |
|---|---|---|
--all |
nothing (a switch) | Every kind of system, not only this world's. |
mirror scenario check
Check a scenario before any run: its shape, its operations and this world's names.
mirror scenario check <scenario_id>
| Argument | Needed | What it is |
|---|---|---|
scenario_id |
Yes | A scenario id, or a file. |
mirror scenario try
Rehearse a scenario in the sandbox with no agent. Restores the world, applies the overlay, delivers the work and judges the checks with nothing done. A scenario that cannot be set up, fails before any work, or passes with none is found here instead of in a run.
mirror scenario try <scenario_id> [options]
| Argument | Needed | What it is |
|---|---|---|
scenario_id |
Yes | A scenario id. |
| Option | Takes | What it does |
|---|---|---|
--keep |
nothing (a switch) | Leave the world as the agent would find it, to look at. The next run restores it. |
mirror scenario remove
Remove one of this world's own scenarios. Built-in ones stay.
mirror scenario remove <scenario_id>
| Argument | Needed | What it is |
|---|---|---|
scenario_id |
Yes | A scenario of this world's own. |
The same, from an AI agent
The operator MCP server offers these tools for it:
list_scenarios: The scenarios that can be run: id, kind, how the work arrives, suites.scenario_operations: What a scenario can do in the chosen world: each operation with its arguments, in plain words.findnarrows it (a word such as issue, message or record).new_scenario: Draft a scenario and return it as YAML, with what the checks say.copy_ofstarts from an existing scenario, in this world's own names;variant_ofmakes the same work through MCPtoolsonly; with neither, a blank one to fill in. Nothing is written until save_scenario.check_scenario: Check a scenario's YAML without saving it: its shape, the operations and arguments it uses, and that every name it mentions exists in the chosen world.save_scenario: Write a scenario to the chosen world's scenarios folder, as given. Its shape must be right; what else the checks find is reported.replaceoverwrites one of the same id.rehearse_scenario: Try a scenario in the sandbox with no agent: that it can be set up, that it does not pass before any work, and that it does not fail before any. Needs the world built. Costs no model calls.
This page is written from the program itself when the site is built.