TL;DR

A first-generation MES records the plant; a second-generation MES also regulates it. Regulation runs on machine-checkable definitions (ontology) and on the experience people write down (a wiki). Together they are the two preconditions for AI that is usable in a factory. This article traces the argument from control theory and the forms of knowledge to on-site FDE delivery.

One-line overview

A first-generation MES records what happens in a plant; a second-generation MES does one more thing: it regulates. Regulation is only trustworthy when it runs on machine-checkable definitions, which is what an ontology provides, and it only fits the shop floor when it absorbs human experience, which is what a wiki carries. The two are the preconditions for AI that is genuinely usable in a factory, and the line that separates the old digital factory from the new one: the old plant hides definitions in code and shakes when anything moves; the new plant registers definitions explicitly and hands the rest to inference.

Turn the MES off for a day, and what is left

There is a plain way to judge plant software: turn it off for a day and see which parts stop first.

Most of the time the answer is recipe dispatch, work-order flow, equipment coordination and station records, all of which live in the execution layer. Reports, dashboards and approval flows, the visible parts, usually go unnoticed for a day. The load-bearing parts and the visible parts are rarely the same parts. The test separates two kinds of system: one that only issues plans and collects results, and one that takes part in execution and regulation.

What holds the load-bearing layers up?

What exactly makes a second-generation MES second

In the language of control theory, the difference is open loop versus closed loop.

A classic servo drive runs a motor with three nested loops: current innermost, speed in the middle, position outermost. Three textbook principles follow: the outer loop's output is the inner loop's setpoint; the inner loop's bandwidth is far wider than the outer loop's (usually 5–10 times), or the system oscillates; and with no inner loop the outer loop cannot hold.

A traditional MES covers only the outermost counterpart, work orders and planning. Once an instruction is issued, whether the equipment executes, whether the takt drifts, whether quality shifts, the system does not know. An outer loop with no inner loop is an open-loop instruction. This is not one vendor's failing; the feedback path simply does not exist in that architecture.

MES II brings the three-loop structure into the plant and extends it for a multi-variable factory:

LoopObservesTime scalePrimary role
Device loopequipment health and process qualitysecondsequipment / process staff
Efficiency loopline takt and overall efficiency (OEE)minutesline / workshop
Work-order loopprogress and delivery datedaysplant manager / planning

The three loops couple: the outer loop sets targets for the inner, the inner feeds state back to the outer; a device fault propagates upward as an event, and a progress error propagates downward through a cross-loop channel as a correction. The inner loop is fast, the outer slow, and the loop closes. The dividing line between the two generations is regulation, not more reports.

Regulation rests on judgment. Who makes it?

If AI joins regulation, why trust it

Regulation needs judgment. Judgment used to come from rule engines and people; now a large language model joins in, with clear strengths in language and synthesis. Manufacturing has one explicit worry about it: the answer may have no provenance. Two models answering the same “yield”, one as first-pass yield and one as final-inspection yield, both run correct queries and produce different numbers. In the agent era this kind of semantic error costs the most, because the error is delivered confidently, in the tone of a conversation.

The engineering answer is not a smarter model but a verifiable step for everything it says. The ontology first fixes vocabulary: device, engineering step, work order, batch, pass, each with one definition and merged synonyms. Then it fixes definitions: the numerator and denominator of a metric, its scope, and which layer computes it; a definition may be drafted by a model but only takes effect after human certification, the gap between “auto-generated” and “business-approved” being one step a person must complete, with revisions versioned. Every answer carries provenance: where the data came from, which definition was used, who certified it. And for a question whose definition does not yet exist, the interface returns “not answerable” rather than a guess.

This design has public engineering precedents. Tsingley's published articles and NVIDIA's auto-ontology, open-sourced in November 2026 with a Discover / Ground / Validate / Expose / Learn pipeline, read-only MCP tools and deliberately no raw database access, follow the same idea: agents reach data only through a certified semantic layer. The value of an ontology is not making a model look smart, but giving every number a provenance. Intelligence supplies flexibility; the ontology supplies reliability; both are required.

Every adjustment of the three loops rests on these definitions: whether to slow down or maintain when health drops below threshold, how a step's pass is judged, how a progress error converts into a work-order change, all anchored to registered objects and definitions. Of course, the ontology constrains semantics, not acquisition itself; missing sensors, mismatched units and misaligned timestamps still need separate treatment, and a model will read “not sampled” as “zero”.

Who builds the system, and who grows the apps

