<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>State-Machines on Tokenise</title><link>https://tokenise.rosvetic.com/tags/state-machines/</link><description>Recent content in State-Machines on Tokenise</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sat, 14 Nov 2026 11:04:00 +0000</lastBuildDate><atom:link href="https://tokenise.rosvetic.com/tags/state-machines/index.xml" rel="self" type="application/rss+xml"/><item><title>Give the agent a transition table, not a paragraph: order lifecycles that reject every illegal move</title><link>https://tokenise.rosvetic.com/posts/spec-table-order-lifecycle-agent-typescript/</link><pubDate>Sat, 14 Nov 2026 11:04:00 +0000</pubDate><guid>https://tokenise.rosvetic.com/posts/spec-table-order-lifecycle-agent-typescript/</guid><description>&lt;p&gt;Ask an agent for &amp;ldquo;an order that moves from draft to placed to paid to shipped to delivered, and can be cancelled before it ships&amp;rdquo;, and the first draft looks fine. It has a switch on the event, a case per verb, and a &lt;code&gt;default&lt;/code&gt; that returns the current state. The happy path passes. Then someone calls &lt;code&gt;ship&lt;/code&gt; on a draft order and it ships.&lt;/p&gt;</description></item></channel></rss>