summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 16:38:10 -0300
committerGabriel Schneider <[email protected]>2026-11-18 17:13:49 -0300
commitf7fc58ee8ae9a88b09ee1c235b9986df8b1ef844 (patch)
tree0dde3920324473b0e827ae61d87c44c4ba77030b /build
parent558051ca5525a4dade47ab6ef7794eefd848f7b2 (diff)
downloadpardes-f7fc58ee8ae9a88b09ee1c235b9986df8b1ef844.tar.gz
pardes-f7fc58ee8ae9a88b09ee1c235b9986df8b1ef844.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build')
-rw-r--r--build/tests.zig7
1 files changed, 3 insertions, 4 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);