Once the plant computes accurately and adjusts reliably, another change becomes feasible: ownership of upper-layer workflow functions is shifting from software vendors to the plant itself. Reporting, dashboards, inspection, maintenance and scheduling are functions whose rules each plant defines for itself, whose changes take minutes, and whose mistakes are cheap to redo; as AI lowers the cost of building applications, it becomes more sensible, economically and operationally, for the plant to build them.

The plant's digitalization then takes the shape of six layers with a clear delivery boundary:

diagram

Fig. 1: below the line, get it right once; above the line, the plant grows it.

Below the line are edge acquisition and judgment, line control, plant-wide data management, semantics and equations, and a private model; a mistake here means downtime or years of data losing comparability, so it must be done right once. Above the line are agent applications and the wiki, grown by the plant itself.

The new plant's shape is fix the definitions, free the flows: the definition layer is unique plant-wide and changes through certification; the flow layer changes with the organization and its people, same day. What was unstable, the definitions, becomes stable; what was frozen, the flows, becomes flexible. For the user this lands in three places: changes take effect the same day, the whole plant shares one number, and layers of functionality are no longer bought twice. And the lowered threshold is not a simplification of features; the hard part, making the machine understand the plant, has already been done.

If the plant grows its own apps, what does it grow them on?

Two things AI needs to be usable in a plant

Plants do not lack the will to try AI; they lack the confidence to let AI touch production data. The gap is usually not the model, but whether the knowledge foundations are in place.

Cognitive science splits knowledge into declarative and procedural: the former answers “what is”, the latter “how to”. A plant's knowledge splits the same way, and each kind needs a different carrier.

The ontology carries the first. What objects exist, how they relate, how each metric is computed and which layer owns it, are written down as machine-consumable definitions. This decides whether the numbers an AI produces can be trusted.

The wiki carries the second. Why a threshold was set here, how a past fault was resolved, what a certain sound means, are the organization's experience. This decides whether what an AI says is useful.

With either half missing, the failure modes are predictable. With an ontology and no wiki, the system computes that output dropped eight points yesterday but cannot explain the possible link to tooling; parameters become a black box, and once the engineer who set them leaves, nobody dares touch the configuration. Accurate, but not smart. With a wiki and no ontology, the same “pass rate” means three things in three departments, search returns contradictory records, and the system cannot compute how much progress a rush order would cost. Well documented, but unable to compute.

With both in place, AI moves from demo-ready to floor-ready: every number has a provenance and every sentence has experience behind it. The relationship between the two words therefore precedes their difference; they are two halves of one thing. Each half has its own threshold.

One answers “can I trust it”, the other “does it help”

Though the two depend on each other, the difference is real:

DimensionOntologyWiki
Knowledge typedeclarative: definitions, relationsprocedural: experience, judgment, cases
Answerswhat exists, how it links, how it computeswhy this way, how it was solved
Cost of an errorplant-wide definitions voided, yearsone entry revised, minutes
Change ratevery low, through certificationvery high, growing daily
Builderspecialists model, plant certifiesplant writes, outsiders struggle to
Machine-readableconstrains reasoning and computationsearchable, conclusions not fixed

An ontology rests on strong knowledge, and its threshold is consistency. It must mean the same thing across devices, lines and plants, and it must mesh tightly with the regulation logic, where a definition off by an inch steers the correction a foot wide. Its errors do not show as a bad record but as years of plant data losing comparability, so it needs a party with cross-line vision to model it and the plant to certify it, done right once.

A wiki rests on experience, with a low threshold, but it too cannot be ghostwritten. Polanyi observed in 1966 that “we can know more than we can tell”; economics and automation later called this Polanyi's paradox: the knowledge that really determines line quality often cannot be fully elicited in an interview. Whether a die should be replaced depends on a veteran's read of a noise, a judgment that exists on the floor as “this machine sounds wrong today”, demonstrable but hard to write down. A consultant can produce a correct, complete and well-structured document that lacks precisely the part that matters. Experience can only be written down gradually where it happens, so the wiki must be operated by the plant itself; for the same reason, what can be written down is only part of the experience, and a wiki's value is in growing, not in being finished once.

The division of labour follows: specialists take the part that is hard and expensive to get wrong, the plant takes the part that changes constantly and only it can write.

The two halves cooperate through one stitch point: the object ID. Every wiki entry hangs on an object in the ontology, a device, a process step, a fault type. Once attached, the two kinds of knowledge can be used together in a single answer.

Take one device: “can 3F-07 take this rush order today?”

diagram

Fig. 2: facts are computed by machines, experience written by people; neither half alone is enough.

No single side can reach this answer: with only a wiki, the current health and the progress impact are unknown; with only an ontology, the history of batch failures in this state is unknown; with only a large model, the conclusion cannot be verified.

The division is clear on paper. How does it land on the floor?

From build to handover: FDE on site

