Manufacturing · Playbook 27

I've worked in this sector

Just-in-time production scheduling

Every order's ready time predicted station by station, so components meet at final assembly exactly when the vehicle needs them. When something slips, the plan is redrawn in minutes and a planner approves it.

  • Predictive ML
  • Agents with tools
  • Event-driven integration
  • Human in the loop
  • HSE: PUWER 1998
  • Working Time Regulations 1998
  • Employment Rights Act 2025
  • Sale of Goods Act 1979
  • UK GDPR

At a glance

The problem
Products can't be made ahead and stored, so every station has to finish at the right moment. The plan is built the night before and falls apart by mid-morning
Typical volume
Around 2,500 order lines a day across six stations and three shifts, feeding about 40 vehicle departures
Who's involved
Operations, production planning, shift supervisors, quality, health and safety, customer service, HR, IT
Pilot
8–10 weeks on one product family, after a 3–4 week discovery
Platforms
AWS, Azure, or a sovereign or on-prem stack

An illustrative scenario. Linked to a real, anonymised case study below; the numbers here are still typical examples. The cloud services and UK rules were checked on 9 November 2026.

The business problem

Take a manufacturer that makes goods to order, each one built to a customer's specification for a fixed handover time. Orders come from business customers by EDI and a customer portal, and amendments arrive through the day, many for dispatch the same night or the next morning. Each order line draws on several stations: material preparation, forming or machining, sub-assembly, final assembly, finishing and inspection, then packing and marshalling for dispatch. Nothing can be made early and parked. Each item is made for one order and can't be held in stock, and every component that waits takes floor space and handling the next order needs.

So the work has to converge. The parts from each station all need to reach final assembly at the same moment, and the finished order needs to reach the dock just before its vehicle leaves. Today, planners build that plan each evening in spreadsheets, using standard times that were set years ago. By mid-morning something has slipped: a machine ran long, a materials delivery arrived late, a line stopped for a changeover or a breakdown, two people called in sick, or a customer changed an order. The replan happens by phone and whiteboard, one problem at a time.

The costs show up everywhere. Components wait for an assembly slot, or assembly stands idle waiting for components. Orders miss their vehicle and go short, or miss the customer's handover window. Overtime is booked late, and people are asked to stay on or come in at short notice. Planned maintenance and machine checks are never knowingly skipped, but they're protected by experienced supervisors watching the clock, not by the plan itself.

What AI changes

  • Each order line gets a predicted ready time at every station, learned from what actually happened on your lines (run rates, changeovers, maintenance and crewing), not from old standard times.
  • The plan is worked backwards from each vehicle's departure, so every station starts just early enough for its components to meet at assembly on time, inside the safety, quality and handover limits.
  • When something slips, the system sees it from the shop-floor events, works out which orders and vehicles are affected, and puts two or three replan options in front of the planner, each with its consequences spelled out.
  • Safety and quality rules are hard limits the scheduler can't trade away: planned maintenance and machine checks, changeovers, inspection steps and which lines each product may run on, all owned by the quality and health and safety lead.
  • Staffing changes are suggested to supervisors, never made by the system. Every suggestion has already been checked against rest breaks, daily rest and each person's contracted pattern.
  • The planner approves every plan before it reaches the shop floor, and customer service tells customers about any change. The AI recommends; people decide.

How success is measured

Agree these, and measure the baseline, before anything is built. Example targets are typical, not promises.

On time in full at handover

Orders complete and on the dock before their vehicle leaves.

ExampleUp from around 92% to 98% or more

Component wait before assembly

How long finished components sit waiting to be used, taking floor space and extra handling.

ExampleDown by half

Handover window met

Orders handed over inside each customer's agreed window, not just on the right day.

ExampleEvery order, with exceptions explained

Waste and write-offs

Work made too early, too late or in the wrong quantity, and rework, by value.

ExampleMeasured against last year

Short-notice staff changes

Shifts added, cancelled or moved with less than the agreed notice. A measure of planning quality, and soon a legal one.

ExampleFalling month on month

Plan acceptance and override rate

How often planners approve the suggested replan unchanged. Very low means it isn't helping; near 100% can mean nobody is checking.

ExampleStable, and reviewed weekly

UK regulation and controls

