From 3f4df1363d3051bf8c4665fdf4898d59ab365b27 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 03:54:49 -0300 Subject: client #3, wire 21: the views in the dump and the digest (client #1) are another replica stream, which the semantics hash did not see (it hashes the tape's types, not the core's), so a replica of the base could join and load a dump by names that no longer hold its views; daemon.py's Replica dials an older daemon again in its protocol (as across an Upgrade), and its Upgrade case, run from the base onto this build, takes the base's second terminal of its own being let go (its stub told, two fds fewer) and the base's client told to run the same pardes; gates: core-test 956/956, unit-test 1487/1488 tui and 1530/1531 gui, replicas ok, daemon.py main, --window-clients, --gui and --upgrade ok Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/daemon.py | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) (limited to 'test/daemon.py') diff --git a/test/daemon.py b/test/daemon.py index c53405db..e7fee37b 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -31,6 +31,7 @@ private HOME and runtime directory: """ import fcntl import os +import re import select import shutil import signal @@ -227,9 +228,10 @@ class Replica: """A replica's connection (src/wire.zig): length-prefixed messages, a tag byte and a little-endian u32 length. It is a near client: its first word after the hello says so.""" - WIRE = 20 + WIRE = 21 def __init__(self, path, timeout=10): + self.path, self.timeout = path, timeout self.s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) self.s.settimeout(timeout) self.s.connect(os.fspath(path)) @@ -250,11 +252,12 @@ class Replica: tag, n = struct.unpack('