Back to all articles
AI Agents

Building StateSet for Intelligent Commerce

Year Eight Annual Letter & Technical Vision for 2027

Dominic Steil

Dominic Steil

Founder & CEO, StateSet

December 1, 202614 min read
0% complete
StateSet cover reading “Building StateSet for Intelligent Commerce”

An AI agent can decide that a customer deserves a replacement. A business still has to verify the policy, authorize the order, route it to a warehouse, synchronize inventory, and confirm that a box actually left the dock.

That gap between a model’s decision and a completed piece of commercial work is where StateSet lives.

As we enter 2027, our eighth year as a company, the frontier of artificial intelligence is moving beyond conversation and into execution. The opportunity is no longer simply building agents that can answer questions. It is giving intelligent systems the context, authority, guardrails, and execution infrastructure required to move real inventory, real money, and real businesses forward.

Over the past year, our engineering has evolved across two connected tracks:

  • Production commerce systems: Our proprietary customer experience platform and order management system, running live for merchants and third-party logistics providers today.
  • Agentic infrastructure: Our hosted sandboxes, open-source reinforcement learning framework, internal neurosymbolic verification engine, and embedded commerce kernel.

In 2027, these investments converge around a third priority: distribution.

If this looks like an unusually broad engineering surface area for a lean company, that is intentional and it is possible because we operate on the same technological leverage we build. Across our five to ten active repositories, we use swarms of coding agents operating inside our own isolated sandboxes to implement, test, and maintain software at a pace that would have required a substantially larger engineering organization just two years ago. We are not building a collection of speculative side projects; each layer of our stack exists because operating real commerce systems exposed a problem that needed to be solved.

Here is where those systems stand today, how they fit together, and where we are taking StateSet in 2027.

I. Running Live Commerce Today

Customer Experience as an Executable Workflow

We rebuilt our customer experience platform from the ground up in Rust using the Temporal Rust SDK. Today, it operates across three hosted channels email AI, a standalone chat widget, and voice AI all feeding into a common execution model.

When a customer message arrives via webhook, we do not hand it straight to a large language model and hope for the best. A standardized configuration layer first evaluates deterministic gates: sender checks, subject-line filters, keyword triggers, business conditions, and escalation rules that determine whether the agent should act at all. Only after a request clears those gates does the agent assemble its context window, drawing on the brand’s knowledge base, business policies, examples, and live customer history. From there, it reasons about the request, generates a response, and executes bounded actions across Shopify, Recharge, and connected shipping and fulfillment systems.

The architectural principle is fundamental: separate probabilistic reasoning from deterministic execution. A model’s reasoning can vary, while the mechanisms governing authorization, retries, escalation, and workflow progression must behave predictably. Temporal provides durable workflow orchestration, while model inference and external API operations execute as activities outside deterministic workflow replay.

Brands across health and wellness, beauty, and consumer packaged goods primarily operating on Shopify use this platform in production today. The CX AI market is crowded, but building our own execution infrastructure natively in Rust while continuously incorporating advances in frontier models gives us a foundation that extends beyond individual commerce platforms into more complex verticals and larger enterprise accounts.

Our next frontier in customer experience is long-horizon agentic work. A return-to-sender issue rarely resolves in a single exchange; it may remain open for hours, days, or weeks while waiting on a carrier scan, warehouse intake, or customer confirmation. By combining Temporal durable workflow state with long-horizon agents including agents operating inside isolated sandboxes we can design systems that persist through extended periods of inactivity, resume when new information arrives, escalate when progress stalls, and retain responsibility until the underlying issue is resolved.

A chatbot is designed around a conversation. An agentic system should be designed around an outcome.

Connecting the Order to the Warehouse

Our second commercial product is the StateSet Order Management System (OMS), also built from the ground up in Rust this time using our own purpose-built synchronization engine rather than Temporal.

On paper, order management looks straightforward: ingest orders from Shopify or retail channels, route them to a third-party logistics provider (3PL), synchronize inventory back to sales channels and ERP systems, and write tracking numbers, fulfillment updates, and operational information back to the storefront. In reality, commerce gets complex fast. A warehouse management system may handle standard pick-and-pack operations well, then hit walls around custom routing, split shipments, bundle logic, or merchant-specific fulfillment requirements. StateSet sits directly between the sales channel and the warehouse, managing routine synchronization while absorbing the operational logic conventional connectors struggle to support.

