fix(runtime): #1113 document that a slow-connecting replacement reads BadWaitingForInitialData (accepted)

Item 5 (owner decision, docs only). DriverLifecycle.md: the respawn/Restart stamp
does not change while the replacement's initialise is still retrying - it has not
lost anything, it has not connected yet; the nodes go BadNoCommunication only if
the replacement connects and then loses its device. .claude/rules/drivers.md
summarises the #1113 changes.
This commit is contained in:
Joseph Doherty
2026-12-05 03:05:45 -05:00
parent 399deea32f
commit b9a98f0f59
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -649,6 +649,12 @@ supervision restart (same driver object — unchanged, still covered by that chi
disable (`RemovedInputStatus` + node removal). ScadaBridge sees a brief Bad per respawn/Restart — accepted.
Pinned by `DriverHostRespawnValueNodeGapTests` (both seams, both interleavings, no-latch with a positive control).
- **A slow-connecting replacement reads `BadWaitingForInitialData`, not `BadNoCommunication` — accepted (#1113, owner
decision).** The stamp says "a new driver object, no value yet"; it does not change while the replacement's initialise is
still retrying, because the replacement has not lost anything — it has not connected yet. The nodes go
`BadNoCommunication` only if the replacement connects and then loses its device (its own comms-loss stamp, latched and
audited as usual). An operator watching a node stuck at `BadWaitingForInitialData` after a respawn should check the
driver's status on `/hosts` (Connecting / Reconnecting), not the node.
- **A stub replacement reads `BadConfigurationError` (#1113).** When the replacement (or a freshly deployed driver) is a
STUB — no factory for its type on this node, the factory rejected its config, or the type is not allowed on the node's
roles — it never publishes, so `BadWaitingForInitialData` would be a promise that cannot be kept.