A new trade business needs its tools to arrive as a coherent system, not as a collection of disconnected tasks. At Neuron Expert, the setup covers the owner’s own CRM, website, business phone number with an AI receptionist, and listings. We model that setup as an ordered state machine: every piece of work has an owner, a visible status, timestamps, and a record of hands-on time. The problem is not a checklist A checklist can say that a website exists or that a profile is pending. It cannot answer the operational questions that arise during setup: Which step is currently blocking the next one? Is the next action with an automated session, a browser agent, the client, or Neuron’s owner? Has work started but not finished? Is a delay caused by client verification rather than internal work? How much hands-on time did a person spend on each step? Those questions matter because the setup has a fixed sequence and is completed within seven working days after intake is complete and setup is paid. A board built from mutable notes makes these answers hard to trust. A board built from explicit state has a consistent source of truth. The model is intentionally about the owner’s tools. It is not a system for selling market outcomes. The client forms their own legal entity, holds their own trade licence where one is required, and carries their own insurance. Model the launch separately from its steps There are two related state machines. The launch lifecycle describes the setup as a whole: intake paid in_progress handed_over cancelled The launch moves from paid to in_progress when its first step starts. Keeping this rule in the domain model avoids a common board inconsistency: rows look active while the parent launch still appears paid. Each step has its own lifecycle: todo in_progress waiting_client done skipped A step state answers a narrower question than the launch state. A launch may be in progress while one step waits for the client and other eligible work continues. Conversely, a completed individual step says nothing by itself about whether handover is ready. The important design choice is that status is not inferred from a vague message or a timestamp alone. It is a first-class value with transition rules. Make ordering data, not convention The setup contains eleven ordered steps: domain site with its SEO core pages phone number receptionist search indexing Google Business Profile created Google Business Profile verified by the client directory listings ads review call handover Storing this order in a definition table rather than relying on screen placement gives the application a stable basis for deciding what is actionable. The board can sort from that definition, while the workflow can refuse to start a later required step while an earlier required one remains unresolved. A definition also holds each step’s default owner. The available owners are an automated session, a browser agent, the client, and Neuron’s owner. The runtime record stores a different concern: what happened for one specific launch. This distinction handles an easily missed case: a step that was never stored should still appear on the board. Rather than creating eleven placeholder records at launch creation, the read model overlays stored records onto the definitions. Missing data becomes todo with the configured default owner. That gives the UI a full board from the start, while persistence contains only exceptions and actual work. Keep elapsed time separate from hands-on time Timestamps allow us to measure wall-clock duration, but wall-clock duration is not effort. A Google Business Profile verification may remain in waiting_client for a while without adding any hands-on work by Neuron’s owner. For that reason, every stored step record has separate fields for: when the step started when it was done or skipped hands-on minutes spent by a person Hands-on minutes are accumulated deliberately when a person works the step. They are not calculated from startedAt and completedAt. That prevents waiting time, overnight time, and client response time from being reported as staff effort. Here is a simplified TypeScript sketch. The production version would also persist these transitions atomically and record who made each change. type LaunchStatus = | "intake" | "paid" | "in_progress" | "handed_over" | "cancelled"; type StepStatus = | "todo" | "in_progress" | "waiting_client" | "done" | "skipped"; type Owner = | "automated_session" | "browser_agent" | "client" | "neuron_owner"; type StepId = | "domain" | "site" | "phone_number" | "receptionist" | "search_indexing" | "gbp_created" | "gbp_verified" | "directory_listings" | "ads" | "review_call" | "handover"; type StepDefinition = { id: StepId; order: number; defaultOwner: Owner; required: (plan: string) => boolean; }; type StoredStep = { id: StepId; status: Exclude; owner: Owner; startedAt?: Date; completedAt?: Date; handsOnMinutes: number; }; type VisibleStep = Omit & { status: StepStatus; startedAt?: Date; completedAt?: Date; handsOnMinutes: number; }; function readStep( definition: StepDefinition, stored?: StoredStep, ): VisibleStep { return { id: definition.id, order: definition.order, defaultOwner: definition.defaultOwner, status: stored?.status ?? "todo", startedAt: stored?.startedAt, completedAt: stored?.completedAt, handsOnMinutes: stored?.handsOnMinutes ?? 0, }; } function applyStepStatus( launchStatus: LaunchStatus, step: VisibleStep, next: StepStatus, now: Date, ): { launchStatus: LaunchStatus; step: VisibleStep } { if (step.status === "done" || step.status === "skipped") { throw new Error("A completed step cannot be reopened here"); } const startedAt = next === "todo" ? undefined : step.startedAt ?? now; const completedAt = next === "done" || next === "skipped" ? now : undefined; return { launchStatus: launchStatus === "paid" && next === "in_progress" ? "in_progress" : launchStatus, step: { ...step, status: next, startedAt, completedAt }, }; } Enter fullscreen mode Exit fullscreen mode The readStep function is the key to the absent-record rule. It gives consumers a usable step whether persistence contains a row or not. A stored row overrides the default, but definitions retain responsibility for order and default ownership. Treat client-owned work as a real state Google Business Profile creation and verification are separate steps because verification needs the client’s own hands. Combining them would hide the handoff: the team may have completed profile creation, while the remaining action belongs to the client. The board represents that distinction with waiting_client and the client owner. This is more informative than marking the entire launch blocked. It also makes reminders specific: the question is not “why is setup late?” but “which client action remains?” The same pattern applies to plan-dependent work. Ads is a step only for a plan that includes Ads, Crew and up. For other plans, the step can be marked skipped with a completion timestamp, preserving the fixed sequence without pretending that work is pending. Nothing is spent without the client’s own budget. Use completion rules for handover Handover is not merely the absence of open tasks. It follows a review call and includes a written list of what was set up and where, with logins handed to the client. A useful completion check asks whether every required earlier step is either done or skipped, whether the review call is complete, and whether the handover record itself is complete. Only then should the launch move to handed_over. This model makes a board useful for both execution and audit. A viewer can see the ordered path, the current holder of each action, where client participation is needed, and hands-on minutes without confusing elapsed time with effort. It is a small state machine, but it turns a setup process into a tool that can be inspected and reasoned about. For context on the platform, visit Neuron Expert.
Modeling a seven-working-day setup as a state machine of owned steps
Full Article
Original Source
Read the full article at Dev →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.