<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>State Machine on Xomaps Tech Blog</title><link>https://blog.xomaps.com/en/tags/state-machine/</link><description>Recent content in State Machine on Xomaps Tech Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 28 Nov 2026 09:00:00 +0800</lastBuildDate><atom:link href="https://blog.xomaps.com/en/tags/state-machine/index.xml" rel="self" type="application/rss+xml"/><item><title>Differential Sync and State Convergence for Fieldwork Tasks: Set Difference, Data-Fact Ground Truth, and Three-Way Fallbacks</title><link>https://blog.xomaps.com/en/post/task-diff-sync/</link><pubDate>Sat, 28 Nov 2026 09:00:00 +0800</pubDate><guid>https://blog.xomaps.com/en/post/task-diff-sync/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is a task-consistency note, scoped to spot tasks and real-scene tasks in media-delivery fieldwork. Method names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is maintaining the task set and deciding task state, not crew scheduling or performance evaluation.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The conclusion first: &lt;strong&gt;task state should be decided by data facts, not event order; the task set should be reconciled by set difference, not rebuilt wholesale on range changes.&lt;/strong&gt; Three judgments up front: 1) the cost of delete-and-rebuild is not performance but losing photo associations, completion progress, and assignees attached to existing tasks — no rework for field crews is a hard constraint; 2) upload success, photo deletion, and manual marking inevitably arrive out of order, duplicated, or missing in a distributed setting, and an event-driven state machine freezes those disturbances into state; 3) once successful image count versus photo requirement is the ground truth, convergence needs no event history, and three complementary scheduled fallbacks cover every direction of deviation.&lt;/p&gt;</description></item></channel></rss>