Cross-sector rules are on the UK regulation map.

  • HSEHealth and Safety at Work etc. Act 1974 and the Provision and Use of Work Equipment Regulations 1998 (PUWER)

    Work equipment must be suitable for its use, maintained in an efficient state, in efficient working order and in good repair, inspected where the regulations require it, and used only by people with adequate training. The scheduler treats planned maintenance, inspections and changeovers as fixed blocks it can't move or shorten, and only plans work onto a machine when trained operators are rostered for it. Only the health and safety lead can change those rules.

  • HSE and local authoritiesWorking Time Regulations 1998

    Workers are entitled to 11 hours' rest between working days, a 20-minute break when working more than six hours, weekly rest, and an average 48-hour week unless they opt out. Every staffing suggestion is checked against these limits and each person's recorded hours before a supervisor sees it.

  • BIST and the Fair Work AgencyEmployment Rights Act 2025

    The Act gives qualifying zero-hours, low-hours and agency workers rights to reasonable notice of shifts and to payment when shifts are cancelled, moved or cut short at short notice. The detail is being set in regulations and the start date isn't fixed yet. From March 2027, forcing major shift-pattern changes (days to nights, weekdays to weekends) through dismissal and re-engagement is also restricted. The scheduler works within each person's contract, and every shift change is logged with when it was notified.

  • UK lawCustomer contracts and the Sale of Goods Act 1979

    Business customers' contracts set the delivery windows and what happens if one is missed, and where no time is fixed the Sale of Goods Act expects delivery within a reasonable time. The plan works to each order's agreed handover time, and customer service, not the system, tells customers about any change.

  • ICOUK GDPR, as amended by the Data (Use and Access) Act 2025

    Crewing and attendance data is personal data, so there's a DPIA before the pilot. Ready-time predictions use station and crew-level data, not individual performance, which keeps the system from becoming a way of monitoring people. Decisions about individual workers' hours are made by supervisors, with the safeguards the automated decision rules require if that ever changes.

The solution

Showing AWSAzuresovereign / on-prem services. Switch with the toggle; every diagram and table on this page follows it.

Just-in-time production scheduling: reference architecture
  1. 01Channels

    • Customer orders and amendments (EDI, portal)
    • Supplier delivery notices
    • Vehicle departures and slots
  2. 02Intake

    • API GatewayAPI ManagementKong, or your existing API gatewayOrder and plan API
    • Kinesis Data StreamsEvent HubsApache KafkaShop-floor event stream
    • Amazon S3Azure Data Lake StorageCeph, or IONOS S3 Object StorageProduction history store
  3. 03Intelligence

    • SageMaker AIAzure Machine LearningMLflow and Kubeflow on KubernetesReady-time prediction
    • Open-source solver on AWS BatchOpen-source solver on Azure BatchOpen-source solver (e.g. OR-Tools) on KubernetesSchedule optimiser
    • Agent
      Bedrock AgentCoreFoundry Agent ServiceLangGraph on Kubernetes, with open-weight models via vLLMReplan assistant
  4. 04Orchestration

    • Step FunctionsLogic Apps / Durable FunctionsTemporalReplan workflow
    • EventBridge + SQSEvent Grid + Service BusApache Kafka or RabbitMQEvents and queues
  5. 05Systems of record

    • ERP: orders, bills of materials, stock
    • MES and line systems
    • Time and attendance, rostering
    • Traceability and quality records
  6. 06People

    • Person
      Production planner: approves every plan
    • Person
      Shift supervisors: decide staff changes
    • Person
      Quality and H&S lead: owns safety limits
    • Person
      Customer service: tells customers
  • Cloud or platform service (AWSAzuresovereign / on-prem)
  • AI agent
  • A person decides
  • Your existing systems
  • Outside your organisation

Components, side by side

