From 10cedf97c90d6a11a89d7e682e243b77fd6b6f1f Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 23:54:48 -0300 Subject: docs/next-daemon.md: a window that joined late diverged at the next key that moved another view's pane (`pane 23.file.scroll`: a pane's `view` was derived, never dumped, read before the step's sync, the default in a core loaded from a dump; the tty's `SPC t w` at 243 s, its lines unwrapped in the session and wrapped in the joiner), the fix, the test, a 120-seed exploration before and after; not this one: the box run's query-pane divergence (`location_rows`) and `Query.land`'s panic; the gates Co-Authored-By: Claude Opus 5.5 --- docs/next-daemon.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'docs/next-daemon.md') diff --git a/docs/next-daemon.md b/docs/next-daemon.md index 434e1da4..ef1b868d 100644 --- a/docs/next-daemon.md +++ b/docs/next-daemon.md @@ -4467,3 +4467,45 @@ After the line, the box soak's divergences and its clean quit: `--window-clients`, cross_replay.py with tty and window recorders, and the FreeBSD tape replayed by Debug tty, ReleaseSafe tty and Debug gui; ReleaseSafe `test/daemon.py` 20 cycles: all pass. + +After the line, a window that joined late: +- **It diverged at the next key that moved a pane of another view** + (`pane 23.file.scroll`, the box soak's seed 7: win207-3 at its join + 466 s in; the same field in the two windows that joined at 16 and 17 + min of an earlier run, not kept). A pane's `view` (`Pane.SessionView`: Wrap, the context rows' + style, the body's and the tag's row heights, its rect's height) is + written by `sync`, and was derived: never dumped. A key's move reads it + before its step syncs (`halfPageMove`, `ensureCursorVisible`, through + `File.geometry`), and a core loaded from a dump had the default, Wrap + on and no row heights. The tty had typed `SPC t w` at 243 s, so the + session's lines no longer wrapped and the joiner's did; its first + stepped unit after the dump was the tty's Ctrl-D (1/2018, after + `open_view` and a pump), and it scrolled further. A window there all + along had made `view` in its own steps and agreed. A parked view's + share (`PaneView.view`) was read the same way at a `to_view`, before + the step syncs. Window row heights with TreeContext's context rows + diverged it too, with Wrap on. + - Fix: `view` is digested and dumped, in a pane and in a parked view's + share. A dump of an older build has none and takes the default, as + before. + - Test: replica.zig's "a client joined from a dump moves through another + view's pane as the session does, its lines not wrapped" (Wrap off, the + cursor near the view's bottom, a join, Ctrl-D). Main fails it at + `pane 0.file.scroll`. A throwaway exploration (120 seeds: two views, + window row heights, TreeContext, Wrap, keys from either view after a + join) diverged 20 times on main (`file.scroll`, `hscroll`), none with + the fix. + - ponytail: `notices` and `pan` stay derived. `unpark` makes `pan` + again; a pane's notices are read by a click on its bands. +- **Not this one:** the box run with the fix (seed 7, 21 min, seven + clients) showed no `scroll` divergence in the four windows that joined + late and no `view` difference anywhere, but win207-4 diverged once at its + own key in a query pane (`pane 21.file.location_rows`, unit 4/447: the + session's tape had the same host answers), and after its rejoin a + speculated Enter panicked in `Query.land` (`f.location_rows[c + 1]`, + len 0). Both left open. +- **Gates** (on vtoozmwn): Debug `core-test` tty, `replay`, `replicas` + (none diverged or unequal), `test/daemon.py` 20 cycles and + `--window-clients`; ReleaseSafe `test/daemon.py` 20 cycles and + `--window-clients`: all pass. The box soak, ReleaseSafe at both ends: + 0 rejoins in six of seven clients, the seventh's the query pane's above. -- cgit v1.3