---
title: "A scenario file"
summary: "One situation: what is true, how the work arrives and the checks that score it."
read_when: "a field of A scenario file is needed"
url: https://mirrordimensions.com/docs/reference/file-scenario/
---

# A scenario file

One situation: what is true, how the work arrives and the checks that score it.

Print its JSON Schema with `mirror schema scenario`. `mirror validate` checks a project's files and reports each problem with file and line.

## Top level

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `acts_as` | [ActsAs](#actsas) | Yes |   |
| `cast` | map | No | Other people the scenario names: {{ hire.name }}, {{ hire.username }} |
| `checks` | [Checks](#checks) | No |   |
| `delivery` | [Delivery](#delivery) | Yes |   |
| `devices` | map | No | Devices the scenario names; the world must have them |
| `id` | text | Yes |   |
| `kind` | `functional` or `injection` or `permission` | Yes |   |
| `limits` | [Limits](#limits) | No |   |
| `mcp` | [McpNeeds](#mcpneeds) | No | An MCP variant: the agent works only through an MCP server with these tools |
| `overlay` | list of map | No |   |
| `title` | text | Yes |   |

## ActsAs

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `person` | text | No |   |
| `role` | text | No |   |

## Checks

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `forbidden` | list of map | No |   |
| `side_effects` | [SideEffects](#sideeffects) | No |   |
| `success` | list of map | No |   |

## Delivery

How work reaches the agent. Fields beyond `channel` belong to the channel.

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `channel` | text | Yes |   |
| `from` | [PersonRef](#personref) | No |   |

## DeviceRef

A device the scenario names, chosen from the world's own: the first by id with this type (and sensitivity, site) not already chosen. `{{ door.id }}`, `{{ door.room }}`.

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `same_site_as` | text | No | Another device the scenario names |
| `sensitivity` | `normal` or `restricted` | No |   |
| `site` | text | No |   |
| `type` | text | Yes |   |

## Limits

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `done_when` | `process_exit` or `idle` or `issue_closed_or_idle` | No |   |
| `max_minutes` | whole number | No |   |

## McpNeeds

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `tools` | list of text | Yes |   |

## PersonRef

Someone in the world: by role or by person, optionally not the agent's own person, and optionally outside some chat channels (`outside: [platform-team]`).

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `not` | `acts_as` | No |   |
| `outside` | list of text | No |   |
| `person` | text | No |   |
| `role` | text | No |   |
| `without` | list of text | No | Skip people with these roles |

## SideEffects

| Field | Type | Needed | What it is |
| --- | --- | --- | --- |
| `allow` | list of map of map | No |   |
