From f98c3dd97bdfdbab8898bd42f53e31bd323e9078 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 20 Nov 2026 21:21:59 -0300 Subject: soak: the witness's judgement streams to stderr: Witness.judge wrote through File.stderr().writer, which Zig 0.17 makes positional from offset 0, so with stderr a log file each judgement wrote over the run's first lines (every screen-state log began with the last seed's witness and lacked the run's header; scrB-3's reason for rc=1 was lost so, and the earlier round's scr-3 'no table' likely too); writerStreaming Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/replicas.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/replicas.zig') diff --git a/test/replicas.zig b/test/replicas.zig index 2a486db8..a1da2f8d 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -1010,7 +1010,9 @@ const Witness = struct { pardes.syntax.held_trees = trees; } var out_buf: [1 << 14]u8 = undefined; - var stderr = std.Io.File.stderr().writer(s.l.peers.io, &out_buf); + // Streaming: a positional writer starts at offset 0, and over a log + // file each judgement wrote over the run's first lines. + var stderr = std.Io.File.stderr().writerStreaming(s.l.peers.io, &out_buf); const w = &stderr.interface; defer w.flush() catch {}; const tag = .{ s.r.seed, s.r.rtt_ms }; -- cgit v1.3