Once the division is set, the remaining question is execution: how the line is walked on the floor. A plant facing “grow its own apps” for the first time usually lacks method rather than will; an ontology and a wiki also do not appear in the workshop by themselves. The role that fills this gap is the FDE, the forward deployed engineer.

The difference from a traditional implementation consultant: the consultant takes requirements away and brings back a configured system; the FDE stays on site and delivers a plant that can operate itself. From build to final handover there are four steps.

Build: the first ontology grows out of on-site conversation

The FDE sits by the line with the process and equipment staff and drafts objects and definitions one by one: whether “first-pass” on this line includes rework, whether changeover counts as downtime, each definition checked on the spot with the people who know best. The first ontology is not written back at the office from a requirements document; it is a product of on-site conversation, and its quality decides how trustworthy the reports of the next few years will be.

Implement: data begins to flow by definition

Edge acquisition and judgment go in, line control takes over recipes and work orders, plant-wide data closes the loop, the private model is deployed, and data starts flowing under defined rules. At the same time the staff write the first wiki entries. Here the FDE writes the structure, not the judgment: a spoken “this machine sounds wrong today” becomes an entry hung on the device object, the judgment still belonging to the veteran; the wiki belongs to the plant from day one.

Iterate: problems flow back on site

Going live is only the start. Definitions that disagree with the floor go through certification revision; questions the agent cannot answer get wiki entries; missing objects get added to the ontology. In this step the FDE teaches rather than replaces, teaching process staff to revise definitions and engineers to attach entries themselves. After one round the difference is visible: remaining issues are no longer directional rework but clearly scoped quick fixes.

Hand over: a team, not a system

The final delivery list contains, besides the running six-layer architecture, a team that can operate itself: people who can certify definitions, write the wiki and let agents grow new apps. The FDE withdraws gradually; new lines and new metrics are then initiated by the plant. Acceptance therefore differs from traditional projects: not “the system is live” but “the plant's own people completed a round of their own business Q&A through the agent”.

The division between ontology and wiki becomes, across the FDE's four steps, a walkable path: ontology first at build, data in place at implement, each side revising at iterate, capability left behind at handover.

Conclusion: change, from risk back to routine

The traditional digital plant also connects things: data flows join systems, workflows join steps. But it connects by freezing one moment's understanding of the plant into interfaces, schemas, workflow definitions and reports. The understanding stops updating the moment it is written into code, while the plant changes every day. Worse, field semantics scatter across the code, dependencies live in people's memory, one field change can ripple into several reports, interfaces and a workflow definition, the blast radius is incalculable, and verification is manual regression: a small change can amplify into a fatal chain failure. Low-code and configurable platforms do not change this; they only move the implicit definitions from code into configuration. What the plant ultimately learns is not digitalization but not to touch the system: the system turns from a tool that reflects the plant into a rulebook that constrains it.

The new digital plant puts logic in a different place. Definitions no longer hide in code; they are registered explicitly as an ontology: definitions certified, equations catalogued, experience attached to objects. With a large model on top, computation changes from “pre-computed then queried” to “computed on demand”: read the current question, query the current data, reason under certified definitions, and return an answer with provenance. Reports are no longer pre-built but asked for; flows are no longer all pre-arranged, the high-frequency, safety-critical ones still run as deterministic rules while the rest are generated from context; a new device or metric extends the ontology, not the code. The blast radius of a change is computable along object relations, and the result is checkable: a small change turns from risk back to routine.

Inference takes over the business layer, not the control loop. Millisecond-level judgment and regulation stay in the deterministic edge systems; safety and real time are not entrusted to a probabilistic model. What the large model reasons over is data, definitions and experience, and what it produces is analysis and advice. Intelligence supplies flexibility, the ontology supplies reliability, and this division holds across both eras.

This is why Tsingley's MES II puts the ontology, the equations and the private model into the foundation: the physical and semantic layers build a “reasoning-ready plant” first, the flow layer is left to grow on top of it, and the FDE leaves the capability behind through build, implement, iterate and handover. What the plant receives is not a set of data and workflow flows that start aging on the day they ship, but a reasoning base that updates with the plant. Fast, good and economical follow from this: fix the definitions, free the flows, and leave the rest to inference.

A new plant's knowledge assets settle into three things: a set of definitions (ontology), a set of equations (the computable rules of plant operation), and a notebook of judgments (wiki). The first two are delivered; the last can only be completed by the plant itself, the part a team accumulates over years on the floor that cannot be elicited in an interview. Whether experience is willing to be written down and whether definitions are willing to be obeyed is a matter of management and culture that no system can replace.

That line is itself the division-of-labour diagram of the new digital factory.