Just-in-time production scheduling: components on AWS, Azure and a sovereign or on-prem stack
LayerAWSAzureSovereign / on-prem
Intake: orders, events, historyStart with the timestamps you already have. Discovery checks whether stations really scan at start and finish, or at the end of the shift.API Gateway, Kinesis Data Streams, S3API Management, Event Hubs, Azure Data Lake StorageKong or your existing API gateway; Apache Kafka; Ceph or IONOS S3 Object Storage
Ready-time predictionGradient-boosted models predicting a range (likely and late), not a single time, per station and product. Amazon Forecast is closed to new customers, so it isn't used.Amazon SageMaker AIAzure Machine LearningMLflow and Kubeflow on Kubernetes
Schedule optimiserThis is optimisation, not generative AI. Machine safety, maintenance, quality and working time rules are hard constraints; cost, overtime and waste are what it trades off.An open-source constraint solver (e.g. OR-Tools or Timefold) on AWS Batch or ECSAn open-source constraint solver (e.g. OR-Tools or Timefold) on Azure Batch or Container AppsAn open-source constraint solver (e.g. OR-Tools or Timefold) on Kubernetes
Replan explanations and draftsThe only generative step. It explains each option in plain words and drafts customer and supervisor notes for a person to send.Amazon BedrockMicrosoft FoundryOpen-weight models served with vLLM on your own GPUs, or IONOS AI Model Hub
Agent runtimeThe original Bedrock Agents closed to new customers on 30 July 2026; new builds use AgentCore.Amazon Bedrock AgentCoreFoundry Agent ServiceAn open-source agent framework (e.g. LangGraph) on Kubernetes
WorkflowRuns each replan from trigger to approval to publish, with timeouts if nobody responds.AWS Step FunctionsLogic Apps or Durable FunctionsTemporal, or n8n
Middleware and eventsAmazon EventBridge, SQSEvent Grid, Service BusApache Kafka or RabbitMQ
Link to ERP and MESThe approved plan is published to the MES as a versioned plan. Nothing writes to production tables directly.Through your ERP and MES suppliers' published APIs, or your existing integration layerThrough your ERP and MES suppliers' published APIs, or your existing integration layerThrough your ERP and MES suppliers' published APIs, or your existing integration layer
Human reviewPlanners approve where they already work. If there's no planning board today, a simple approval screen is part of the build.In the planners' existing planning board or MES screensIn the planners' existing planning board or MES screensIn the planners' existing planning board or MES screens
GuardrailsThe real guardrail is the constraint library: the model can explain a plan but can't change a limit.Bedrock GuardrailsFoundry guardrails (Azure AI Content Safety)Open-source guardrails (e.g. NeMo Guardrails, Llama Guard)
Identity, keys, data protectionOnly planners can publish a plan; only the quality and health and safety lead can change a safety or quality limit.IAM Identity Center, KMS, MacieEntra ID, Key Vault, PurviewKeycloak or your existing Active Directory; OpenBao or HashiCorp Vault; an HSM
Monitoring and auditLog every prediction, every option offered, every approval and override with its reason, and every shift change with when it was notified.CloudWatch, CloudTrailAzure Monitor, Log AnalyticsPrometheus, Grafana, OpenTelemetry
UK data residencyProduction data is less sensitive than staff data. Keep rostering and attendance data in the UK.eu-west-2 (London)UK South / UK WestYour own UK data centre, or a UK or EU provider

On a phone, the table shows the platform you pick. Sovereign / on-prem means open, portable components you can run in your own data centre or with a UK or European provider; IONOS is shown as one example, and others exist. What sovereign cloud means →

Hybrid and on-prem

Many organisations keep core systems and sensitive data on their own servers. This is how the same design works across both.

Stays on-prem

Machine and line control, the MES, test and inspection equipment and label printers stay on site, along with the approved plan the floor is working to. Many manufacturers also run their ERP on their own servers, and nothing here needs it to move.

Uses cloud AI

Model training, the optimiser runs and the replan assistant can run in AWS or Azure. For the sovereign option, all of it runs on your own servers: the optimiser doesn't need GPUs, and the explanation model is small.

How they connect

A private link (AWS Direct Connect or Azure ExpressRoute), or a site VPN for smaller plants, through the API layer. Shop-floor events go out and replan options come back. Only the planner's approval sends a plan to the MES.

If the link drops

The factory keeps running on the last approved plan. Planners replan by hand for the gap, as they do today, and events queue on site until the link returns. A plant that can't accept that can run a copy of the optimiser on a local server.

The agents

What each agent may do through its tools, what it may not, and where a person signs off. The limits are enforced by the platform, not the prompt.

Replan assistant

May do

  • Read the order book, the current plan, shop-floor events and crewing
  • Run the optimiser with different scenarios, such as overtime or moving an order to another line
  • Present two or three replan options, with the orders, vehicles and people each one affects
  • Draft change notes for customer service to send to affected customers
  • Draft staffing suggestions for supervisors, already checked against working time rules

May not do

  • Publish a plan to the shop floor
  • Change, split or cancel a customer order
  • Contact a customer or a member of staff
  • Change a bill of materials, a safety or quality limit, a maintenance window or a changeover
  • Add, cancel or move anyone's shift

Where a person signs offA planner approves every plan before it reaches the MES. A supervisor decides every staff change and tells the people affected. Only the quality and health and safety lead can change a safety or quality limit. The agent's permissions are enforced by the platform's identity and policy controls, not by instructions in a prompt.

Middleware and integration

The ERP stays the record for orders, bills of materials and stock, and the MES stays the record for what each line is doing. Orders and amendments arrive by EDI into the ERP as they do now, and changes reach the scheduler as events. The scheduler never edits an order; it plans around it.

