Search and contents

Instruction conformance

A plant's documents say how its equipment should be run: "cure at 180 °C ± 5 °C". Instruction conformance compares what the equipment does with what a document says, and tells a person when they differ. A person confirms a requirement from a document (a claim), an integrator says which tag of the equipment it governs (a binding), and the MES Node compares each reading with the claim's limits with a rule. No model decides whether a reading is outside a limit. A model may explain an alert afterwards, as a draft for a person to review, and never raises one.

This page is the place to start. It says each part in a few lines and links to the page that has the detail.

To learn aboutRead
How a claim is drafted and confirmed Instruction claim drafting
The binding's keys, the commands, what the Node does with an enabled binding and every rule of an alert Instruction bindings
Trying a binding on a sample of readings before it is enabled Previewing an instruction binding
The tables an alert and a run summary are kept in Database reference
The alert routes and the alerts scope Management API
The page a person acknowledges on The review page (its Alerts tab)

What an alert is

An alert is what a Node raises when a reading stays outside a limit of a confirmed claim, with the binding's scope condition holding, for as long as the binding's persistence rule says. It is three records under one id: a row in the alerts table, an Activity Log entry with the task type instruction conformance: alert raised and a deviation Trigger that Case Triage turns into a drafted explanation. The comparison is the Deviation Flagging rule, so no model decides it, and an alert is never held for approval: a person confirmed the claim and an integrator wrote the binding, so the oversight comes before the alert, and a crossed limit is a fact and not a draft.

The entry says where the instruction is (document, revision and locator) and never what it says. It holds no value of the scope condition and no node id, because it is published on the Activity Log topic.

What is guaranteed

An alert is recorded, visible and published. It is recorded in the append-only Activity Log and in the table, visible to anything that reads either, and published on the Node's Activity Log topic, which is a live feed and not a delivery guarantee. Kindred does not page a person, does not send an alert again on a timer and does not escalate. An alert is not delivered to anyone: a site's own alarm or notification tool subscribes to the topic and decides who is told.

The binding and its three modes

A binding is integrator-written configuration in an MES Node's instruction_bindings section: one confirmed claim, one concrete OPC UA node id, the unit that tag is in, a scope condition and product and operation labels. A Node runs at most 50 bindings in observe or alert mode, and any number may be disabled.

ModeWhat it does
disabled The binding is checked and kept. The Node never reads its tags. disabled is the default.
observe The Node reads the tags, judges every reading and keeps a run summary. It raises nothing.
alert Everything observe does, and a confirmed crossing raises an alert.

Run a binding in observe, and preview it on a sample, before turning on alert. A binding whose claim stops being current (superseded, deactivated, outside its dates) is stopped, with one Activity Log entry that names the binding and the claim and quotes neither.

The scope condition

No reading says which product or operation is running, so a binding carries a condition: a second tag of the same endpoint and the equals value it must have. A claim is judged only while it holds, so an oven idle at 25 °C is not held to a cure temperature. A condition that cannot be read gives no alert and one Activity Log entry, never a guess, and a reading that is missing, not a number, NaN or infinite is never a crossing. product and operation are labels on the alert; nothing is compared with them.

Suppression

The same cause (the binding, the claim, the limit crossed and the scope condition) raises at most one alert per min_interval_seconds: from 60 seconds, 3600 seconds by default, to 604800 seconds. A new run outside the limit inside the interval is counted on the latest alert and not sent, and the next alert carries that count as suppressed_before. The interval runs from the alert, and the alert that follows it is raised by a reading that arrives and is still outside the limit, never raised by a timer. Nothing is silenced for good, and acknowledging an alert does not change this: a later alert of the same cause is a new alert and waits for a person.

Acknowledgement

Acknowledging an alert is a later step in which a person says what they made of it. It gates nothing: an unacknowledged alert stops nothing and is not sent again. A person holding a token with the alerts scope records one of three dispositions:

DispositionMeans
confirmed_issue Operations were outside the instruction.
dismissed The instruction is correct and nothing needs doing.
instruction_needs_revising The document is out of date or wrong.

There is no free text. What is recorded is the token's id, the time and the disposition, in the acknowledgements table and in one Activity Log entry with the task type instruction conformance: alert acknowledged; the alert's own entry is not changed. The routes are GET /v1/alerts, GET /v1/alerts/count, GET /v1/alerts/{alert_id} and POST /v1/alerts/{alert_id}/acknowledge. Kindred acknowledges only the alerts it raises itself, never a deviation, a hold or a rework in the site's own MES or quality system.

Where a person sees an alert

  • The review page has an Alerts tab and a banner that counts the alerts waiting, and asks for that count every 30 seconds.
  • The shift handoff opens with the alerts nobody had acknowledged when its window ended, at most 20 of them, and gives the model only the count.
  • The pending counts a Node announces for a reader that watches several Nodes carry the number waiting, which is null for a Node with no alert source and never read as none.
  • The explanation is a summary Case Triage drafts for review. With inference enabled, every number it states must be a number in the alert's payload; a draft that states another is withheld and the structured facts stand in for it.

Run summaries

A run is the stretch in which a binding's scope condition holds. In observe and alert mode the Node keeps one small row for each run in instruction_run_summaries (its columns): the count of readings, the smallest, mean and largest and the standard deviation, how many were outside a limit, the labels and the claim's revision. Kindred records no readings, so a row is never a reading and holds no wording from a claim. The rows show what a tag did over past runs, and they accrue from the day a binding first runs. A run the Node did not see the end of is marked interrupted, never complete.

Release: v0.11.0