From dac87eaa1d57acfc5b2dd8427e7fbacfe065e613 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 20 Nov 2026 23:06:52 -0300 Subject: soak: a cut client's queue stamped from within it: scrt-6 panicked in Soak.stamp ('start index 67100408 is larger than end index 31'): the session cut the far client off past its limit (replica.zig Peer.send), which empties its queue for the 31 bytes of its refusal, while the soak's mark still stood 64 MiB into the old one (the trace's 11 KB digests had swelled that queue); the mark is kept within the queue; the gate after it: bytes --seeds 8 --witness 5 of 5, seed 0 at 30 ms 40 of 40, screen-state (traced) 10 of 10 Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/replicas.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/replicas.zig') diff --git a/test/replicas.zig b/test/replicas.zig index c0df99a1..e035cd81 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -1462,7 +1462,8 @@ const Soak = struct { /// from them (`joined`: in process, both read one). fn stamp(s: *Soak, cl: *Client, peer: *replica.Peer) void { const out = peer.out.items; - var at = cl.marked; + // A cut (Peer.send, past its limit) empties the queue for its words. + var at = @min(cl.marked, out.len); while (pardes.wire.framed(out[at..]) catch null) |f| : (at += f.total) { if (f.tag != @backingInt(pardes.wire.ServerTag.unit)) continue; const head = at + f.total - f.payload.len; -- cgit v1.3