This is battle-tested infrastructure. Our OMS has processed hundreds of thousands of orders, including thousands during the Black Friday peak.

We have also extended the operational pipeline into wholesale and retail distribution by building Electronic Data Interchange (EDI) connectors for SPS Commerce, TrueCommerce, and Orderful. Inbound X12 purchase orders from retail partners such as Target or Ulta enter the OMS, route to the warehouse alongside direct-to-consumer orders, and generate Advance Ship Notices (ASNs) from fulfillment activity bringing DTC and wholesale commerce into a single operational pipeline.

Because the system was designed with an AI-first architecture, we also introduced Model Context Protocol (MCP) interfaces into the operations stack. Authorized teams at merchants and warehouses can inspect live orders, check inventory, and initiate permitted operational workflows directly through AI clients such as Claude or ChatGPT. Instead of navigating another static dashboard, operators interact directly with the systems running their business.

As the interface becomes intelligent, the underlying execution infrastructure becomes even more important.

II. The Agentic Infrastructure Stack

Operating live commerce exposes four fundamental problems that foundation models alone do not solve:

  1. Where does an agent execute its work?
  2. How does an agent improve from its experience?
  3. How do we verify that a proposed action is permitted?
  4. What transactional system should an agent execute against?

Those four problems became the blueprint for our agentic infrastructure portfolio.

1. Execution: StateSet Sandbox and Agent Swarms

An agent that writes code or performs multi-step operational tasks needs a real workspace: files, dependencies, tools, compute, and strong isolation from other running processes. Once agents operate concurrently, execution environment management becomes a distributed systems problem.

We built our hosted sandbox platform on gVisor and Google Kubernetes Engine (GKE). The underlying sandbox infrastructure remains proprietary, while our published JavaScript and Python SDKs allow developers to integrate directly with the platform. It supports both standalone sandboxes and coordinated agent swarms.

Internally, this is how we build StateSet. We launch coding agents in parallel, each working on an assigned issue inside its own isolated environment and returning pull requests or patches to the repository for review. Implementation, testing, dependency upgrades, security analysis, and other engineering tasks can all be distributed across multiple execution environments simultaneously.

What we have learned in practice is straightforward:

Isolation makes parallel work possible. Verification determines what actually ships.

Spawning ten agents at once only creates value if their output can be inspected, tested, validated, and safely merged into the larger system. That same execution infrastructure extends well beyond software engineering. As teams adopt reinforcement learning, model evaluation, and weight-editing workflows, they need controlled, repeatable environments in which agent trajectories can be executed, observed, and scored. GPUs change the runtime requirements, but the underlying principle remains the same: intelligence needs somewhere reliable to work.

2. Improvement: StateSet Agents

Over the past year, we developed StateSet Agents, an open-source reinforcement learning framework for teams training and fine-tuning open-weight models around domain-specific tasks.

Most teams do not struggle solely with running a single training job. They struggle to connect the entire improvement loop:

  1. Define the task and execution environment.
  2. Capture agent interactions and trajectories.
  3. Evaluate outcomes and assign rewards.
  4. Train and update model weights.
  5. Compare new checkpoints against existing models.
  6. Deploy improvements back into production.

StateSet Agents connects these components with modern reinforcement learning algorithms including GRPO, GSPO, and experimental PPO alongside integrations with training and compute providers such as RunPod, Modal, Nebius, and River AI.

In commerce, the reward signal is critical. A polite, fluent customer support response that fails to resolve the customer’s problem is still a failure. An agent that generates clean code while introducing a regression has not completed its task. The feedback used to improve these models has to reflect the quality of the work performed, not just the quality of the language generated.

Commerce is a uniquely strong environment for reinforcement learning because outcomes are directly observable. Was the order canceled? Was the refund processed? Did the shipment leave the warehouse? Was the customer issue resolved without violating a business policy? Those operational facts provide grounded signals for evaluating agent behavior.

As more companies see the value of fine-tuning open-weight models around proprietary workflows, few will want to build reinforcement learning infrastructure from scratch. Our sandbox platform provides controlled execution environments; StateSet Agents provides the framework for evaluation, training, and continuous improvement. Together, they turn an agent’s live experience into its next, better version.

3. Verification: The NSR AI Engine

Workflow durability and action safety are fundamentally different problems. Temporal provides mechanisms for workflows to survive interruptions and resume execution, but it does not, by itself, determine whether the next proposed action is legally, financially, or operationally permitted.

To solve that, we have been developing our internal NSR AI engine in Rust, inspired by research in neurosymbolic recursive artificial intelligence introduced to us by one of our advisors. NSR is a rules and ontology engine designed to verify proposed agent tool calls against explicitly defined constraints before execution. A developer defines an ontology representing a domain’s entities and relationships, alongside symbolic rules governing the permissible actions within that domain.

My background includes Prolog, so this direction resonated immediately. There is a world of difference between asking a language model to obey a policy written in a system prompt and representing that policy in a symbolic form an execution system can evaluate deterministically.

Consider a simplified commerce policy: an order can only be canceled if it has not yet been fulfilled. The language model interprets the customer’s email and proposes a cancel_order operation. Before anything executes, NSR evaluates that proposal against the applicable policy and live operational state.

The language model reasons. The symbolic engine verifies the constraints. The transactional system executes the permitted operation.

These responsibilities are deliberately separated. NSR is still early, and symbolic verification is only as effective as the completeness of its rules, the accuracy of its state, and the transactional guarantees protecting against concurrent changes. Nevertheless, as agents move from drafting responses to modifying orders, inventory, payments, and financial records, machine-verifiable constraints become non-negotiable. Enterprise AI cannot rely exclusively on asking a model to behave correctly; we need systems capable of enforcing the boundaries of acceptable behavior.

4. Foundation: The StateSet iCommerce Kernel

The project with our longest time horizon is the StateSet iCommerce Engine, an open-source commerce engine written in Rust. Conceptually, it combines a commerce engine and an ERP into a single embedded architecture covering orders, inventory, payments, fulfillment, and financial operations. It supports local SQLite for self-contained execution and PostgreSQL for shared production deployments.

I often describe it as the SQLite of commerce.

What makes it different is who we designed it for: AI agents are first-class users of the system. Rather than forcing an agent to communicate with a separately hosted, monolithic commerce backend for every state transition, the iCommerce Engine can live directly inside an application or agent runtime. The agent invokes explicit commerce primitives; create an order, reserve inventory, update a ledger, record a shipment, or inspect operational state while external infrastructure still handles payment settlement and the physical movement of goods. We have also built adapters for emerging agentic standards, including the Agentic Commerce Protocol (ACP) and Universal Commerce Protocol (UCP).

I view this engine as a kernel as the foundation of the StateSet iCommerce universe.

StateSet architecture showing customer channels, agent infrastructure, production CX and OMS, and exploratory warehouse and transportation applications above the iCommerce kernel.
StateSet’s 2027 architecture, as shown in the Year Eight letter.

Our early, exploratory open-source Warehouse Management System (WMS) and Transportation Management System (TMS) projects are already being built on this shared foundation. Over time, the kernel creates an opportunity to build a vertically integrated commerce stack:

  • Customer Experience (CX)
  • Order Management (OMS)
  • Warehouse Management (WMS)
  • Transportation Management (TMS)
  • Enterprise Resource Planning (ERP)
  • Payments and Settlement
  • Agent-to-Agent Commerce

Each application serves a distinct operational function while sharing common commerce primitives, data models, and execution semantics. Commercially, this also creates a natural expansion path for our existing warehouse partnerships: a 3PL running StateSet OMS today can eventually adopt white-label warehouse and transportation management capabilities built on the same underlying foundation.

Running a production OMS for a merchant today and developing an embedded commerce kernel for the next decade operate on different time horizons, and both matter. The commercial systems solve urgent operational problems right now; the kernel lays the groundwork for how agent-native commerce will operate in the years ahead.

III. Running on What We Build

We try not to ship infrastructure we are unwilling to rely on ourselves. Beyond our customer-facing products and developer tools, we built an internal business operating system that runs StateSet itself covering our books, CRM pipeline, sales, finance, operations, project management, and internal knowledge, wired up with MCP interfaces and a direct feed into our investor data room.

Combined with our internal coding-agent swarms, this creates a tight operating loop. We build infrastructure for agents, use agents to improve that infrastructure, deploy the resulting systems into real operating environments, observe their behavior, and keep iterating. We hit the rough edges of our own sandboxes, MCP connectors, and agent workflows long before our customers and developers do.

That points to a different operating model for a software company. Historically, the amount of software a company could build was tightly coupled to the size of its engineering headcount. As agentic software development matures, the constraint shifts toward the quality of the architecture, specifications, execution environments, verification systems, and the ability to coordinate parallel work.

The limiting factor is no longer how much code a team can write. It is how much reliable, useful software an organization can integrate and operate. StateSet itself is becoming a proving ground for that model.

IV. 2027: Year Eight Is About Distribution

StateSet was founded in November 2019, and we have now entered our eighth year. Our core commercial products are generally available, our developer infrastructure is live, and our longer-horizon research and open-source projects continue to mature. We have built a substantial body of software. In 2027, our priority shifts decisively from laying foundations to expanding distribution.

The Warehouse as a Distribution Channel

The most important commercial shift we observed over the past year is how we enter a brand. Originally, customer experience was our wedge. Today, the warehouse often opens the door first.

A 3PL needs to onboard a new merchant or solve an order-routing problem its legacy stack cannot support. We step in with a white-label OMS, solve the operational bottleneck, and establish a relationship that expands naturally into customer experience and additional commerce capabilities.

This changes the economics of growth. A single 3PL already serves an entire portfolio of merchants. White-label partnerships let us scale through volume-based, per-order agreements rather than acquiring every brand independently, complementing our direct, volume-tiered merchant subscriptions.

What makes this expansion durable is that commerce operations and customer experience are two halves of the same loop. The exact order moving through the warehouse is the order a customer emails or calls about. The inventory that determines whether a merchant can fulfill an order is the same inventory an agent needs to check before offering a replacement. Connecting live operational state directly to the customer workflow gives the agent a far stronger basis for acting and gives merchants a system that connects what is promised to what is actually delivered.

Our commercial strategy is straightforward: enter through a critical operational workflow, expand across the commerce lifecycle, and grow alongside the volume of commerce moving through our infrastructure.

Our Three Priorities for 2027

  1. Deepening 3PL distribution: Establish larger white-label OMS partnerships, onboard more merchants through fulfillment providers, and expand those relationships across customer experience and, eventually, warehouse and transportation management.
  2. Scaling production customer experience: Expand adoption among consumer brands and larger enterprise accounts while advancing long-horizon, multichannel agent workflows across email, chat, and voice; moving beyond conversational automation toward systems that own business outcomes.
  3. Growing the developer ecosystem: Drive adoption of StateSet Sandbox, StateSet Agents, and the iCommerce kernel among developers building agent-native applications, making it effortless to adopt individual components and, over time, build complete systems on top of them.

Our objective is to translate the engineering foundation we have built into durable commercial growth, a thriving developer ecosystem, and a defining position within the global commerce infrastructure stack.

From Intelligence to Economic Activity

Everything we are building comes back to that replacement order. An agent has to understand what went wrong. A verification system has to confirm the action is permitted. A durable workflow has to see it through. A transactional system has to record it. A warehouse has to ship it. And a customer has to receive what was promised.

The next generation of artificial intelligence will be measured by its ability to perform real work; not simply by the sophistication of its reasoning or the polish of its language. Commerce is one of the largest and most consequential arenas where that transition will happen.

We believe a substantial share of global commerce will eventually be initiated, coordinated, and executed by intelligent agents operating across digital and physical systems. Those agents will need execution environments, durable workflows, verifiable constraints, transactional primitives, and mechanisms for continuous improvement. They will need a reliable way to turn intelligence into economic activity.

We call this iCommerce: Intelligent Commerce.

Over our first seven years, we laid the foundation. In Year Eight, our focus is putting that foundation to work across more businesses, more warehouses, and more of the global economy.

Our ambition is not simply to build better commerce software.

It is to build the operating system for commerce in the age of artificial intelligence.

Dominic Steil

Founder & CEO, StateSet

December 2026