---
title: "transition"
description: "Define how state changes over time"
canonical: "https://acs.synapti.ai/capabilities/transition/"
last_updated: "2026-11-16T01:14:10Z"
---

# transition

Define how state changes over time

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/transition/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/transition/SKILL.md) at commit 18c38b74ac21. Ontology version 2.2.0.

Layer: [MODEL](https://acs.synapti.ai/layers/model/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Low |
| Changes state | No |
| Needs checkpoint | No |
| Needs approval | No |
| Overridable | No |
| Blocked from autonomy | No |

No ordering edge and no approval or checkpoint flag constrains where transition runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of transition: 2 relationships with 2 capabilities.** transition has 2 relationships with 2 capabilities: 1 with edges into it and 1 with edges out of it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`state`](https://acs.synapti.ai/capabilities/state/index.md) | Edges into transition | `enables` (into) |
| [`simulate`](https://acs.synapti.ai/capabilities/simulate/index.md) | Edges out of transition | `enables` (out of) |

- `enables`: Unlocks [`simulate`](https://acs.synapti.ai/capabilities/simulate/index.md)
- `enables`: Unlocked by [`state`](https://acs.synapti.ai/capabilities/state/index.md)

## Contract

**Figure: Contract of transition: 3 inputs (1 required), 7 outputs.** transition takes 3 inputs, 1 required (filled pin) and 2 optional (hollow pin), and returns 7 outputs. The tables below list every field.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `from_state` | object | Yes | Initial state |
| `to_state` | object | No | Target state (optional) |
| `triggers` | array | No | What causes transition |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rules` | array | Yes | Transition rules |
| `preconditions` | array | No | Required conditions |
| `effects` | array | No | State changes |
| `evidence_anchors` | array of Anchor (or deprecated string or object) | Yes | What the output is based on, as evidence anchors (Standard v1.2 §6.5). An empty list grounds nothing, and the output is then marked inferred (§3.1). |
| `confidence` | number | Yes | The producer's probability that the output's claim is correct, self-reported unless the host documents a calibration (Standard v1.2 §4.1.1) From 0 to 1 |
| `inference_method` | string | No | How the output was reached when it is not grounded in evidence; with confidence it marks the output inferred (Standard v1.2 §3.1, §4.1.1). A producer should use model_knowledge, deduction, induction, abduction, analogy, statistical, simulation, assumption or an x- vendor value; a grounding policy (§5.20) requires one of them. |
| `uncertainty` | Uncertainty | No | The uncertainty of the output's principal value; its confidence equals the output's confidence (Standard v1.2 §4.1.1) |

The skill returns 7 fields: 5 are in transition's output contract (3 required) and 2 are the skill's own, outside the contract; it leaves out 2 contract fields (inference_method, uncertainty).

| Field of the skill's output | In the output contract |
| --- | --- |
| `rules` | Yes, required |
| `preconditions` | Yes, optional |
| `effects` | Yes, optional |
| `analysis` | No, the skill's own |
| `confidence` | Yes, required |
| `evidence_anchors` | Yes, required |
| `assumptions` | No, the skill's own |
| `inference_method` | Yes, but the skill leaves it out |
| `uncertainty` | Yes, but the skill leaves it out |

## Used in workflows

**Figure: transition in workflows.** 2 workflows use transition, in 2 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`world_model_build`](https://acs.synapti.ai/workflows/world-model-build/index.md): step 7
- [`digital_twin_sync_loop`](https://acs.synapti.ai/workflows/digital-twin-sync-loop/index.md): step 9

## Claude Code skill

**Figure: What the transition skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks transition as read-only, and every tool only reads.

| What they can do | Tools |
| --- | --- |
| Only read | `Read`, `Grep` |
| Run commands, which can change state | none |
| Change files | none |

**Figure: The field names each step of the transition procedure uses.** 5 of the procedure's 6 steps use the name of an input or output field of the transition skill as a word; 3 output fields of 7 are used by no step (analysis, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Identify state variables | `from_state` |  |
| 2. Discover triggers | `triggers` |  |
| 3. Define preconditions |  | `preconditions` |
| 4. Specify effects |  | `effects` |
| 5. Validate completeness |  |  |
| 6. Ground rules |  | `rules`, `confidence` |

Both examples of the skill write out every one of its 7 output fields.

**Figure: The field names each verification check of the transition skill uses.** 2 of the 5 checks use the name of an input or output field as a word; 6 output fields of 7 are named by no check (rules, preconditions, effects, confidence, evidence_anchors and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Each rule has from and to state patterns | `to_state` |  |
| 2. Triggers are specified for each rule |  |  |
| 3. Preconditions are testable |  |  |
| 4. Effects are specific and verifiable |  |  |
| 5. Reachability analysis covers all known states |  | `analysis` |

**Figure: The neighbours the skill lists for transition, checked against the ontology and the catalogs.** The skill lists 6 capabilities as common neighbours of transition; 2 of them have an edge with it in the ontology, and 1 runs next to it, in that order, in a catalog workflow (state most often, 1 time). Under each tile, an edge reads from its source to its target, with transition's symbol in its place: "requires Tr" is a requires edge from the tile's capability to transition, so the tile's capability must run before transition; "Tr precedes" is a precedes edge from transition to the tile's capability.

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`state`](https://acs.synapti.ai/capabilities/state/index.md) | `enables` | 1 times |
| commonly follows | [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | none | never |
| commonly follows | [`discover`](https://acs.synapti.ai/capabilities/discover/index.md) | none | never |
| commonly precedes | [`simulate`](https://acs.synapti.ai/capabilities/simulate/index.md) | `enables` (into it) | never |
| commonly precedes | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | none | never |
| commonly precedes | [`verify`](https://acs.synapti.ai/capabilities/verify/index.md) | none | never |

### Intent

Define the rules governing how a system's state changes over time. This capability captures state machine semantics: what triggers transitions, what preconditions must hold, and what effects occur.

**Success criteria:**
- Transition rules clearly specified
- Preconditions and effects documented
- Triggers identified with evidence
- State machine is deterministic (or non-determinism noted)

**Compatible schemas:**
- `schemas/output_schema.yaml`

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `from_state` | Yes | object | Initial state or state pattern |
| `to_state` | No | object | Target state (optional for discovery mode) |
| `triggers` | No | array | Events or conditions that cause transition |

Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).

### Procedure

1) **Identify state variables**: Determine what can change
   - Extract mutable properties from state model
   - Identify discrete vs continuous variables
   - Note invariants (what cannot change)

2) **Discover triggers**: Find what causes state changes
   - Identify events (user actions, system events)
   - Find conditions (thresholds, timeouts)
   - Note external inputs that affect state

3) **Define preconditions**: Specify when transitions can occur
   - Document required state for transition
   - Identify guards and conditions
   - Note blocking conditions

4) **Specify effects**: Document what changes during transition
   - List state variable changes
   - Note side effects (events emitted, actions taken)
   - Capture ordering constraints

5) **Validate completeness**: Check for missing transitions
   - Identify unreachable states
   - Find states with no outgoing transitions
   - Note non-deterministic cases

6) **Ground rules**: Document evidence for each transition rule
   - Reference code, configuration, or documentation
   - Note confidence in each rule

### Output Contract

Return a structured object:

```yaml
rules:
  - id: string  # Unique rule identifier
    name: string  # Human-readable name
    from: object  # Source state pattern
    to: object  # Target state pattern
    trigger:
      type: string  # event, condition, timeout
      specification: any  # Trigger details
    preconditions: array[string]  # Required conditions
    effects: array[string]  # State changes
    priority: number  # Resolution priority for conflicts
preconditions:  # Required conditions of the rules that apply from `from_state`
  - rule: string  # Rule ID
    condition: string
effects:  # State changes those rules make
  - rule: string  # Rule ID
    change: string
analysis:
  reachability: object  # Which states are reachable
  completeness: number  # Coverage estimate
  non_determinism: array  # Ambiguous transitions
confidence: number  # probability that the rules are complete and correct (§4.1.1)
evidence_anchors: [{ref: "file:line", kind: file}, {ref: "doc:section", kind: x-doc}]
assumptions: []
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `rules` | array | Transition rules |
| `rules[].from` | object | Source state pattern |
| `rules[].to` | object | Target state pattern |
| `rules[].trigger` | object | What causes the transition |
| `rules[].preconditions` | array | Conditions that must hold |
| `rules[].effects` | array | Changes caused by transition |
| `preconditions` | array\<object\> | Conditions required by the rules that apply from `from_state`, each tagged with its rule |
| `effects` | array\<object\> | State changes those rules make, each tagged with its rule |
| `analysis` | object | State machine analysis results |
| `confidence` | number | Probability, 0.0-1.0, that the rules are complete and correct (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to where each rule is defined |
| `assumptions` | array | Assumptions about the state machine |

### Examples

#### Example 1: Order State Transitions

**Input:**
```yaml
from_state:
  entity: "order"
  status: "*"
```

**Output:**
```yaml
rules:
  - id: "order-create"
    name: "Create Order"
    from: { status: null }
    to: { status: "pending" }
    trigger:
      type: "event"
      specification: "OrderCreated"
    preconditions:
      - "cart is not empty"
      - "user is authenticated"
    effects:
      - "order.status = 'pending'"
      - "order.created_at = now()"
      - "emit OrderCreatedEvent"
    priority: 1
  - id: "order-confirm"
    name: "Confirm Order"
    from: { status: "pending" }
    to: { status: "confirmed" }
    trigger:
      type: "event"
      specification: "PaymentReceived"
    preconditions:
      - "payment.amount >= order.total"
      - "inventory available"
    effects:
      - "order.status = 'confirmed'"
      - "order.confirmed_at = now()"
      - "reserve inventory"
      - "emit OrderConfirmedEvent"
    priority: 1
  - id: "order-cancel"
    name: "Cancel Order"
    from: { status: ["pending", "confirmed"] }
    to: { status: "cancelled" }
    trigger:
      type: "event"
      specification: "CancelRequested"
    preconditions:
      - "order.status != 'shipped'"
    effects:
      - "order.status = 'cancelled'"
      - "release inventory"
      - "emit OrderCancelledEvent"
    priority: 2
preconditions:
  - rule: "order-create"
    condition: "cart is not empty"
  - rule: "order-create"
    condition: "user is authenticated"
  - rule: "order-confirm"
    condition: "payment.amount >= order.total"
  - rule: "order-confirm"
    condition: "inventory available"
  - rule: "order-cancel"
    condition: "order.status != 'shipped'"
effects:
  - rule: "order-create"
    change: "order.status = 'pending'"
  - rule: "order-create"
    change: "order.created_at = now()"
  - rule: "order-create"
    change: "emit OrderCreatedEvent"
  - rule: "order-confirm"
    change: "order.status = 'confirmed'"
  - rule: "order-confirm"
    change: "order.confirmed_at = now()"
  - rule: "order-confirm"
    change: "reserve inventory"
  - rule: "order-confirm"
    change: "emit OrderConfirmedEvent"
  - rule: "order-cancel"
    change: "order.status = 'cancelled'"
  - rule: "order-cancel"
    change: "release inventory"
  - rule: "order-cancel"
    change: "emit OrderCancelledEvent"
analysis:
  reachability:
    pending: ["confirmed", "cancelled"]
    confirmed: ["shipped", "cancelled"]
    shipped: ["delivered"]
    delivered: []
    cancelled: []
  completeness: 0.9
  non_determinism: []
confidence: 0.85
evidence_anchors:
  - {ref: "file:app/models/order.rb:45-120", kind: file}
  - {ref: "file:app/services/order_service.rb:15-80", kind: file}
assumptions:
  - "State machine defined in Order model"
  - "All transitions go through OrderService"
```

#### Example 2: Authentication State Transitions

**Input:**
```yaml
from_state:
  entity: "user_session"
  status: "unauthenticated"
```

**Output:**
```yaml
rules:
  - id: "login-success"
    name: "Successful Login"
    from: { authenticated: false }
    to: { authenticated: true }
    trigger:
      type: "event"
      specification: "CredentialsValidated"
    preconditions:
      - "credentials.valid == true"
      - "user.locked == false"
      - "failed_attempts < max_attempts"
    effects:
      - "session.authenticated = true"
      - "session.user_id = user.id"
      - "session.expires_at = now() + 24h"
      - "reset failed_attempts"
    priority: 1
  - id: "login-failure"
    name: "Failed Login Attempt"
    from: { authenticated: false }
    to: { authenticated: false, failed_attempts: "+1" }
    trigger:
      type: "event"
      specification: "CredentialsRejected"
    preconditions: []
    effects:
      - "increment failed_attempts"
      - "if failed_attempts >= max_attempts: lock user"
    priority: 1
  - id: "logout"
    name: "Logout"
    from: { authenticated: true }
    to: { authenticated: false }
    trigger:
      type: "event"
      specification: "LogoutRequested"
    preconditions: []
    effects:
      - "session.authenticated = false"
      - "session.destroy()"
    priority: 1
preconditions:
  - rule: "login-success"
    condition: "credentials.valid == true"
  - rule: "login-success"
    condition: "user.locked == false"
  - rule: "login-success"
    condition: "failed_attempts < max_attempts"
effects:
  - rule: "login-success"
    change: "session.authenticated = true"
  - rule: "login-success"
    change: "session.user_id = user.id"
  - rule: "login-success"
    change: "session.expires_at = now() + 24h"
  - rule: "login-success"
    change: "reset failed_attempts"
  - rule: "login-failure"
    change: "increment failed_attempts"
  - rule: "login-failure"
    change: "if failed_attempts >= max_attempts: lock user"
analysis:
  reachability:
    unauthenticated: ["authenticated", "locked"]
    authenticated: ["unauthenticated"]
    locked: ["unauthenticated"]
  completeness: 0.95
  non_determinism: []
confidence: 0.9
evidence_anchors:
  - {ref: "file:app/controllers/sessions_controller.rb:10-50", kind: file}
  - {ref: "file:app/models/user.rb:80-95", kind: file}
assumptions:
  - "Session timeout handled by middleware"
  - "Lock mechanism implemented in User model"
```

### Verification

- [ ] Each rule has from and to state patterns
- [ ] Triggers are specified for each rule
- [ ] Preconditions are testable
- [ ] Effects are specific and verifiable
- [ ] Reachability analysis covers all known states

**Verification tools:** Read (to verify code references)

### Safety Constraints

- `mutation`: false
- `requires_checkpoint`: false
- `requires_approval`: false
- `risk`: low

**Capability-specific rules:**
- Document non-determinism explicitly
- Flag missing transitions for terminal states
- Note when transitions have side effects
- Do not execute transitions while modeling

### Composition Patterns

**Commonly follows:**
- `state` - State model provides basis for transitions
- `observe` - Observations reveal transition patterns
- `discover` - Discovery finds unknown transitions

**Commonly precedes:**
- `simulate` - Transitions drive simulation
- `plan` - Transitions inform action planning
- `verify` - Transitions specify expected behavior

**Anti-patterns:**
- Never use transition to execute changes (use `mutate`)
- Avoid modeling transitions without state model first

**Workflow references:**
- See `reference/workflow_catalog.yaml#world_model_build` for transitions in world modeling
- See `reference/workflow_catalog.yaml#digital_twin_sync_loop` for transition application
