summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/tests.zig7
-rw-r--r--src/replica.zig96
-rw-r--r--src/tape.zig4
-rw-r--r--test/replicas.zig40
4 files changed, 89 insertions, 58 deletions
diff --git a/build/tests.zig b/build/tests.zig
index b7c7a5e7..ff206438 100644
--- a/build/tests.zig
+++ b/build/tests.zig
@@ -135,16 +135,15 @@ pub fn add(b: *std.Build, c: struct {
const liar_mod = b.createModule(.{ .root_source_file = b.path("test/liar.zig"), .target = c.target, .optimize = c.optimize, .imports = &.{.{ .name = "addon", .module = c.addon_mod }} });
const liar_lib = b.addLibrary(.{ .name = "liar", .linkage = .dynamic, .root_module = liar_mod });
for ([_]*std.Build.Step.Compile{ snake_lib, life_lib, liar_lib }) |lib| addon_test_step.dependOn(&b.addInstallArtifact(lib, .{}).step);
- // The replicas' soak, its clients showing a picture, a PDF and a game
- // of life from these libraries, as a user's addons are loaded.
+ // The replicas' soak, its clients showing a picture and a game of life
+ // from these libraries, as a user's addons are loaded (the PDF's too,
+ // whose pane it does not open: round 5's report).
const replicas = program(b, "pardes-replicas", "test/replicas.zig", c.target, c.optimize, &.{ .{ .name = "pardes", .module = c.core_module }, .{ .name = "term", .module = c.parts.term } });
const run_replicas = b.addRunArtifact(replicas);
for ([_]?*std.Build.Step.Compile{ c.image_addon, life_lib, c.pdf_addon }) |l| if (l) |lib| {
run_replicas.addArg("--addon");
run_replicas.addArtifactArg(lib);
};
- run_replicas.addArg("--pdf");
- run_replicas.addFileArg(b.path("docs/design.pdf"));
run_replicas.addPassthruArgs();
run_replicas.has_side_effects = true;
b.step("replicas", "one authority and several replicas in process, each client typing over a delayed link: digests at quiescence, rollback rate and costs per RTT (-- [--seeds N] [--steps M] [--clients C] [--rtt 30,80,207])").dependOn(&run_replicas.step);
diff --git a/src/replica.zig b/src/replica.zig
index 2cbf0c0c..b6fbdfa0 100644
--- a/src/replica.zig
+++ b/src/replica.zig
@@ -43,6 +43,11 @@ const stamp_len = wire.header_len + 16;
/// Confirmed units fast-pathed under one copy before it is taken afresh:
/// a rollback replays them all.
const rebase_after = 32;
+/// A client compares its core's digest with the session's at most once in
+/// this many confirmed units (a unit that carries one, its state the
+/// confirmed one), and once quiet (`Link.quietCheck`): a full digest is a
+/// walk of the whole core, an edit's worth of work.
+const check_every = 32;
fn header(buf: []u8, who: u16, seq: u32) void {
std.mem.writeInt(u16, buf[0..2], who, .little);
@@ -173,6 +178,8 @@ pub const Authority = struct {
a.t.screen_state = screens;
// One word a digest: every pty read is a unit.
a.t.whole_digest = screens and std.c.getenv("PARDES_REPLICA_TRACE") == null;
+ // A digest at a unit's end, as the session's (Peers.unit).
+ a.t.no_digest = true;
const was = Stepping.begin(&a.t, null);
defer was.end();
a.core = try Pardes.init(gpa, opts);
@@ -193,6 +200,9 @@ pub const Authority = struct {
/// What was recorded since the last unit, as one (the boot's, a setup's
/// done straight on the core).
pub fn unit(a: *Authority, origin: u16, seq: u32) ![]const u8 {
+ const was = Stepping.begin(&a.t, null);
+ tape.recordDigest(&a.t);
+ was.end();
a.out.clearRetainingCapacity();
try a.out.appendNTimes(a.gpa, 0, unit_head);
unitHeader(a.out.items, origin, seq);
@@ -233,8 +243,6 @@ pub const Authority = struct {
/// authority's rolls back a replica's pending inputs), and its digest
/// once a unit.
pub fn output(a: *Authority, ev: pardes.Event) void {
- a.t.no_digest = true;
- defer a.t.no_digest = false;
a.apply(ev);
a.batched += 1;
}
@@ -243,8 +251,6 @@ pub const Authority = struct {
/// alone, its clock advanced and what is due ticked, into the open
/// batch.
pub fn pump(a: *Authority) void {
- a.t.no_digest = true;
- defer a.t.no_digest = false;
const was = Stepping.begin(&a.t, null);
a.core.pump(a.host) catch {};
was.end();
@@ -256,9 +262,6 @@ pub const Authority = struct {
pub fn pending(a: *Authority) !?[]const u8 {
if (a.batched == 0) return null;
a.batched = 0;
- const was = Stepping.begin(&a.t, null);
- tape.recordDigest(&a.t);
- was.end();
a.seq += 1;
return try a.unit(0, a.seq);
}
@@ -637,6 +640,8 @@ pub const Stats = struct {
foreign: u32 = 0,
rebases: u32 = 0,
units: u32 = 0,
+ /// Its digest compared with the session's (a unit's, or quiet).
+ checks: u32 = 0,
/// The samples below kept: an in-process harness's replica, or a
/// client's with PARDES_REPLICA_STATS. Without, nothing is: a client
/// runs for days, and they grew a word an input and a delta.
@@ -734,6 +739,8 @@ pub const Replica = struct {
last_digest: std.ArrayListUnmanaged(u8) = .empty,
/// Units of another's taken so, no rollback made.
neutral: u32 = 0,
+ /// Confirmed units since its digest was last compared (`check_every`).
+ since_check: u32 = 0,
/// What it shows changed since the host last drew it: a unit replayed
/// on it, a rollback (a unit that confirmed what it applied, or moved
/// nothing, changes nothing to draw).
@@ -790,6 +797,7 @@ pub const Replica = struct {
r.* = .{ .gpa = gpa, .id = id, .t = tape.memory(gpa), .stats = .{ .samples = true } };
r.t.screen_state = screens;
r.t.core_gpa = r.epoch.allocator();
+ r.t.checks = false;
r.confirm(first);
if (r.t.core == null) {
r.deinit();
@@ -810,6 +818,7 @@ pub const Replica = struct {
const r = try gpa.create(Replica);
r.* = .{ .gpa = gpa, .id = id, .view = view, .t = tape.memory(gpa), .guess = true };
r.t.skips_render = true;
+ r.t.checks = false;
// Its terminals are the session's deltas (Peers sends them).
r.t.screen_state = true;
errdefer {
@@ -927,6 +936,7 @@ pub const Replica = struct {
if (r.diverged != null) return;
const u = parseUnit(msg) orelse return r.fail("a unit too short to read");
r.stats.units += 1;
+ r.since_check +|= 1;
if (u.origin == r.id) if (r.t.core) |c| r.echo.confirmed(c, u.seq);
// A copy taken ahead (`ready`), nothing on top: it stays the point a
// rollback goes back to, the unit replayed on it and kept in `since`,
@@ -948,11 +958,9 @@ pub const Replica = struct {
{
r.stats.fast += 1;
// The state it ends on, which a unit of another's that moves
- // nothing ends on again (`neutral`).
- if (lastDigest(u.tape)) |d| {
- r.last_digest.clearRetainingCapacity();
- r.last_digest.appendSlice(r.gpa, d) catch {};
- }
+ // nothing ends on again (`neutral`); none, not known.
+ r.last_digest.clearRetainingCapacity();
+ if (lastDigest(u.tape)) |d| r.last_digest.appendSlice(r.gpa, d) catch {};
if (r.pending.items[0].terminal and r.applied > 1) {
// Right, but what it did read a terminal: replayed later (a
// rollback's `since`) it would read the deltas that came
@@ -969,17 +977,21 @@ pub const Replica = struct {
r.applied -= 1;
if (r.applied == 0) {
// Nothing speculative on top any more: the state is the
- // confirmed one, which its digest says. A step of its own
- // that read what the session's did not (a frame's, a
- // derived field's) shows here, at the input that did it,
- // not at some later unit replayed.
- if (lastDigest(u.tape)) |d| {
+ // confirmed one, which its digest says, when it carries one
+ // and a check is due. A step of its own that read what the
+ // session's did not (a frame's, a derived field's) shows at
+ // the next check, or quiet (`Link.quietCheck`).
+ if (r.checkDue()) if (lastDigest(u.tape)) |d| {
+ r.t.checks = true;
r.t.check(d);
+ r.t.checks = false;
+ r.since_check = 0;
+ r.stats.checks += 1;
if (r.t.diverged) |why| {
trace(r.gpa, "replica {d}: its input {d} came to another state than the session's: {s}\n", .{ r.id, u.seq, why }, &.{u.tape});
return r.fail(why);
}
- }
+ };
// The copy stays the point a rollback goes back to, this
// input kept to replay over it as a unit of the session's
// that comes while idle is: a step writes some bytes of the
@@ -997,10 +1009,12 @@ pub const Replica = struct {
return r.keepSince(u.tape);
}
const ends = lastDigest(u.tape);
- defer if (ends) |d| {
+ // None: where it ended is not known, and the next unit is not
+ // taken as moving nothing from it.
+ defer {
r.last_digest.clearRetainingCapacity();
- r.last_digest.appendSlice(r.gpa, d) catch {};
- };
+ if (ends) |d| r.last_digest.appendSlice(r.gpa, d) catch {};
+ }
if (r.applied > 0 and u.origin != r.id and ends != null and std.mem.eql(u8, ends.?, r.last_digest.items)) {
// Nothing a digest covers moved: what was applied on top is
// what the session will apply on top of it. Replayed when the
@@ -1030,10 +1044,20 @@ pub const Replica = struct {
for (c.panes, &serials) |slot, *n| n.* = if (slot) |pane| pane.serial else 0;
for (c.retired_panes.current, c.retired_panes.previous) |x, y| retiring = retiring or x != null or y != null;
}
- if (tape.replayUnit(&r.t, u.tape)) |why| {
+ // Its digest compared when one is due (the units kept since and
+ // replayed by a rollback were, if at all, as they came).
+ const check = ends != null and r.checkDue();
+ r.t.checks = check;
+ const replayed = tape.replayUnit(&r.t, u.tape);
+ r.t.checks = false;
+ if (replayed) |why| {
trace(r.gpa, "replica {d}: the unit of {d}/{d} diverged: {s}\n", .{ r.id, u.origin, u.seq, why }, &.{u.tape});
return r.fail(why);
}
+ if (check) {
+ r.since_check = 0;
+ r.stats.checks += 1;
+ }
if (u.origin == r.id) {
if (r.pending.items.len == 0 or r.pending.items[0].seq != u.seq) return r.fail("the authority confirmed an input this replica did not send next");
if (r.blocked == u.seq) r.blocked = null;
@@ -1058,6 +1082,11 @@ pub const Replica = struct {
r.keepSince(u.tape);
}
+ /// Its digest is due a comparison (`check_every`; every unit traced).
+ fn checkDue(r: *const Replica) bool {
+ return r.since_check >= check_every or std.c.getenv("PARDES_REPLICA_TRACE") != null;
+ }
+
fn fail(r: *Replica, why: []const u8) void {
if (r.diverged == null) r.diverged = r.gpa.dupe(u8, why) catch return;
}
@@ -3072,9 +3101,10 @@ pub const Link = struct {
/// The last frame was held for the frontend's answer (a terminal's
/// FrameAck, a window's skipped image).
owed: bool = false,
- /// PARDES_REPLICA_CHECK=<file>: once quiet a while after a change, the
- /// session's digest is asked, and whether this replica's agrees is
- /// written there, a line a check.
+ /// Once quiet a while after a change, the session's digest is asked
+ /// (`quietCheck`): another than this replica's is a divergence, and it
+ /// joins again. PARDES_REPLICA_CHECK=<file>: whether they agree is
+ /// written there too, a line a check.
check: ?[:0]const u8 = null,
changed: bool = false,
asked: bool = false,
@@ -3227,7 +3257,7 @@ pub const Link = struct {
/// window's test feed, sends a unit a frame; the check's own wakes it
/// once). The wake it wants, ms.
pub fn quietCheck(c: *Link) ?u32 {
- if (c.check == null or !c.changed or c.asked or !c.r.quiet()) return null;
+ if (!c.changed or c.asked or !c.r.quiet()) return null;
const quiet_ns = 300 * std.time.ns_per_ms;
const since = nowNs() -| @max(c.input_ns, c.asked_ns);
if (since < quiet_ns) return @intCast((quiet_ns - since) / std.time.ns_per_ms + 1);
@@ -3238,12 +3268,20 @@ pub const Link = struct {
return null;
}
- /// The session's digest against this replica's, if it is quiet still.
+ /// The session's digest against this replica's, if it is quiet still:
+ /// another is a divergence (the replica joins again).
fn checked(c: *Link, theirs: u64) void {
c.asked = false;
- const path = c.check orelse return;
- if (!c.r.quiet() or c.put_off) return;
+ if (!c.r.quiet() or c.r.diverged != null) return;
const mine = c.r.digest();
+ c.r.stats.checks += 1;
+ c.r.since_check = 0;
+ if (mine != theirs) {
+ c.r.fail("its digest, quiet, is not the session's");
+ c.quit = true;
+ }
+ const path = c.check orelse return;
+ if (c.put_off) return;
var buf: [96]u8 = undefined;
const line = (if (mine == theirs) std.fmt.bufPrint(&buf, "agree {x:0>16}\n", .{mine}) else std.fmt.bufPrint(&buf, "differ {x:0>16} {x:0>16}\n", .{ mine, theirs })) catch return;
appendTo(path, line);
diff --git a/src/tape.zig b/src/tape.zig
index 2875b156..9337ff9f 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -286,6 +286,9 @@ pub const Tape = struct {
/// A digest only when asked (`recordDigest`): the replica stream's,
/// one a unit, not one after each of its inputs.
unit_digests: bool = false,
+ /// A digest record replayed is compared with the core's own; a replica
+ /// client's compares one now and then (src/replica.zig `check_every`).
+ checks: bool = true,
/// A replica client's guess of the session's clocks for a speculation
/// (src/replica.zig): its clock reads (a message's stamp, a file's
/// mtime) answer this instead of the clocks here.
@@ -570,6 +573,7 @@ pub const Tape = struct {
/// A digest record's payload (a unit's last) against the core's own: a
/// difference is `diverged`, its fields named when the record has them.
pub fn check(t: *Tape, payload: []const u8) void {
+ if (!t.checks) return;
var r: walk.Reader = .{ .bytes = payload };
const want = walk.decode([]const u64, &r, t.arena.allocator()) catch return;
const p = t.core orelse return;
diff --git a/test/replicas.zig b/test/replicas.zig
index 29923379..bd759b03 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -48,8 +48,6 @@ const gpa = std.heap.c_allocator;
extern "c" fn setenv(name: [*:0]const u8, value: [*:0]const u8, overwrite: c_int) c_int;
var trace = false;
const frame_us = 16_667;
-/// The PDF its clients look at (`--pdf`), when the build has the addon.
-var pdf_path: ?[]const u8 = null;
/// A frontend's workers for pictures' draws (Kind.drawer, tui.zig
/// `Shell.draw`): each draw asked of any core here runs `draw_us` later,
@@ -190,6 +188,8 @@ const Totals = struct {
mispredicted: u64 = 0,
foreign: u64 = 0,
rebases: u64 = 0,
+ /// A client's digest compared with the session's (a unit's, quiet).
+ checks: u64 = 0,
copies: u64 = 0,
copy_bytes: u64 = 0,
divergences: u64 = 0,
@@ -227,8 +227,8 @@ const Totals = struct {
resizes: u64 = 0,
/// Clients let go by a Detach typed in their view.
detach_words: u64 = 0,
- /// Panes of each plain kind the session opened (image, pdf, life).
- kind_panes: [3]u64 = @splat(0),
+ /// Panes of each plain kind the session opened (image, life).
+ kind_panes: [2]u64 = @splat(0),
fn add(t: *Totals, s: *const replica.Stats) !void {
t.inputs += s.inputs;
@@ -240,6 +240,7 @@ const Totals = struct {
t.mispredicted += s.mispredicted;
t.foreign += s.foreign;
t.rebases += s.rebases;
+ t.checks += s.checks;
t.copies += s.copies;
t.copy_bytes += s.copy_bytes;
try t.spec_ns.appendSlice(gpa, s.spec_ns.items);
@@ -253,7 +254,7 @@ const Totals = struct {
/// a wheel over the shell pane, which scrolls its history into view; a
/// file looked at (`looks`, its words) and a pane closed, the Panes and
/// Recent pickers (the store's and Recent's rows, the authority's), a jump;
-/// a picture and a PDF looked at and a game of life opened (plain kinds a
+/// a picture looked at and a game of life opened (plain kinds a
/// client runs as the session does, `looks` past the texts), the keys
/// after going to its pane; now and then a client's Detach.
fn nextEvent(random: std.Random, buf: *[64]u8, wheel_at: ?[2]u16, looks: []const []const u8) pardes.Event {
@@ -629,7 +630,7 @@ fn run(r: Run, dir: []const u8, totals: *Totals) !void {
try writeFile(path, 60 + 40 * i);
look.* = try std.fmt.bufPrint(l, "Look {s}", .{path});
}
- // A picture (the image addon's) and the PDF (the pdf addon's), when
+ // A picture (the image addon's), when
// the soak has their libraries (`--addon`).
var picture: [256:0]u8 = undefined;
var nlooks: usize = 3;
@@ -643,9 +644,6 @@ fn run(r: Run, dir: []const u8, totals: *Totals) !void {
try writeText(path, ppm.items);
looks_buf[nlooks] = try std.fmt.bufPrint(&look_lines[nlooks], "Look {s}", .{path});
nlooks += 1;
- } else if (std.mem.eql(u8, l.name, "pdf")) if (pdf_path) |pdf| {
- looks_buf[nlooks] = try std.fmt.bufPrint(&look_lines[nlooks], "Look {s}", .{pdf});
- nlooks += 1;
};
const looks = looks_buf[0..nlooks];
// The tty's own boot (a raw shell, a text pane under it), then three
@@ -669,9 +667,9 @@ fn run(r: Run, dir: []const u8, totals: *Totals) !void {
}
// The picture in a column of its own: every client joins with it (a
// plain kind's pane loaded from a dump, its file read by its path), its
- // keys go to it when it has them. Not the PDF: a client joined from a
- // dump that holds one diverges at another client's key into it
- // (round 5's report: `pane N.addon`, `views[k].jumps`), open.
+ // keys go to it when it has them. Not a PDF: a client of a session that
+ // shows one diverges at a key into it (round 5's report: `pane N.addon`,
+ // `views[k].jumps`; `it breaks PA_PLAIN` after a key), open.
if (looks.len > 3) {
_ = try a.local(.{ .command = "Newcol" });
_ = try a.local(.{ .command = looks[3] });
@@ -809,7 +807,7 @@ fn run(r: Run, dir: []const u8, totals: *Totals) !void {
// The kinds' panes it has opened, each counted once.
for (s.a.core.panes) |slot| if (slot) |pane| if (pane.addon) |k| if (pane.serial > s.kinds_seen.*) {
s.kinds_seen.* = pane.serial;
- for ([_][]const u8{ "image", "pdf", "life" }, &s.totals.kind_panes) |name, *n| n.* += @intFromBool(k.is(name));
+ for ([_][]const u8{ "image", "life" }, &s.totals.kind_panes) |name, *n| n.* += @intFromBool(k.is(name));
};
var rows: std.ArrayListUnmanaged([]u8) = .empty;
defer rows.deinit(gpa);
@@ -2345,9 +2343,7 @@ pub fn main(init: std.process.Init) !void {
if (i + 1 >= args.len) return error.MissingValue;
i += 1;
const value = args[i];
- if (std.mem.eql(u8, name, "--seeds")) seeds = try std.fmt.parseInt(u64, value, 10) else if (std.mem.eql(u8, name, "--first")) first = try std.fmt.parseInt(u64, value, 10) else if (std.mem.eql(u8, name, "--steps")) steps = try std.fmt.parseInt(usize, value, 10) else if (std.mem.eql(u8, name, "--clients")) clients = @min(8, try std.fmt.parseInt(u16, value, 10)) else if (std.mem.eql(u8, name, "--flood")) flood_mb = try std.fmt.parseInt(u64, value, 10) else if (std.mem.eql(u8, name, "--screen-state")) screen_dir = value else if (std.mem.eql(u8, name, "--addon")) try addons.append(gpa, value) else if (std.mem.eql(u8, name, "--pdf")) {
- pdf_path = value;
- } else if (std.mem.eql(u8, name, "--rtt")) {
+ if (std.mem.eql(u8, name, "--seeds")) seeds = try std.fmt.parseInt(u64, value, 10) else if (std.mem.eql(u8, name, "--first")) first = try std.fmt.parseInt(u64, value, 10) else if (std.mem.eql(u8, name, "--steps")) steps = try std.fmt.parseInt(usize, value, 10) else if (std.mem.eql(u8, name, "--clients")) clients = @min(8, try std.fmt.parseInt(u16, value, 10)) else if (std.mem.eql(u8, name, "--flood")) flood_mb = try std.fmt.parseInt(u64, value, 10) else if (std.mem.eql(u8, name, "--screen-state")) screen_dir = value else if (std.mem.eql(u8, name, "--addon")) try addons.append(gpa, value) else if (std.mem.eql(u8, name, "--rtt")) {
var it = std.mem.tokenizeScalar(u8, value, ',');
var k: usize = 0;
while (it.next()) |v| : (k += 1) rtt_buf[k] = try std.fmt.parseInt(u64, v, 10);
@@ -2382,12 +2378,6 @@ pub fn main(init: std.process.Init) !void {
if (libc.symlink(at, try std.fmt.bufPrintSentinel(&to, "{s}/{s}", .{ lib_dir, std.Io.Dir.path.basename(lib) }, 0)) != 0) return error.NoAddon;
}
if (setenv("XDG_DATA_HOME", data, 1) != 0) return error.NoDataDir;
- // The PDF by its whole path: a Look of another is the session's directory's.
- var pdf_whole: [libc.PATH_MAX]u8 = undefined;
- if (pdf_path) |pdf| {
- var z: [600]u8 = undefined;
- pdf_path = std.mem.span(libc.realpath(try std.fmt.bufPrintSentinel(&z, "{s}", .{pdf}, 0), &pdf_whole) orelse return error.NoPdf);
- }
if (echo_mode) {
if (!try echoMain(seeds, first, rtts)) std.process.exit(1);
return;
@@ -2430,12 +2420,12 @@ pub fn main(init: std.process.Init) !void {
t.screens_checked,
t.screens_wrong,
});
- try join_lines.print(gpa, "{d:>4} {d:>5} {d:>7} {d:>8} {d:>8} {d:>6} {d:>5}/{d:<5} {d:>7} {d:>5}/{d}/{d}\n", .{ rtt, t.joins, t.refused, t.rejoined, t.detached, t.detach_words, t.agree, t.differ, t.resizes, t.kind_panes[0], t.kind_panes[1], t.kind_panes[2] });
+ try join_lines.print(gpa, "{d:>4} {d:>5} {d:>7} {d:>8} {d:>8} {d:>6} {d:>5}/{d:<5} {d:>5}/{d:<6} {d:>7} {d:>5}/{d}\n", .{ rtt, t.joins, t.refused, t.rejoined, t.detached, t.detach_words, t.agree, t.differ, t.checks, t.units, t.resizes, t.kind_panes[0], t.kind_panes[1] });
if (t.divergences > 0 or t.unequal > 0 or t.screens_wrong > 0 or t.differ > 0) failed = true;
}
std.debug.print("terminals: deltas a replica applied a second under the flood; a peer's bytes a second under the flood (deltas, units); encode a frame of the flood for every peer, apply a delta (us); rows fetched, KB of rows sent before the step that read them; resets; deltas checked/wrong\n", .{});
std.debug.print(" rtt deltas/s delta B/s unit B/s encode p50/p99 apply p50/p99 fetched filled KB resets checked/wrong\n{s}", .{term_lines.items});
- std.debug.print("clients: joins from a dump, refused (every view taken), joined again after a divergence put on them, left (of them by a Detach); quiet checks of the session's digest agreed/differed; resizes the windows posted; the kinds' panes the session opened (image/pdf/life)\n", .{});
- std.debug.print(" rtt joins refused rejoined detached detach agree/differ resizes kinds\n{s}", .{join_lines.items});
+ std.debug.print("clients: joins from a dump, refused (every view taken), joined again after a divergence put on them, left (of them by a Detach); quiet checks of the session's digest agreed/differed; the digests the clients compared (units and quiet), of the units they took; resizes the windows posted; the kinds' panes the session opened (image/life)\n", .{});
+ std.debug.print(" rtt joins refused rejoined detached detach agree/differ checks/units resizes kinds\n{s}", .{join_lines.items});
if (failed) std.process.exit(1);
}