diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-23 04:05:02 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-23 04:20:58 -0300 |
| commit | 3a0acb503613a672c3d84f685031ab5e65c10ff6 (patch) | |
| tree | 907c7ccdb4fc3b8dbe6471991ed1c63fce8a6542 /abi | |
| parent | 4faf94b72b60ecb0656e7e90ca693b63b1fde71c (diff) | |
| parent | a3d98f0e465ed9634d0534e0a6c71767b2a709b9 (diff) | |
| download | pardes-3a0acb503613a672c3d84f685031ab5e65c10ff6.tar.gz pardes-3a0acb503613a672c3d84f685031ab5e65c10ff6.zip | |
merge: round 1 of a link's lifecycle (pardes-link-1, `nlqrtuns`: a client whose link is up comes back over it) onto the dump and the digest (pardes-m63-base, `xxvnuywy`: the installed tree + the one decision + a join's digest taken with its dump, a refused load naming its field), the two implementations of "a refused load names its field" made one: the dump line's naming kept (every join's dump ends with the session's digest a field at a time, `dump.joinParts`, read by `loadDiffers`), round 1's deleted (the wire's `ServerTag.parts` 0x0d and `ServerMsg.parts`, a bye's byte 3 and `ClientMsg.bye.parts`, `Peer.fields`, `Peer.parts`, `Peers.partsOf`, `Peer.writeParts`, the `Parts` read in `loadAgain`, `comeBack`'s `parts` argument, `fromDump`'s second naming from that message); round 1's road kept (`fromDump` asks once more over the same connection, `loadAgain`, `joinOn` reading on to a welcome); the conflicts: abi/wire.zig's 31 line (both sides' sentences, round 1's without `parts`), `Peers.join` (the dump line took `dumpJoin`'s `.{ bytes, digest }` inline where round 1 had split the dump and the welcome out, `Peers.dumped` and `Peers.welcome`: `dumped` now returns the bytes WITH the digest `dumpJoin` took at the dump's moment and `welcome` takes that digest, so a join again over the link (`dumpAgain`) has the dump line's guarantee too, where round 1's `welcome` read `tape.digestOf(core)` after the dump), `fromDump` (the dump line's named refusal and round 1's loop: now the first refusal names its fields in the log and asks once more, a second, or a link that cannot ask (its words kept, `j` and its dump the caller's), gives up naming them in its words: "the session's dump loaded as another session twice: fs differs"); `loadAgain` asks before it lets the dump go (the dump line's test hands `fromDump` a dump of its own and no link: it was freed); semantic conflicts looked for: the one decision's `Replica.confirm` and core/tape.zig (`feedsTerminal`, `touchTerminal`, `Pending.terminal`, `shell_rows` gone): nothing of round 1's used them; the rollback copy's walk: `Peer`'s and `Link`'s new state (`gen`, `written`, `back`) is outside the core it walks (Peers and Link are the engines', not `Pardes`'s fields), nothing to declare; tests: round 1's "refused twice" made from the dump's own parts (its first field's word changed in the dump, no message), the dump line's "says which field" given the session's name argument; root.zig's machine_lines for replica.zig 90 -> 89 (`loadAgain`'s close gone); core-test 930/1094 (164 skipped: the base's 924/1088 and round 1's six), shell-test 1136/1139 (3 skipped: the base's 1130/1133 and round 1's six)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'abi')
| -rw-r--r-- | abi/wire.zig | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/abi/wire.zig b/abi/wire.zig index 8949edff..7b6a22f1 100644 --- a/abi/wire.zig +++ b/abi/wire.zig @@ -12,9 +12,12 @@ const build_info = @import("build_info"); /// 31: where a view stands in a terminal's history is the view's: a pane's /// `scrolled_to` (and its share's in each view) in the dump and the digest, -/// the emulator's own view out of both (its `Parts.view` gone); and the +/// the emulator's own view out of both (its `Parts.view` gone); the /// core's count of its emulators' writes (`outside`) in both, which the -/// replica engine's one question of a unit reads; +/// replica engine's one question of a unit reads; and a client whose link +/// is up joins again over it (its bye's `again`, then its hello there: +/// core/replica.zig `Peers.joinAgain`), as one whose load was refused asks +/// once more; /// 30: the terminals' one road: the screen-state messages are retired (a /// replica's `screen_ack`, 0x04, and the session's `screen`, 0x06: gaps), /// a welcome says no road (its `bytes` byte gone), and a pane's @@ -324,8 +327,9 @@ pub fn helloVersion(payload: []const u8) Error!u16 { /// one call and no longer. pub const ClientMsg = union(enum) { hello: Hello, - /// The client's end: `again`, it joins again for its view at once; - /// `close`, its window was closed (a pair's session ends at its last). + /// The client's end: `again`, it joins again for its view at once (its + /// hello next, on this link while it is up); `close`, its window was + /// closed (a pair's session ends at its last). bye: struct { again: bool = false, close: bool = false }, /// A round trip's probe, answered `pong` with the same value. ping: u64, |
