fix(runtime): #1113 the comms-recovery audit names the status the latched nodes actually carry

Item 3. After a respawn / Restart re-stamped a comms-lost driver's nodes
BadWaitingForInitialData (#1112), the kept-latch audit still said the refs were
'still BadNoCommunication'. The host now records that the latched nodes were
re-stamped (_commsLatchReplaced; cleared with the latch and by a fresh
comms-loss stamp) and the Warning reads 'still BadWaitingForInitialData' in
that case, 'still BadNoCommunication' otherwise.

Tests: new Restart-of-a-comms-lost-driver case; the #1053 Restart test and the
item-2 test expect the new wording; the no-audit absence checks match any
'ref(s) still' so they cannot pass vacuously on the wording change.
This commit is contained in:
Joseph Doherty
2026-12-05 03:05:35 -05:00
parent 77adf410df
commit 4a5407f88f
4 changed files with 56 additions and 11 deletions
+3 -1
View File
@@ -601,7 +601,9 @@ instead (#1113 — it used to drop it, so a respawn of an already comms-lost dri
the replacement is what must re-publish those refs. Every apply's reindex trims every outstanding latch to the refs the new
composition still routes for that driver (`TrimCommsLatchesToIndex`) — a ref the deploy dropped is no longer subscribed and
can never be re-published, so it must not be reported — and drops a latch left empty; this runs inside the same apply
message as the respawn, so before the replacement's `Connected` can arm the audit. `StopChild` also
message as the respawn, so before the replacement's `Connected` can arm the audit. The Warning names the status the nodes
actually carry: `still BadNoCommunication`, or `still BadWaitingForInitialData` once a respawn / Restart re-stamped them
(#1113). `StopChild` also
holds the id in the `ChildHealthLedger` (`Forget` then `Readmit` on the next spawn), so the stopped child's late health
publish cannot resurrect its diagnostics entry.