Shop-floor events drive the replanning: a station starting or finishing a batch, a line stopping, a changeover starting, a delivery being received. Each becomes a message on a queue. If the cloud side is slow, events wait safely, and every message carries an ID, so a retry never counts a batch twice.

The approved plan is published to the MES as a numbered version and held on site. The floor always runs on the last approved plan. If the scheduler is switched off, planners go back to building the plan themselves, exactly as they did before.

Traceability isn't a separate project. Batch and lot links are written at each station as they are today, and the scheduler reads them, so a replan never breaks the chain from supplier delivery to customer dispatch.

Process and people

  • The planner's role shifts from building the plan to approving and adjusting it. Override reasons are captured and reviewed every week.
  • A constraint library owned by the quality and health and safety lead: every maintenance window, machine check, changeover and inspection step, under change control and tied to the risk assessments.
  • A freeze window for each station, so the floor isn't replanned every five minutes. Only changes above an agreed threshold reach the planner.
  • A supervisor protocol for staff changes: how much notice is given, how it's recorded, and who agrees to overtime.
  • A weekly review of predicted against actual ready times, by station, with the planners and supervisors.
  • Planners, supervisors and the quality and health and safety team trained before go-live, including what the system can't see: a supervisor's judgement about a new starter or a temperamental line.

Delivery plan

  1. 3–4 weeks

    Discovery

    Map the stations and the flow, measure today's on-time rate and waste, check the quality of shop-floor timestamps, and collect every safety, quality and working time rule the plan must respect.

  2. Gate · must be true to passBaseline agreed, timestamp gaps known, constraint library drafted with the quality and health and safety lead, DPIA started.

  3. 8–10 weeks

    Pilot

    One product family, in shadow mode: the system predicts and proposes, planners plan as normal, and the two are compared each day.

  4. Gate · must be true to passReady-time predictions within agreed limits, no option that breaks a constraint, planner and quality and health and safety sign-off.

  5. 4–6 weeks

    Production

    Planners approve live replans for the pilot family, with monitoring, support and a rollback plan.

  6. Gate · must be true to passMonitoring, support model, rollback plan and planner and supervisor training in place.

  7. Ongoing

    Scale

    Add product families and stations one at a time, then link in the evening plan build and supplier delivery timing.

  8. Gate · must be true to passEach new family passes the same pilot gate.

Roles and RACI

Who is responsible, accountable, consulted and informed, by activity
ActivityOperations directorPlanning managerSolutions architectI can fill thisTechnical PMI can fill thisEngineersI can fill thisQuality & H&S leadHR & DPOSecurityI can fill this
Business case and benefitsAccountableResponsibleConsultedConsultedInformedConsultedInformedInformed
Target architecture, ERP and MES integrationInformedConsultedAccountable and ResponsibleConsultedConsultedConsultedInformedConsulted
Constraint library and safety reviewConsultedConsultedConsultedInformedConsultedAccountable and ResponsibleInformedInformed
Working time and staff-change rules, DPIAConsultedConsultedConsultedInformedInformedConsultedAccountable and ResponsibleConsulted
Build and integrationInformedConsultedAccountableResponsibleResponsibleConsultedInformedConsulted
Shadow testing on real ordersInformedAccountableResponsibleResponsibleResponsibleConsultedInformedInformed
Go-live decisionAccountableResponsibleConsultedResponsibleInformedConsultedConsultedConsulted
Run, monitor and improveInformedAccountableConsultedConsultedResponsibleConsultedConsultedConsulted

Business case and benefits

Operations director
A · Accountable
Planning manager
R · Responsible
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
I · Informed
Quality & H&S lead
C · Consulted
HR & DPO
I · Informed
Security
I · Informed

Target architecture, ERP and MES integration

Operations director
I · Informed
Planning manager
C · Consulted
Solutions architect
A/R · Accountable and Responsible
Technical PM
C · Consulted
Engineers
C · Consulted
Quality & H&S lead
C · Consulted
HR & DPO
I · Informed
Security
C · Consulted

Constraint library and safety review

Operations director
C · Consulted
Planning manager
C · Consulted
Solutions architect
C · Consulted
Technical PM
I · Informed
Engineers
C · Consulted
Quality & H&S lead
A/R · Accountable and Responsible
HR & DPO
I · Informed
Security
I · Informed

Working time and staff-change rules, DPIA

Operations director
C · Consulted
Planning manager
C · Consulted
Solutions architect
C · Consulted
Technical PM
I · Informed
Engineers
I · Informed
Quality & H&S lead
C · Consulted
HR & DPO
A/R · Accountable and Responsible
Security
C · Consulted

Build and integration

