23f7468b4b
Two_demands_of_one_node_in_one_cohort_both_renew_from_one_tick failed intermittently on merged master (a 60 s hang in NextPublishedRenewal). Reproduced under CPU load (14 busy cores: 4 of 6 runs failed) with a failure dump of the renewal state. Every failure showed the same thing, and it was not a deadlock: both renewals had committed (RenewalStarted+2, RenewalSucceeded+2, joined=1, no claim left in _overlapRenewals), both demands were valid on the same successor, but the cohort's attempt then ended "Renewal snapshot did not establish a complete baseline" and the stream reopened (opens 2), with only one rebind snapshot ever published. Cause: the test fixture. FakeSubscriptions answered an Add of several items with a snapshot value for the FIRST item only. Whether the two demands' rebinds are re-added by one Add command or two depends on timing (they are batched when both RenewedEvents are handled before the cohort flushes); in one command the second item had no baseline, which the consumer treats as a failed renewal (by design), and the reopened stream's recovery Add again valued one item. A real origin sends a value for every ready item of a snapshot. The fake now does the same (EmitValueCore takes the handle; EmitValue/EmitValueWithoutSourceTimestamp keep the first-added item). Tests: The_fake_origin_snapshots_every_item_one_add_command_carries (fails on the old fixture); the flaky test also asserts the renewal kept the physical stream (Opens 1) and, on timeout, throws a dump of the published updates, counter deltas, demand bindings and pending overlap claims instead of a bare 60 s cancellation. Loops: the test 30/30 under 14-core load (was 2 of 6 passing); GrpcDataConfiguredDiscoveryWireTests 3/3 (160 each); full Runtime.Tests (Category!=SlowUnit) 2387 passed, 0 failed. Co-Authored-By: Claude <noreply@anthropic.com>