mesh-state-machine

mesh-state-machine — Formalize tool/service lifecycle states

Infrastructure

Usage

mesh state|sm  [args]

Commands

define, transition, status, history, list, graph, validate, reset

Commons Entry


# mesh-state-machine

Formalize tool/service lifecycle states with validated transitions, guards, and history tracking.

## Usage
```bash
mesh state|sm <command> [args]
```

## Commands
- `define [name]` — Create state machine definition (default: tool-lifecycle)
- `transition|tr <entity> <state> [reason]` — Move entity to new state
- `status|st [entity]` — Show current state or all entities
- `history|hist <entity>` — Show transition history
- `list|ls [--state <state>]` — List entities filtered by state
- `graph [definition]` — Show state graph as ASCII
- `validate|val` — Check all entities against definitions
- `reset <entity>` — Remove state tracking

## Default States
draft → testing → active → deprecated → archived

## Tags
lifecycle, state-machine, governance, mesh