{"slug": "linear-statechart-notation-state-machine-modeling-for-the-ai-era", "title": "Linear Statechart Notation: State machine modeling for the AI era", "summary": "A new Linear Statechart Notation keeps statechart diagrams editable as plain XML text by removing free geometry, so AI systems can read and write models as text while people still see a drawing. The notation ships with an interactive browser demo that loads three sample models, including a toaster oven and a PELICAN crossing, plus user-supplied .qmodel files, and syncs a drawing view with the underlying XML so hovering or clicking an element in one view highlights it in the other. Every edit, whether made in the drawing or the XML, is one step of a single Undo/Redo stack, and the demo is read-only on phones.", "body_md": "AI Statechart: Linear Statechart Notation (interactive demo)\n\nLinear Statechart Notation: State machine modeling for the AI era\n\nConventional statechart diagrams tie the behavior to geometry: every box position and arrow route is stored with the model. For an AI that reads and writes models as text, that geometry is noise; for people, it is the essence. The Linear Statechart Notation keeps the drawing and removes the free geometry.\n\nPick a model from the drop-down box (the toaster oven, the PELICAN crossing, or a test model with every kind of transition), or open your own .qmodel file.\n\nHover over the drawing: each state or transition lights up, together with its lines in the XML, so you can see exactly which text produces which part of the drawing.\n\nClick an element in the drawing or in the XML, and the other view follows; a selected transition lights the states it exits and the state it enters. Then move it (Up/Down), delete it, or edit the XML: the drawing redraws instantly, and Undo takes back any step.\n\nOpen the Quick guide for folding, outline levels, keyboard shortcuts, and all the ways to edit in the drawing.\n\nOn a phone the demo is read-only; open this page in a desktop browser to edit models.\n\nRead the drawing\n\nEach state is a row with a red rail; substates are indented under it, with a vertical nesting guide.\n\nUnder each state: entry/exit, initial transition (filled ball), history (H or H*) and one row per trigger.\n\nEach transition runs in a vertical lane and ends with an arrowhead on its target's rail. A dot is a junction; a square end means an internal transition. Diamonds are choices.\n\nExplore\n\nClick a row to select it: a state lights its transitions; a transition lights the states it exits and the state it enters.\n\nClick a triangle or diamond to fold. Level buttons (keys 1...9, 0 = all) show the machine down to that depth.\n\nUp/Down move between rows. Actions shows the action code (or its brief: a leading // comment).\n\nEdit in the drawing\n\nUp/Down buttons (Alt+Up/Alt+Down): move a state among its siblings, a transition within its state, a choice segment among its siblings.\n\nDelete (Del): delete a state with its substates (transitions into it become internal), a transition, a choice segment, an entry/exit action or a history.\n\nF2 rename a state or trigger, or edit a guard. t new transition. Tab/Shift+Tab move a state under its previous sibling / out of its superstate.\n\nDrag an arrowhead onto another state's rail to retarget it; drop it elsewhere (or i) to make it internal. Drag a square end onto a rail to attach it.\n\nc adds a choice segment to a square end (a guard, or else).\n\nShift+H cycles a state's history (none, shallow, deep); drop an arrowhead on an H row, or press h, to enter through history.\n\nEdit the text\n\nShow XML displays the model file: the only copy of the model. Select in either view; the other follows.\n\nType in the XML: the drawing follows every edit. Changed lines flash; problems are listed below the drawing.\n\nEvery edit, in the drawing or in the text, is one step of a single Undo/Redo stack (Ctrl+Z/Ctrl+Y).\n\nOpen your own .qmodel file from the model list, and Download the edited one.\n\nMore\n\nThe paper specifies the notation and the QModel file format.", "url": "https://wpnews.pro/news/linear-statechart-notation-state-machine-modeling-for-the-ai-era", "canonical_source": "https://www.state-machine.com/ai-statechart/", "published_at": "2026-12-03 09:57:49+00:00", "updated_at": "2026-12-03 10:17:44.639551+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-tools", "developer-tools"], "entities": ["Linear Statechart Notation", "QModel"], "also_reported_by": [], "takeaway": "Statechart models stored as geometry-free XML let an AI read and write them as text while the drawing is regenerated from that text, with drawing and XML edits sharing one Undo/Redo stack.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/linear-statechart-notation-state-machine-modeling-for-the-ai-era", "markdown": "https://wpnews.pro/news/linear-statechart-notation-state-machine-modeling-for-the-ai-era.md", "text": "https://wpnews.pro/news/linear-statechart-notation-state-machine-modeling-for-the-ai-era.txt", "jsonld": "https://wpnews.pro/news/linear-statechart-notation-state-machine-modeling-for-the-ai-era.jsonld"}}