Operations director
I · Informed
Planning manager
C · Consulted
Solutions architect
A · Accountable
Technical PM
R · Responsible
Engineers
R · Responsible
Quality & H&S lead
C · Consulted
HR & DPO
I · Informed
Security
C · Consulted

Shadow testing on real orders

Operations director
I · Informed
Planning manager
A · Accountable
Solutions architect
R · Responsible
Technical PM
R · Responsible
Engineers
R · Responsible
Quality & H&S lead
C · Consulted
HR & DPO
I · Informed
Security
I · Informed

Go-live decision

Operations director
A · Accountable
Planning manager
R · Responsible
Solutions architect
C · Consulted
Technical PM
R · Responsible
Engineers
I · Informed
Quality & H&S lead
C · Consulted
HR & DPO
C · Consulted
Security
C · Consulted

Run, monitor and improve

Operations director
I · Informed
Planning manager
A · Accountable
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
R · Responsible
Quality & H&S lead
C · Consulted
HR & DPO
C · Consulted
Security
C · Consulted

R ResponsibleA AccountableC ConsultedI Informed· not involved

Where I'd fit

Option A

Lead the architecture

If there's no architect on the programme, I'd own the design end to end: the prediction and optimisation design, the integration with your ERP, MES and EDI flows, and the gates, working closely with your quality and health and safety leads. I've built a just-in-time order management system for goods that couldn't be stored, coordinating any number of production steps or stations so final assembly happened exactly when each order was ready for handover. I'd report to your programme board.

Option B

Support your architect

If your partner or your own team already has an architect, I'd take on the scheduling engine and the ERP and MES integration under their lead: the part where timing, events and systems of record have to agree. I'd also give them a second senior opinion on the constraint design and the rollback plan.

Where this goes wrong

  1. Goes wrong

    The model learns from timestamps that are wrong, because stations scan at the end of a batch or the end of a shift.

    How the design avoids it

    Check timestamp quality in discovery, fix the scanning before the pilot, and predict a range, not a single time.

  2. Goes wrong

    The optimiser treats a maintenance window or a machine check as a cost to trade off when the day gets tight.

    How the design avoids it

    Machine safety, maintenance, quality and working time rules are hard constraints in a library the quality and health and safety lead owns. The optimiser can't relax them.

  3. Goes wrong

    The plan changes every few minutes, so the floor stops trusting it and goes back to the whiteboard.

    How the design avoids it

    Freeze windows per station and a threshold for what reaches the planner. Small slips are absorbed, not replanned.

  4. Goes wrong

    The plan only lives in the cloud, so a network outage stops the factory.

    How the design avoids it

    The approved plan is held on site in the MES. The floor never waits on the AI.

  5. Goes wrong

    Staff get moved around at short notice because the algorithm found it cheapest.

    How the design avoids it

    Supervisors decide every staff change, every notice is logged, and short-notice changes are a KPI that has to fall.

On the horizon

Changes already announced or under way that affect this design. More in the UK horizon scan.

  1. Expected 2027, date not yet set
    Employment Rights Act 2025: guaranteed hours, reasonable notice of shifts, and payment for shifts cancelled, moved or cut short at short notice, for qualifying zero-hours, low-hours and agency workers. The government's consultation on the detail closed on 25 August 2026.

    Log when every shift change is notified and to whom, and make the notice threshold a setting, so the rules can be applied on the day they start without a rebuild.

  2. March 2027
    Restrictions on fire and rehire. The government's October 2026 response confirmed that moves between day and night shifts, or weekday and weekend shifts, count as restricted changes. Night is defined as 11pm to 6am.

    Keep the scheduler inside each person's contracted pattern. Pattern changes go through HR, not through the plan.

  3. 2026–2027
    The ICO's code of practice on AI and automated decision-making, and the government's consultation on workplace monitoring technologies (closed 30 September 2026).

    Keep staff data out of the prediction models, keep people deciding staff changes, and keep the decision log in a form you could show a regulator or a staff representative.

Questions to ask your partner or vendor

Good answers are specific. Vague answers to any of these are worth following up.

Copy them into your next supplier meeting

  1. What happens on the shop floor when the scheduler or the network is down?
  2. Which rules are hard constraints, who owns them, and how is a change tested?
  3. How accurate are the ready-time predictions on our lines, and how do you know?
  4. How does a replan keep every batch linked to the order it ends up in?
  5. How are staff changes checked against working time rules, and is the notice we gave recorded?
  6. What does it cost to run per day of production, at our volume?

Planning something like this?

Whether you need someone to lead the design or to support the architect you already have, let's talk it through.

Sam Naseem
Sam NaseemBirmingham, UK · UK & Europe
Available now