fix(mesh): 1B.1 review follow-ups

Two review items from Task 1B.1, both diagnostic:

1. CentralCommandGrpcService's "actor not ready" Warning omitted the peer and
   the correlation id while the decode-failure Warning six lines above carried
   both. These are the only two ways an ack fails to reach the coordinator, and
   an operator has to correlate either against the node's own log. Decoding has
   already succeeded on this path, so the DECODED correlation id is free.

2. A fused driver,admin,cluster-MAIN node under Mode=Grpc owes BOTH validator
   surfaces at once (driver keys AND ConfigServe:GrpcListenPort). The two blocks
   are independent `if`s; chained as `else if` a fused central node would be
   graded on one surface only and boot with nowhere for any ack to land. Pinned
   from both sides plus the fully-configured pass.
This commit is contained in:
Joseph Doherty
2026-08-06 05:36:16 -04:00
parent 1368578435
commit e1db90f9c9
3 changed files with 53 additions and 4 deletions
@@ -454,6 +454,29 @@ public class MeshTransportOptionsValidatorTests
"driver", "cluster-SITE-A").Succeeded.ShouldBeTrue();
}
[Fact]
public void Grpc_fused_admin_and_driver_node_must_satisfy_BOTH_surfaces()
{
// The central pair is fused (admin,driver,cluster-MAIN), so it is the one node shape that owes
// both halves at once — and the two blocks are independent `if`s, not an `if`/`else if`. Were
// they chained, a fused node would be graded on the driver surface only and its missing
// ConfigServe listener would pass validation, leaving central with no place for any node's ack
// to land. Asserted from BOTH sides so a future chaining in either order is caught.
var missingNodeSide = new MeshTransportOptions { Mode = MeshTransportOptions.ModeGrpc };
var withPort = Validate(missingNodeSide, ConfigServePort("4055"), "driver", "admin", "cluster-MAIN");
withPort.Failed.ShouldBeTrue();
withPort.FailureMessage.ShouldContain("MeshTransport:GrpcPsk");
withPort.FailureMessage.ShouldContain("MeshTransport:CentralGrpcEndpoints");
var missingAdminSide = Validate(WellFormedGrpc(), "driver", "admin", "cluster-MAIN");
missingAdminSide.Failed.ShouldBeTrue();
missingAdminSide.FailureMessage.ShouldContain("ConfigServe:GrpcListenPort");
// And the fully-configured fused node passes — the rule is "both", not "neither".
Validate(WellFormedGrpc(), ConfigServePort("4055"), "driver", "admin", "cluster-MAIN")
.Succeeded.ShouldBeTrue();
}
[Fact]
public void ClusterPsks_defaults_to_an_empty_case_insensitive_map()
{