> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Twin decisions

> What you decided about the twin (twin.yaml in the project directory): kept across rebuilds.

Schema: `urn:hex65:schema:twin-config:v1`. Every field below comes from the schema; the schema decides.

Twin decisions (plan section 5.5.2, F-TWN-02): what `twin review` decided about the API-tool twin, applied at every build and kept across rebuilds. YAML 1.2 read with the core schema; unknown keys are errors.

## Fields

| Field | Type | Required | Meaning |
| - | - | - | - |
| `version` | `1` | no | The format's version; 1 when absent. |
| `servers` | object | no | Decisions per MCP server, by the server's name as recordings name it. |
| `not_modeled` | list of see NotModeled | no | What the twin leaves out, said by the user (F-TWN-12). |

## Name

1 to 200 characters, without control characters

A value of type string.

## ToolName

an MCP tool name: 1 to 128 ASCII letters, digits, \_, - and .

A value of type string.

## ArgPath

a path into the call's arguments: args, then .name or \[] (any item of a list)

A value of type string.

## ResultPath

a path into the call's result: result, then .name or \[] (any item of a list)

A value of type string.

## ToolDecision

| Field | Type | Required | Meaning |
| - | - | - | - |
| `class` | one of `"read"`, `"write"`, `"effect"`, `"unknown"` | no | read changes nothing; write changes the twin's records; effect acts on the world and is intercepted; unknown is treated as effect |
| `entity` | object | no | |
| `entity.type` | string | yes | the entity type: lower-case letters, digits and \_ |
| `entity.id_path` | see IdPath | yes | |
| `entity.scoped` | boolean | no | the identifier is unique only within the entity whose list holds these objects (an order's line items): ids are scoped by that entity, so item 1 of two orders is two objects |
| `state_rules` | list of see StateRule | no | |
| `rejected_rules` | list of see RuleTarget | no | inferred state rules refused: the fields they set (a build no longer proposes them) |
| `effect_key` | list of see ArgPath | no | the arguments that make two calls the same effect (a repeat) |
| `volatile` | list of see ArgPath | no | arguments left out when matching a call to a recording (request ids, client timestamps, cursors) |
| `free_form` | list of see ArgPath | no | arguments of free text, matched loosely |

## StateRule

| Field | Type | Required | Meaning |
| - | - | - | - |
| `set` | see RuleTarget | yes | |
| `from` | see ArgPath | yes | |

## NotModeled

| Field | Type | Required | Meaning |
| - | - | - | - |
| `surface` | string | yes | what is left out: a server, or server.tool |
| `description` | string | yes | 1 to 2,000 characters |
| `severity` | one of `"info"`, `"limits"`, `"blocks"` | yes | limits: results for affected cases are qualified; blocks: affected cases are quarantined |

## IdPath

where an entity's identifier is in the call's result: result, then .name or \[] (any item of a list), ending in the identifier's key

A value of type string.

## RuleTarget

the field a write sets: entity type, the argument naming the entity, then the field, as ticket\[args.id].status

A value of type string.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.