summaryrefslogtreecommitdiff
path: root/docs/typ/building.typ
diff options
context:
space:
mode:
Diffstat (limited to 'docs/typ/building.typ')
-rw-r--r--docs/typ/building.typ15
1 files changed, 9 insertions, 6 deletions
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