From 484841325bb35b0bb7c55f7980178388c4e39c71 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 18:43:09 -0300 Subject: docs: the manual and the notes made true about how pardes runs: next-daemon.md's opening says what is built and points at the new page, and its design's lines that went otherwise (a supervisor, subreaper, spawner and 9P root; every session a child of the daemon; the stub passing its terminal, no fork; the join's fork child; one socket; /n/) are marked so; the guide's closed terminal (only while the daemon keeps it) and closed window (it ends the session unless it has clients), and its daemon that kept all of it; the reference's /sessions (client lines), bare attach (as a client), another machine's attach (built: HOST:NAME), three clients not four; building.typ's replica paragraph (no ping-only session, no platform in the hash); macos.md's Attach word and src/detached/, both gone; next-daemon.md's window client font and touchpad, both built since Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- docs/typ/building.typ | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'docs/typ/building.typ') diff --git a/docs/typ/building.typ b/docs/typ/building.typ index 6b0e812a..9026aa4f 100644 --- a/docs/typ/building.typ +++ b/docs/typ/building.typ @@ -344,14 +344,17 @@ own process, ended by its hangup. A replica (a client running its own copy of the core, phase 5 of `docs/next-daemon.md`) connects to `pardes-replica.sock`, a stream socket beside it that `ssh -L` can forward. `src/wire.zig` is its -protocol (version 14): fixed-width little-endian fields, a 5-byte header +protocol (its `version`): fixed-width little-endian fields, a 5-byte header (tag, then a u32 length), the hello, a ping, the input events. The hello names a session and carries the client's semantics hash (the protocol, -release, commit, platform, build options and every dependency's hash); the -daemon refuses another build's, or a session nobody has, in words, and -hands an accepted connection to its session (`SCM_RIGHTS`), which welcomes -it and from then on is the one it talks to. Today the session answers -pings and nothing more. +release, commit, build options, every dependency's hash and the tape's +shape; the terminal's build and the window's share one, so either joins +the other's sessions); the daemon refuses another build's, or a session +nobody has, in words, and hands an accepted connection to its session +(`SCM_RIGHTS`), which welcomes it and from then on is the one it talks +to: the session sends the dump the client loads, then each step's tape and +its terminals' screens, and the client sends its inputs +(`src/replica.zig`; #doc("running") draws it). #word("Upgrade") (`src/upgrade.zig`) execs the path the session was started from, at a step boundary, after asking it `--version`: the session's dump -- cgit v1.3