State Machine Modeling for the AI Era: The Linear Statechart Notation
Hierarchical state machines (statecharts) are among the most effective ways to specify event-driven software, and AI tools now use them as the picture in which people review behavior worked out by an AI. The traditional two-dimensional statechart notation, however, binds the behavior to geometry: graphical tools store the position of every state box and the route of every transition with the model. For AI assistants, which read and write models as text, this geometry is noise; for people, it aids understanding but must be maintained by hand. This paper describes the Linear Statechart Notation, which keeps the drawing and removes the free geometry. Like the tree view of a file system, a state machine is drawn as an outline of rows in model order. Each state is a named horizontal line (a rail), nesting is shown by indentation, and each transition is a vertical arrow that ends on the rail of its target state; transitions to the same state share one lane, like wires in a schematic. Composite states fold like code blocks in an editor. The drawing is a deterministic function of a model without coordinates, so it changes only where the model changes, differences between versions are purely semantic, and a model edited by a human or an AI is drawn immediately. We specify the notation and its textual model format, compare it with conventional diagrams, and enumerate variations. The notation is disclosed as prior art, free for anyone to use. An interactive demonstration is available at https://www.state-machine.com/ai-statechart.
Authors
- Miro Samek (ORCID: https://orcid.org/0000-0002-9171-912X)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24519410
- Primary Topic
- Model-Driven Software Engineering Techniques
- Type
- preprint