From 253aa8325ed9a0d77d487db854798bb3fb144b08 Mon Sep 17 00:00:00 2001 From: patrickryan01 Date: Sat, 28 Nov 2026 18:15:13 -0500 Subject: [PATCH] i named failover warm standby, stations station push and the write path with Eric's feature names docs only: no code changed, so no suite run. --- README.md | 4 ++-- docs/MCP.md | 2 +- docs/diagrams.md | 4 ++-- docs/durable/README.md | 2 +- docs/failover.md | 4 ++-- docs/stations.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ca1a780..7c6cf83 100644 --- a/README.md +++ b/README.md @@ -1528,7 +1528,7 @@ When HotLoop is on the network, the equipment is its to guard. Every equipment write node (`modbus write`, `opcua write`, `s7 write` and `ethernetip write`) has **Write through HotLoop**, empty by default, and **HotLoop tag**, the tag in HotLoop this write is for, written `device/tag`. With a HotLoop picked, the -value goes to `POST /api/write` and not to the PLC. HotLoop's write gate decides, +value goes to `POST /api/write` and not to the PLC. HotLoop's Safe writes decide, in its order: that writes are switched on, that the tag is armed, that the value is in the tag's range. HotLoop's own address, data type and scale for that tag apply, so the address and data type on the Flow node are not used. The node's @@ -2768,7 +2768,7 @@ lineup. Flow talks to them, and it will never be built into them. It runs next to them and calls HotLoop's API from the outside: the HotLoop nodes read entity states and changes, run scripts and apply recipes, and the equipment write nodes can -send their writes through HotLoop's write gate. All of that is under +send their writes through HotLoop's Safe writes. All of that is under [The plant floor](#the-plant-floor). A Flow with no HotLoop picked shares nothing with them but a broker, if you give them one. diff --git a/docs/MCP.md b/docs/MCP.md index f41d74c..12c2fda 100644 --- a/docs/MCP.md +++ b/docs/MCP.md @@ -66,7 +66,7 @@ without diagrams or instruments has neither the routes nor the tools. A control how a person commands what a diagram drives, so setting one, running a diagram and switching an instrument's writes are in the audit log under the caller's name as they are for a person, and a diagram's write to equipment still goes through -HotLoop's write gate and an instrument's own switch. +HotLoop's Safe writes and an instrument's own switch. | Tool | Route | Permission | Does | |---|---|---|---| diff --git a/docs/diagrams.md b/docs/diagrams.md index 2f1fd00..b9e857d 100644 --- a/docs/diagrams.md +++ b/docs/diagrams.md @@ -419,9 +419,9 @@ The canvas zooms from 5 percent to 400 percent about the pointer, and reads its Every FlowLab node type is drawn with a symbol of our own at the middle of its body (a plus for math, a sigma for statistics, a sine for a waveform, a plug for a serial port), beside its text label. They are plain strokes drawn in `web/src/lib/symbols.ts`, not an icon font or anyone's artwork, and a test fails when a diagram node type names an icon that is not drawn. -## Writing to equipment: the write gate +## Writing to equipment: Safe writes -A diagram commands equipment one way: `dia-hotloop-write`. It sends its value to a tag in HotLoop (`device/tag`, set on the node or wired in) through HotLoop's write gate, which decides in its own order that writes are switched on, that the tag is armed and that the value is in range. Flow never writes to a machine itself. HotLoop records every attempt, refused or not, with the reason `flow:/`, so its audit trail names the diagram and the node. A refusal is an error on the node's error wire with the gate's own reason (code 5006), and so is a HotLoop that cannot be reached; in both cases the write does not happen, and the node refuses to deploy without a HotLoop selected. The raw serial and instrument nodes talk to bench instruments (meters, supplies, loads), which have no tag in HotLoop, so they have a switch of their own (below). +A diagram commands equipment one way: `dia-hotloop-write`. It sends its value to a tag in HotLoop (`device/tag`, set on the node or wired in) through HotLoop's Safe writes, which decides in its own order that writes are switched on, that the tag is armed and that the value is in range. Flow never writes to a machine itself. HotLoop records every attempt, refused or not, with the reason `flow:/`, so its audit trail names the diagram and the node. A refusal is an error on the node's error wire with the gate's own reason (code 5006), and so is a HotLoop that cannot be reached; in both cases the write does not happen, and the node refuses to deploy without a HotLoop selected. The raw serial and instrument nodes talk to bench instruments (meters, supplies, loads), which have no tag in HotLoop, so they have a switch of their own (below). ## The instrument write switch diff --git a/docs/durable/README.md b/docs/durable/README.md index ba5113b..7f924ed 100644 --- a/docs/durable/README.md +++ b/docs/durable/README.md @@ -133,7 +133,7 @@ for. A message that crosses a durable wire is stamped `msg._queuedAt` with the time it entered the wire, and `influxdb out` with no timestamp configured writes the point at that time. A repeat is the same series at the same time, which InfluxDB treats as an overwrite, so the row count doesn't move. It also fixes the -other thing that goes wrong with store-and-forward: without it, every reading +other thing that goes wrong with store and forward: without it, every reading held through an outage is stamped when InfluxDB comes back, and an hour of history lands in one minute. A sink that stamps on arrival, a `now()` in a Postgres insert for one, would store a repeat twice, and it would put the diff --git a/docs/failover.md b/docs/failover.md index 22e5418..c2b1a93 100644 --- a/docs/failover.md +++ b/docs/failover.md @@ -1,4 +1,4 @@ -# Failover: a warm standby with a lease +# Warm standby Two installs of Flow can share the job of one. One of them is the writer: it is the only one that sends anything to equipment. The other is the standby: it runs the same flows, reads, subscribes and keeps its context warm, but holds every equipment write until it takes the writer's place. If the writer dies, hangs or loses its link, the standby takes over in about the length of a lease, and the one that was the writer cannot write again until it wins the lease back. @@ -15,7 +15,7 @@ Every write to equipment asks the same question just before it sends: do I hold - A holder that is frozen and thawed, or cut off and reconnected, finds its lease gone, refuses its writes, and asks for the lease like anyone else. - The database's clock decides when the lease ends, so two boxes whose clocks disagree still agree on who holds it. -The writes that ask are the ones that can command equipment: `modbus write`, `s7 write`, `opcua write` and `ethernetip write`, whether direct or through HotLoop's write gate, the `hotloop script` and `hotloop recipe` nodes, and in a FlowLab diagram the serial write, an instrument command that writes (alongside that instrument's own write switch) and the HotLoop write. Sending a message to an MQTT broker, a database or a notification is not fenced: it is not a command to equipment, and a repeat of it is harmless where a repeated setpoint may not be. A flow test stands in for the outside world and is never held. +The writes that ask are the ones that can command equipment: `modbus write`, `s7 write`, `opcua write` and `ethernetip write`, whether direct or through HotLoop's Safe writes, the `hotloop script` and `hotloop recipe` nodes, and in a FlowLab diagram the serial write, an instrument command that writes (alongside that instrument's own write switch) and the HotLoop write. Sending a message to an MQTT broker, a database or a notification is not fenced: it is not a command to equipment, and a repeat of it is harmless where a repeated setpoint may not be. A flow test stands in for the outside world and is never held. ## What it costs and what it does not give you diff --git a/docs/stations.md b/docs/stations.md index e02b37b..088ab0d 100644 --- a/docs/stations.md +++ b/docs/stations.md @@ -1,4 +1,4 @@ -# Pushing a flow file to a tenant's stations +# Station push A tenant in EmberNet can run several HotLoop Flow installs, one at each plant or line. We call each one a station. This page is about putting one flow file, and so one set of FlowLab diagrams, on all of them, checking each one, and putting a station back if it fails.