Docs / Reference
mirror.yaml
The world: the company, its systems and how each is held.
Print its JSON Schema with mirror schema manifest. mirror validate checks a project's files and reports each problem with file and line.
Top level
| Field |
Type |
Needed |
What it is |
apps |
list of App |
No |
|
company |
Company |
Yes |
|
data |
DataScale |
No |
|
devices |
list of Device |
No |
|
infrastructure |
list of map |
No |
|
isolation |
Isolation |
No |
|
links |
list of map of map |
No |
|
models |
list of ModelRoute |
No |
|
name |
text |
Yes |
|
sites |
list of Site |
No |
|
status |
draft or defined |
No |
|
version |
1 |
Yes |
|
AlsoApi
Another API the same host serves, beside the route's own.
| Field |
Type |
Needed |
What it is |
base_path |
text |
No |
|
provider |
anthropic or openai or gemini or aws-bedrock or google-vertex |
Yes |
|
scheme |
bearer or x-api-key or api-key |
No |
|
App
| Field |
Type |
Needed |
What it is |
build |
unavailable |
No |
|
data |
map |
No |
|
described |
Described |
No |
|
hostname |
text |
Yes |
|
id |
text |
Yes |
|
in_place_of |
text |
No |
The product the company uses, which has no twin yet; this one runs instead |
kind |
text |
No |
World-level kind, e.g. code-hosting, team-chat |
product |
text |
No |
The product a twin runs, e.g. gitea |
remote |
McpRemote |
No |
|
rules |
list of Rule |
No |
|
serves |
McpServes |
No |
|
settings |
map |
No |
|
visibility |
granted or denied or present or absent |
No |
|
Behavior
What an operation of a described system does beyond its shape (decision 0034).
| Field |
Type |
Needed |
What it is |
answer |
|
No |
For an operation that keeps nothing: the body it answers with |
on |
text |
Yes |
The operation: its operationId, or METHOD /path |
set |
map |
No |
Fields it sets on the record |
status |
whole number |
No |
With answer: the status it answers with (the declared one) |
transitions |
map of map of list of text |
No |
For a field, the values each value may change to; any other change is refused |
Company
| Field |
Type |
Needed |
What it is |
domain |
text |
Yes |
|
history_days |
whole number |
No |
|
industry |
text |
No |
|
name |
text |
Yes |
|
seed |
whole number |
Yes |
|
size |
whole number |
No |
Number of people |
tidiness |
tidy or realistic or messy |
No |
|
Credential
| Field |
Type |
Needed |
What it is |
from_env |
text |
Yes |
|
inject |
header |
No |
|
scheme |
bearer or x-api-key or api-key |
No |
How the key is sent, when a gateway in front of the model wants it another way than the provider does: bearer (Authorization: Bearer <key>), x-api-key, or api-key (Azure). Left out, the provider's own way. |
DataScale
| Field |
Type |
Needed |
What it is |
canaries |
whole number |
No |
|
issues |
whole number |
No |
|
messages |
whole number |
No |
|
repositories |
whole number |
No |
|
Described
A system built from a description, where the world has no real software to run.
| Field |
Type |
Needed |
What it is |
behavior |
list of Behavior |
No |
|
data |
map of text |
No |
A collection's records from a file of your own (a JSON or YAML list) |
records |
map of whole number |
No |
How many records to generate in a collection (12 where not said) |
role |
desk |
No |
desk: the work queue the built-in industry use cases run on (decision 0035) |
spec |
text |
Yes |
An OpenAPI 3 file in the world's folder |
start |
map of text |
No |
A collection's records to start from, in a file (a list): each is completed from the world, so a record may give only its subject |
Device
| Field |
Type |
Needed |
What it is |
at |
text |
Yes |
site/floor/room |
id |
text |
Yes |
|
platform |
text |
Yes |
|
protocol |
text |
No |
How the device is reached: rest or mqtt, the protocols the mirror captures. Left out, it follows from the platform |
sensitivity |
normal or restricted |
No |
|
type |
text |
Yes |
|
Floor
| Field |
Type |
Needed |
What it is |
id |
text |
Yes |
|
rooms |
list of text |
No |
|
Isolation
| Field |
Type |
Needed |
What it is |
runtime |
auto or gvisor or default |
No |
|
McpRemote
| Field |
Type |
Needed |
What it is |
auth |
oauth |
No |
|
hostname |
text |
Yes |
|
McpServes
| Field |
Type |
Needed |
What it is |
backed_by |
list of text |
No |
|
surfaces |
text |
No |
File mapping each tool to the twin operations it calls (decision 0009) |
tools_from |
map |
Yes |
file, import, or catalog |
ModelRoute
| Field |
Type |
Needed |
What it is |
also |
list of AlsoApi |
No |
Other APIs the same host serves. A gateway in front of many models often takes Anthropic's and OpenAI's shapes side by side: the route's own provider is one, and each entry here is another, with its own base_path where it differs. |
base_path |
text |
No |
Where the API lives on the host when it is not the provider's usual /v1: for example /api/v1, /openai/v1, or empty for none. The path that comes before /chat/completions or /messages. |
credential |
Credential |
No |
|
host |
text |
Yes |
|
hosted_tools |
block or flag or allow |
No |
|
name |
text |
Yes |
|
provider |
openai or google-vertex or azure-openai or anthropic or aws-bedrock or self-hosted or gemini |
Yes |
|
upstream |
text |
No |
self-hosted only: the one address and port this route may reach |
Rule
| Field |
Type |
Needed |
What it is |
input |
map |
No |
|
match |
map |
Yes |
|
name |
text |
Yes |
|
output |
map |
No |
|
when |
map |
No |
|
Site
| Field |
Type |
Needed |
What it is |
floors |
list of Floor |
No |
|
id |
text |
Yes |
|
name |
text |
Yes |
|
utc_offset |
text |
No |
Local time at the site, as an offset from UTC: people's hours follow it |
This page is written from the program itself when the site is built.