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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

State Machine Modeling for the AI Era: The Linear Statechart Notation

Miro Samek
Zenodo (CERN European Organization for Nuclear Research)
Model-Driven Software Engineering Techniques
preprint

State Machine Modeling for the AI Era: The Linear Statechart Notation

Miro Samek
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Model-Driven Software Engineering Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon