Why Rules Execute Before ML in Our Architecture

| | 10 min read

A warehouse optimization algorithm might identify the fastest storage location for a product. But what happens if that location cannot support the product’s weight? What if the item requires refrigeration, belongs to a different 3PL client, or must remain segregated for regulatory reasons?

The algorithm may have found a mathematically attractive answer. Operationally, it has found the wrong answer.

This is one of the fundamental challenges in applying machine learning to physical operations. A warehouse is not an unconstrained environment where every possible action can be evaluated purely by efficiency. It is a system governed by physical limitations, inventory ownership, safety requirements, equipment capabilities, and operational commitments.

At Foysonis, this distinction informs a deliberate architectural decision in FAST, our AI optimization engine: rules execute before machine learning evaluates the available choices.

The sequence matters. Deterministic rules establish what the warehouse is allowed to do. Machine learning helps determine which of those permissible actions offers the greatest operational benefit.

It is an architecture designed around a simple principle: intelligence should improve execution without compromising the conditions that make execution valid.

The Problem With Treating Every Warehouse Decision as an Optimization Problem

Traditional warehouse management systems rely heavily on predefined rules. During implementation, operations teams configure storage zones, location capacities, picking strategies, replenishment thresholds, allocation priorities, and inventory restrictions.

These rules are essential. They provide consistency and enforce operational requirements.

But rules have limitations when they are used as the only mechanism for making decisions.

Consider a distribution center with 20 eligible locations for a fast-moving product. All 20 meet the required storage conditions, weight limits, and dimensional constraints. A traditional rule-based strategy might select the first available location within a preferred zone or choose according to a fixed location sequence.

The decision is valid, but it is not necessarily the most efficient.

One location might be significantly closer to the packing stations. Another might sit in an aisle already experiencing heavy picker traffic. A third might be near products frequently ordered together with the incoming SKU.

Static rules can account for some of these conditions, but the more dynamic the warehouse becomes, the harder it is to maintain optimal behavior through configuration alone.

Machine learning introduces another dimension. Instead of relying exclusively on predefined rankings, an optimization system can use historical warehouse activity to evaluate travel patterns, item velocity, picking frequency, product affinity, and congestion.

Yet machine learning introduces its own problem: a model optimized for efficiency does not automatically understand which operational constraints must never be violated.

This is why rules and machine learning should not compete to control the same decision. They should perform different jobs.

First Establish What Is Allowed. Then Optimize What Is Possible.

FAST separates warehouse decision-making into two distinct stages.

The first stage is deterministic constraint evaluation. The second is intelligent optimization.

When the warehouse needs a storage recommendation, FAST begins by evaluating potential locations against the operating rules defined for that facility.

These can include temperature requirements, location capacity, dimensional compatibility, inventory ownership, regulatory segregation, and other configured storage restrictions.

A frozen product cannot be assigned to ambient storage merely because the location is closer to shipping. A heavy pallet cannot exceed a rack’s rated capacity because it would reduce travel distance. Inventory owned by one 3PL client cannot be placed somewhere that violates the warehouse’s client-separation requirements.

These are not preferences for a machine learning model to weigh against productivity. They are eligibility conditions.

Only locations that satisfy the required constraints proceed to the optimization stage.

Within that valid set, FAST can compare alternatives based on demand patterns, expected travel time, item relationships, and congestion.

The architectural distinction is important. Rules determine the feasible decision space. Machine learning evaluates opportunities within that space.

This is also why the system can provide a useful recommendation before it has accumulated extensive warehouse-specific history. Well-understood operational principles provide an initial foundation. As more transactions are completed, the optimization layer can adapt its recommendations to the characteristics of the individual facility.

The system does not need to relearn the meaning of a freezer zone or a rack capacity limit. Those are explicit facts about the operation.

What it needs to learn is which eligible decisions work best under the warehouse’s changing conditions.

Want to see this in your own warehouse? Book a free warehouse optimization session →

How This Architecture Changes Slotting, Rebalancing, and Picking

The distinction between rules and optimization becomes especially valuable when FAST evaluates decisions across multiple warehouse workflows.

Slotting: Valid Locations Before Efficient Locations

Suppose a warehouse receives an item that is frequently ordered alongside two other products.

A conventional putaway strategy might identify an available location in the correct zone and assign the item there. FAST begins with the same essential validity checks but can then evaluate the eligible locations more intelligently.

It can consider whether placing the item near commonly ordered products would reduce picking travel, whether the proposed aisle already experiences congestion, and whether historical picking activity suggests that an alternative location would perform better.

The objective is not simply to store the product closer to the shipping dock. It is to improve the performance of the broader picking operation without violating storage constraints.

Rebalancing: Better Decisions Must Justify Their Cost

Warehouse optimization becomes more complicated when the system considers moving inventory that is already stored.

A location change might improve future picking efficiency, but the relocation itself consumes labor and equipment time. Moving a product from reserve storage to a prime forward-pick location may be attractive when the product is picked frequently. The same move may be wasteful when demand is low.

FAST evaluates candidate moves against expected relocation costs and future operational benefits.

Consider a proposed move requiring 12 minutes of labor that is expected to save six seconds per subsequent pick. Under those simplified assumptions, the move would require 120 picks to recover the relocation labor time.

The calculation alone does not establish whether the move is worthwhile. The system must also consider expected demand, the evaluation period, disruption to active operations, and the impact of other proposed relocations.

Moving one item can free a location for another. A sequence of moves may offer a larger combined benefit than evaluating each move independently.

This is where optimization moves beyond static rules. FAST can evaluate related relocation decisions as a coordinated plan, while remaining subject to warehouse constraints and an operator-defined labor budget.

The resulting recommendation is not simply an instruction to move inventory. It is a proposed operational change supported by an estimated cost, benefit, and payback.

Picking: The Shortest Route Is Not Always the Best Route

Picking introduces another set of constraints.

Orders may have different priorities, carrier cutoff times, handling requirements, and zone assignments. Two routes with similar walking distances may produce different outcomes when aisle congestion or order urgency is considered.

FAST approaches the problem by preserving the constraints governing the pick work, then evaluating efficient sequences for eligible picking tasks.

The optimization layer can use completed pick-trip information to refine its understanding of warehouse travel patterns. It can favor routes that reduce backtracking, account for observed congestion, and improve the efficiency of completing a batch.

The objective is not merely to minimize distance on a warehouse map. It is to reduce the time required to complete valid picking work under real operating conditions.

Why Learning Should Not Rewrite Operational Truth

A critical architectural question arises when machine learning becomes more capable: How much authority should the model have?

Our approach separates the authority to enforce operational requirements from the ability to recommend better decisions.

Machine learning models can improve predictions as more data becomes available. They can discover that an item is now moving faster than it did last month or that a particular aisle consistently causes delays during the afternoon shift.

But learning that a congested aisle is slow does not give a model permission to violate a safety restriction. Observing that an incompatible location would reduce travel does not make that location eligible.

The deterministic constraint layer remains authoritative.

This separation also makes recommendations easier to understand.

An operator reviewing a slotting recommendation can distinguish between two questions: Why was this location permitted, and why was it preferred?

The first answer comes from explicit warehouse configuration and operating constraints. The second comes from the optimization logic, including the operational signals used to rank eligible alternatives.

That distinction matters when teams investigate unexpected results, validate configurations, or decide whether to approve a recommendation.

There is another important implication: machine learning quality depends on operational data quality.

Completed picks, putaway transactions, order history, and location activity can provide the feedback FAST needs to improve its recommendations. But incomplete transactions, inaccurate locations, and inconsistent task timestamps can distort what a model learns.

An adaptive system must therefore distinguish between learning from observed behavior and assuming that every recorded event represents an ideal operating decision.

More data does not automatically produce better warehouse decisions. Better decisions require reliable data, meaningful objectives, and clearly enforced constraints.

Simulation and Human Approval Complete the Architecture

There is a difference between generating an optimization recommendation and executing it on the warehouse floor.

FAST is designed to preserve that distinction.

Before applying proposed changes, warehouse teams can evaluate what-if scenarios involving demand increases, staffing changes, layout adjustments, or inventory relocation plans.

Simulation provides a way to compare expected operational outcomes before committing labor or changing inventory placement.

For example, a supervisor might evaluate a rebalancing proposal against the existing warehouse layout, considering whether the expected reduction in picking travel justifies several hours of relocation work.

The simulation offers a decision-making aid, not a guarantee of future performance. Its usefulness depends on how accurately its assumptions and operational inputs reflect the actual warehouse.

Human review remains part of the execution model.

FAST generates recommendations. Warehouse teams can review the proposed actions, examine their expected benefits, approve a subset, or reject them entirely.

This matters because some operational context is difficult to capture in historical transaction data. A supervisor may know that an aisle will be unavailable for maintenance, that a major inbound shipment is arriving, or that a temporary staffing constraint changes which tasks are practical.

The optimization engine contributes analysis. The operation retains decision authority.

The Future of Warehouse AI Is Constrained Intelligence

The most interesting opportunity in warehouse AI is not replacing every operating rule with a learned model.

It is combining the reliability of deterministic systems with the adaptability of machine learning.

Rules are effective at expressing known constraints. Optimization algorithms are useful for comparing feasible alternatives. Machine learning can improve estimates and recommendations by learning from observed operational patterns. Simulation helps evaluate proposed changes. Human approval determines which recommendations become real warehouse actions.

Each component has a distinct responsibility.

This is the architectural thinking behind Foysonis FAST.

Rather than asking a model to make unrestricted decisions across a complex physical environment, FAST establishes operational validity first and then applies intelligence where the warehouse has genuine flexibility.

As demand changes, new products arrive, and picking patterns evolve, recommendations can adapt without requiring teams to abandon the rules that protect the operation.

That is the larger idea behind an AI-native warehouse management system: not a warehouse governed by unpredictable model outputs, but a warehouse where software can continuously evaluate better ways to operate within clearly defined boundaries.

Rules protect what must remain true. Machine learning helps discover what can work better.

And in a physical warehouse, the order matters.


Explore how FAST optimization works and the FAST machine learning pipeline to understand how Foysonis approaches intelligent warehouse decisions.

Want to see this in action?

Request a Demo