From f7fc58ee8ae9a88b09ee1c235b9986df8b1ef844 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 18 Nov 2026 16:38:10 -0300 Subject: replica: a client compares its core's digest with the session's only where one is due, not at every confirmed input and every unit replayed (the edit row's +40%, a full walk of the core each time): once in check_every (32) confirmed units, on a unit that carries one with nothing applied on top (the fast path's catch-up, a replay, a rollback's), and once quiet 300 ms after a change (Link.quietCheck, now always, not only for PARDES_REPLICA_CHECK: another digest is a divergence, and it joins again; PARDES_TEST_DIVERGE is found so); a unit replayed by a rollback (since) compares none; a unit with no digest leaves the last one unknown (after a unit with a set record it was kept, stale, for the moved-nothing comparison); the authority in process records its digest at a unit's end as the session does; the session still records one a unit (a session's unit with none where its clock moved exposed a structural divergence after a kind is distrusted: daemon.py --games, a second rejoin, 'the tape's answer to addon is short'; not root-caused); the soak's mix without the PDF (round 5's open fault); replicas five clients diverged 0, unequal 0, the put-off client caught by a quiet check or a due one Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- build/tests.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'build') 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); -- cgit v1.3